https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java File src/com/google/caja/lang/css/CssPropertyPatterns.java (right): https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java#newcode549 src/com/google/caja/lang/css/CssPropertyPatterns.java:549: .put("z-index", CssPropBit.QUANTITY) need to add relevant definitions here for ...
13 years, 1 month ago
(2013-02-12 18:17:36 UTC)
#3
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java File src/com/google/caja/lang/css/CssPropertyPatterns.java (right): https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java#newcode304 src/com/google/caja/lang/css/CssPropertyPatterns.java:304: return null; It might be a good time to ...
13 years, 1 month ago
(2013-02-12 18:22:55 UTC)
#4
Now ready for review. https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java File src/com/google/caja/lang/css/CssPropertyPatterns.java (right): https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/CssPropertyPatterns.java#newcode304 src/com/google/caja/lang/css/CssPropertyPatterns.java:304: return null; It ends up ...
13 years, 1 month ago
(2013-02-13 05:18:29 UTC)
#6
Now ready for review.
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/Cs...
File src/com/google/caja/lang/css/CssPropertyPatterns.java (right):
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/Cs...
src/com/google/caja/lang/css/CssPropertyPatterns.java:304: return null;
It ends up being a bit of a pain to do since lots of these functions are
intersnakeified and rely on one another to return 'null' at times. I think we
should defer to a different CL.
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/Cs...
src/com/google/caja/lang/css/CssPropertyPatterns.java:549: .put("z-index",
CssPropBit.QUANTITY)
On 2013/02/12 18:17:36, Jasvir Nagra wrote:
> need to add relevant definitions here for open-quote, string etc.
Done.
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/cs...
File src/com/google/caja/lang/css/css-extensions-defs.json (right):
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/cs...
src/com/google/caja/lang/css/css-extensions-defs.json:163: { "key": "content",
On 2013/02/12 18:17:36, Jasvir Nagra wrote:
> you don't need to specify this here - it's already in css21-defs.
I'm a bit confused. The stuff in css21-defs is just the basic stuff per the W3C
spec. We have to override with our own stuff somewhere. My impression is that
the 'signature' here is overriding the default one, making it narrower, because
of what we support. Is there a better place to put this? Should there be?
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/cs...
src/com/google/caja/lang/css/css-extensions-defs.json:164: "signature": "normal
| none | [ <string> | open-quote | close-quote | no-open-quote | no-close-quote
]+ ",
On 2013/02/12 18:17:36, Jasvir Nagra wrote:
> you need to tell CssPropertyPatterns what open-quote, close-quote, string etc
> mean. That's why you're getting cssPropBits = 0 right now.
Done.
https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/css-extensions-defs.json File src/com/google/caja/lang/css/css-extensions-defs.json (right): https://codereview.appspot.com/7308092/diff/1/src/com/google/caja/lang/css/css-extensions-defs.json#newcode163 src/com/google/caja/lang/css/css-extensions-defs.json:163: { "key": "content", You have it in the right ...
13 years, 1 month ago
(2013-02-13 17:40:07 UTC)
#7
13 years, 1 month ago
(2013-02-13 22:27:48 UTC)
#16
Message was sent while issue was closed.
LGTM except as noted.
https://codereview.appspot.com/7308092/diff/6002/tests/com/google/caja/plugin...
File tests/com/google/caja/plugin/es53-test-domado-special-guest.html (right):
https://codereview.appspot.com/7308092/diff/6002/tests/com/google/caja/plugin...
tests/com/google/caja/plugin/es53-test-domado-special-guest.html:676: return
s.substring(1, s.length - 1);
On 2013/02/13 22:20:30, ihab.awad wrote:
> On 2013/02/13 20:26:59, kpreid2 wrote:
> > return /^(['"])(.*)\1$/.exec(s)[2];
>
> With all due respect, I'm not sure that's clearer. :)
Not clearer -- more paranoid. Please make this change or an equivalent one
rather than ignoring syntax pieces of the input.
On 2013/02/13 22:27:48, kpreid2 wrote: > LGTM except as noted. > > https://codereview.appspot.com/7308092/diff/6002/tests/com/google/caja/plugin/es53-test-domado-special-guest.html > File ...
13 years, 1 month ago
(2013-02-13 22:36:03 UTC)
#17
Message was sent while issue was closed.
On 2013/02/13 22:27:48, kpreid2 wrote:
> LGTM except as noted.
>
>
https://codereview.appspot.com/7308092/diff/6002/tests/com/google/caja/plugin...
> File tests/com/google/caja/plugin/es53-test-domado-special-guest.html (right):
>
>
https://codereview.appspot.com/7308092/diff/6002/tests/com/google/caja/plugin...
> tests/com/google/caja/plugin/es53-test-domado-special-guest.html:676: return
> s.substring(1, s.length - 1);
> On 2013/02/13 22:20:30, ihab.awad wrote:
> > On 2013/02/13 20:26:59, kpreid2 wrote:
> > > return /^(['"])(.*)\1$/.exec(s)[2];
> >
> > With all due respect, I'm not sure that's clearer. :)
>
> Not clearer -- more paranoid. Please make this change or an equivalent one
> rather than ignoring syntax pieces of the input.
Will fix in an upcoming rev asap.
Issue 7308092: Allow 'content' property values in CSS
(Closed)
Created 13 years, 1 month ago by ihab.awad
Modified 13 years, 1 month ago
Reviewers: kpreid2, Jasvir
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 27