I snapshotted with a test of the JS side and a fix to a bug in
sanitizecss which is now described in the CL comment reproduced below
for your convenience:
----
This change updates the schema and fixes a bug in sanitizecss.js that
caused
nested function calls to fail.
The function normalizeFunctionCall given the tokens
["name(", "foo", " ", "nested(", "bar", ")", ")"]
and the index of "name(" should have returned the index past the last
close
parenthesis since it should count parentheses to identify the
parenthesis that
closes the call-token at the beginning.
The paren-depth increment code looked for a token "(" though instead of
a token
like "nested(".
I also changed ormalizeFunction so that a token sequence like
["foo(", "bar", ";", "completely-different-property", ":", "value"]
doesn't treat the whole sequence as part of a broken "foo(" call.
https://codereview.appspot.com/10438046/
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.