Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Issue 1862052: Add support to domita.js for myDomElement.style.cssText = '...'; (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 10 months ago by MikeSamuel
Modified:
15 years, 10 months ago
Reviewers:
Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

http://code.google.com/p/google-caja/issues/detail?id=1161 This hooks cssparser into domita.js and adds cssparser.js into the compiled JS bundles. Submitted @4240

Patch Set 1 #

Patch Set 2 : Add support to domita.js for myDomElement.style.cssText = '...'; #

Total comments: 4

Patch Set 3 : Add support to domita.js for myDomElement.style.cssText = '...'; #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -15 lines) Patch
M build.xml View 1 2 7 chunks +7 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/domita.js View 1 2 5 chunks +29 lines, -15 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 4
MikeSamuel
15 years, 10 months ago (2010-08-06 19:52:20 UTC) #1
MikeSamuel
ping
15 years, 10 months ago (2010-08-10 16:35:09 UTC) #2
Jasvir
LGTM http://codereview.appspot.com/1862052/diff/3001/4003 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/1862052/diff/3001/4003#newcode3619 src/com/google/caja/plugin/domita.js:3619: /** http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration */ wrap http://codereview.appspot.com/1862052/diff/3001/4002 File tests/com/google/caja/plugin/domita_test_untrusted.html (right): ...
15 years, 10 months ago (2010-08-10 21:29:41 UTC) #3
MikeSamuel
15 years, 10 months ago (2010-08-11 04:38:07 UTC) #4
http://codereview.appspot.com/1862052/diff/3001/4003
File src/com/google/caja/plugin/domita.js (right):

http://codereview.appspot.com/1862052/diff/3001/4003#newcode3619
src/com/google/caja/plugin/domita.js:3619: /**
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration */
On 2010/08/10 21:29:41, jasvir wrote:
> wrap

Done.

http://codereview.appspot.com/1862052/diff/3001/4002
File tests/com/google/caja/plugin/domita_test_untrusted.html (right):

http://codereview.appspot.com/1862052/diff/3001/4002#newcode2360
tests/com/google/caja/plugin/domita_test_untrusted.html:2360:
assertEquals('wait', cursor(el));
On 2010/08/10 21:29:41, jasvir wrote:
> Can we add a test case for el.style.cssText = 'cssText: "cursor:wait"' and
> ensure that this fails.  I suspect this does since cssText is not whitelisted
> but I'd like to ensure that css whitelists can't be worked around using
aliases
> that group css properties like this one. 

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b