fixed selector attributes not parsing with a '-'

This commit is contained in:
cloudhead
2010-04-28 17:29:22 -04:00
parent 280d741b38
commit 7a4e0ff77a
3 changed files with 8 additions and 1 deletions

View File

@@ -660,7 +660,7 @@ less.Parser = function Parser(env) {
if (! $('[')) return;
if (key = $(/[a-z]+/g) || $(this.entities.quoted)) {
if (key = $(/[a-z-]+/g) || $(this.entities.quoted)) {
if ((op = $(/[|~*$^]?=/g)) &&
(val = $(this.entities.quoted) || $(/[\w-]+/g))) {
attr = [key, op, val.toCSS ? val.toCSS() : val].join('');

View File

@@ -34,6 +34,9 @@ a[href^="http://"] {
a[href$="http://"] {
color: black;
}
form[data-disabled] {
color: black;
}
p::before {
color: black;
}

View File

@@ -46,6 +46,10 @@ a[href$="http://"] {
color: black;
}
form[data-disabled] {
color: black;
}
p::before {
color: black;
}