mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
fix IE 6 support
This commit is contained in:
@@ -802,7 +802,7 @@ less.Parser = function Parser(env) {
|
||||
|
||||
if (e) { return new(tree.Element)(c, e, i) }
|
||||
|
||||
if (c.value && c.value[0] === '&') {
|
||||
if (c.value && c.value.charAt(0) === '&') {
|
||||
return new(tree.Element)(c, null, i);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -184,7 +184,7 @@ tree.Ruleset.prototype = {
|
||||
|
||||
for (var i = 0; i < selector.elements.length; i++) {
|
||||
el = selector.elements[i];
|
||||
if (el.combinator.value[0] === '&') {
|
||||
if (el.combinator.value.charAt(0) === '&') {
|
||||
hasParentSelector = true;
|
||||
}
|
||||
if (hasParentSelector) afterElements.push(el);
|
||||
|
||||
Reference in New Issue
Block a user