https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js
File src/com/google/caja/plugin/sanitizecss.js (right):
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode320
src/com/google/caja/plugin/sanitizecss.js:320: * When a "compound"
or "complex" selector
On 2013/07/02 21:55:32, kpreid2 wrote:
Why is this not "When a selector..."? Attribute selectors may be
untranslatable
and are themselves neither complex nor compound according to the
definitions
given.
It was only relevant during an earlier snapshot. Changed to just "a
selector".
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode321
src/com/google/caja/plugin/sanitizecss.js:321: * (see
dev.w3.org/csswg/selectors4/#structure)
On 2013/07/02 21:55:32, kpreid2 wrote:
Please add http:// so that this is more programmatically recognizable
as a URL.
Removed entirely since no explanation of "complex" vs "compound" is
necessary here.
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode359
src/com/google/caja/plugin/sanitizecss.js:359: // affect others.
On 2013/07/02 21:55:32, kpreid2 wrote:
...except as directed by opt_onUntranslatableSelector.
Done.
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode535
src/com/google/caja/plugin/sanitizecss.js:535: // We disallow absolute
positions relative to html.
On 2013/07/02 21:55:32, kpreid2 wrote:
Is this special case necessary any longer? Mentions of "html" will be
either
virtualized or (in a future iframe-using world) entirely correct. If
there is a
browser bug this avoids, please mention it.
Also, I notice that elSelector is never assigned anything but '', so
this code
is broken — please look at whether this is indicating some further
confusion.
Good catch. We {c,sh}ould replace 'html' and other virtualized elements
with appropriate class references. I'd rather do that in a separate CL
though.
Do we have a list of those elsewhere?
https://codereview.appspot.com/10892043/
--
---
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.