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

Issue 21046: Issue 947: HTML emitter vs. getAttribute() inconsistent (Closed)

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

Description

Fix some inconsistencies in HtmlSanitizer and HtmlValidator. This makes HtmlValidator more paranoid, and fixes the HTML attribute schema to whitelist the accesskey attribute. I tried repeating the issue in a number of revisions from the last 6 months, but couldn't. But the schema fix is necessary, and the sanity check can't hurt. Submitted @3291

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -38 lines) Patch
M src/com/google/caja/lang/html/html4-attributes-whitelist.json View 1 chunk +7 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/HtmlCompiler.java View 2 chunks +12 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/HtmlSanitizer.java View 5 chunks +19 lines, -28 lines 2 comments Download
M tests/com/google/caja/plugin/HtmlCompilerTest.java View 1 chunk +17 lines, -3 lines 0 comments Download
M tests/com/google/caja/plugin/HtmlSanitizerTest.java View 2 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 4
MikeSamuel
17 years, 1 month ago (2009-02-21 00:43:31 UTC) #1
Jasvir
http://codereview.appspot.com/21046/diff/1/6 File src/com/google/caja/plugin/HtmlSanitizer.java (right): http://codereview.appspot.com/21046/diff/1/6#newcode239 Line 239: private boolean removeBadAttribute(DomTree.Tag el, Name attrName) { Why ...
17 years, 1 month ago (2009-02-21 01:25:26 UTC) #2
MikeSamuel
http://codereview.appspot.com/21046/diff/1/6 File src/com/google/caja/plugin/HtmlSanitizer.java (right): http://codereview.appspot.com/21046/diff/1/6#newcode239 Line 239: private boolean removeBadAttribute(DomTree.Tag el, Name attrName) { If ...
17 years, 1 month ago (2009-02-21 01:37:47 UTC) #3
Jasvir
17 years, 1 month ago (2009-02-25 03:23:22 UTC) #4
LGTM
Sign in to reply to this message.

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