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

Issue 10763044: Expand support for CSS attribute selectors (Closed)

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

Description

https://code.google.com/p/google-caja/issues/detail?id=1733 (1) expands the subset of the CSS attribute selector supported by sanitizeSelector to include attributes mixed with ID and class selectors, to recognize both quoted and unquoted attribute values, and to recognize case insensitivity flags. (2) fleshes out the set of CSS attribute selector transforms that we can perform and adds tests for various kinds of these. (3) fixes a bug in jsUnitCore which broke assertArrayEquals which is not widely used outside the CSS sanitizer tests. Submitted at r5464

Patch Set 1 #

Total comments: 3

Patch Set 2 : Expand support for CSS attribute selectors #

Patch Set 3 : Expand support for CSS attribute selectors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -115 lines) Patch
M src/com/google/caja/plugin/sanitizecss.js View 1 2 18 chunks +129 lines, -88 lines 0 comments Download
M tests/com/google/caja/plugin/css-stylesheet-tests.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 2 1 chunk +59 lines, -18 lines 0 comments Download
M third_party/js/jsunit/2.2/jsUnitCore.js View 1 2 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 6
MikeSamuel
12 years, 8 months ago (2013-06-28 22:47:49 UTC) #1
felix8a
lgtm https://codereview.appspot.com/10763044/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/10763044/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode324 src/com/google/caja/plugin/sanitizecss.js:324: && (inBrackets || COMBINATOR[selectors[i-1]] == COMBINATOR == should ...
12 years, 8 months ago (2013-07-01 15:42:26 UTC) #2
MikeSamuel
https://code.google.com/p/google-caja/issues/detail?id=1733 (1) expands the subset of the CSS attribute selector supported by sanitizeSelector to include ...
12 years, 8 months ago (2013-07-01 15:53:00 UTC) #3
MikeSamuel
done x 3 2013/7/1 <felix8a@gmail.com>: > lgtm > > > https://codereview.appspot.com/10763044/diff/1/src/com/google/caja/plugin/sanitizecss.js > File src/com/google/caja/plugin/sanitizecss.js (right): ...
12 years, 8 months ago (2013-07-01 15:53:18 UTC) #4
MikeSamuel
https://code.google.com/p/google-caja/issues/detail?id=1733 (1) expands the subset of the CSS attribute selector supported by sanitizeSelector to include ...
12 years, 8 months ago (2013-07-01 16:15:22 UTC) #5
felix8a
12 years, 8 months ago (2013-07-01 16:52:14 UTC) #6
lgtm
Sign in to reply to this message.

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