1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 02:55:46 +01:00

Add experimental jQuery-ish DOM object.

This commit is contained in:
Kris Maglione
2011-08-14 16:58:24 -04:00
parent 93bdb3dd42
commit 1509ee96e5
5 changed files with 599 additions and 134 deletions

View File

@@ -731,8 +731,10 @@ var Styles = Module("Styles", {
template.highlightCSS = function highlightCSS(css) {
XML.prettyPrinting = XML.ignoreWhitespace = false;
return this.highlightRegexp(css, patterns.property, function (match) <>{
match.preSpace}{template.filter(match.name)}: {
return this.highlightRegexp(css, patterns.property, function (match) {
if (!match.length)
return <></>;
return <>{match.preSpace}{template.filter(match.name)}: {
template.highlightRegexp(match.value, patterns.token, function (match) {
if (match.function)
@@ -749,7 +751,7 @@ var Styles = Module("Styles", {
})
}{ match.postSpace }</>
)
})
}
},
});