09May 2010
JSCSSP in BlueGriffon
22:03 - By BlueGriffon - Progress - one comment
JSCSSP, our CSS parser in JavaScript, is now used by BlueGriffon to preserve all the contents of stylesheets, including unrecognized properties, unrecognized at-rules and comments between rules or between declarations (other comments not preserved yet). On a side note, JSCSSP now passes all relevant tests in the CSS 3 Namespaces Test Suite.




one comment
Nice.
Does anyone know why Gecko doesn't do this automatically? (i.e. preserve unrecognized properties, at-rules, etc.) Internet Explorer does this, and it does it spectacularly well (obeying cascades, etc.) This makes adding CSS properties to IE via Javascript awesomely simple, while in Firefox it's a nightmare. (Not sure about Webkit, as I haven't done this kind of thing in a while.)