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

Issue 1218046: Fix issue 1211: xmlns declarations on HTML elements in HTML parsing mode. (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=1211 This fixes the way we sneak XML attributes through the HTML tree builder so that it doesn't trigger error conditions in xerces's DOM implementation but still lets us determine the proper namespace for an element after the tree builder has figured out where elements begin and end. Submitted @4098

Patch Set 1 #

Patch Set 2 : Fix issue 1211: xmlns declarations on HTML elements in HTML parsing mode. #

Patch Set 3 : Fix issue 1211: xmlns declarations on HTML elements in HTML parsing mode. #

Total comments: 2

Patch Set 4 : Fix issue 1211: xmlns declarations on HTML elements in HTML parsing mode. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -31 lines) Patch
A src/com/google/caja/parser/html/AttributeNameFixup.java View 1 chunk +93 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/html/CajaTreeBuilder.java View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M src/com/google/caja/parser/html/DomParser.java View 1 2 3 6 chunks +22 lines, -13 lines 0 comments Download
M src/com/google/caja/parser/html/Html5ElementStack.java View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M src/com/google/caja/service/ContentHandler.java View 1 chunk +1 line, -2 lines 0 comments Download
M src/com/google/caja/service/InnocentHandler.java View 1 chunk +1 line, -2 lines 0 comments Download
M src/com/google/caja/service/JsHandler.java View 2 chunks +2 lines, -3 lines 0 comments Download
M tests/com/google/caja/parser/html/DomParserTest.java View 1 2 3 1 chunk +43 lines, -0 lines 1 comment Download

Messages

Total messages: 5
MikeSamuel
15 years, 10 months ago (2010-05-21 21:16:52 UTC) #1
MikeSamuel
This was missing a file. Added and snapshotted. 2010/5/21 <mikesamuel@gmail.com>: > Reviewers: jasvir, > > ...
15 years, 10 months ago (2010-05-21 21:30:07 UTC) #2
MikeSamuel
ping
15 years, 10 months ago (2010-05-26 18:29:28 UTC) #3
Jasvir
LGTM http://codereview.appspot.com/1218046/diff/7001/8002 File src/com/google/caja/parser/html/AttributeNameFixup.java (right): http://codereview.appspot.com/1218046/diff/7001/8002#newcode51 src/com/google/caja/parser/html/AttributeNameFixup.java:51: static final String PREFIX = "f:"; What happens ...
15 years, 10 months ago (2010-05-27 16:48:04 UTC) #4
MikeSamuel
15 years, 10 months ago (2010-06-01 22:02:04 UTC) #5
http://codereview.appspot.com/1218046/diff/7001/8002
File src/com/google/caja/parser/html/AttributeNameFixup.java (right):

http://codereview.appspot.com/1218046/diff/7001/8002#newcode51
src/com/google/caja/parser/html/AttributeNameFixup.java:51: static final String
PREFIX = "f:";
On 2010/05/27 16:48:05, jasvir wrote:
> What happens if the input itself uses the f: prefix?

I added a test to check that.  See other comment for a pointer.

http://codereview.appspot.com/1218046/diff/12001/13001
File tests/com/google/caja/parser/html/DomParserTest.java (right):

http://codereview.appspot.com/1218046/diff/12001/13001#newcode2462
tests/com/google/caja/parser/html/DomParserTest.java:2462: + "  <f:foo
bar=\"baz\" f:boo=\"far\"/>\n"
This is the test I added.
Sign in to reply to this message.

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