DescriptionsanitizerSelectors(cssText) performs the same sanitization as
CssRewriter. This CL is just a testfile that contains both the code
under test and the testcases in CssRewriterTest and does not attempt
to move the code into it's final location since I want to discuss
where this should fit as part of this CL.
One issue is whether CssRewriterTest.java should run its tests against the
JavaScript version. To do that, we would need to
1. either load html-emitter.js and domado.js into Rhino to get the property
sanitization function in domado.js, OR
2. move the property sanitization out of domado.js so that less needs
to be pulled into Rhino to test equivalence of the java and javascript
CSS rewritings.
I will follow this CL shortly with another that wires
sanitizeSelectors into html-emitter.js.
Patch Set 1 #
Total comments: 2
Patch Set 2 : Draft of a sanitizer for CSS selectors in JavaScript #
Total comments: 8
Patch Set 3 : Draft of a sanitizer for CSS selectors in JavaScript #Patch Set 4 : Draft of a sanitizer for CSS selectors in JavaScript #Patch Set 5 : Draft of a sanitizer for CSS selectors in JavaScript #
Total comments: 2
Patch Set 6 : Draft of a sanitizer for CSS selectors in JavaScript #
MessagesTotal messages: 5
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||