Reviewers: jasvir, fargo_google.com,
Description:
This modifies htmlparser1.2.1 to expose
ElementName and AttributeName.
This means that we're parsing an up-to-date version of HTML5, but the
new parser delays creating text nodes, which leads to bad file
positions. This should be fixable in later CLs, but is a defect of
the current implementation.
Please review this at http://codereview.appspot.com/165082
Affected files:
M build.xml
M src/com/google/caja/lexer/FilePosition.java
M src/com/google/caja/parser/html/CajaTreeBuilder.java
M src/com/google/caja/parser/html/DomParser.java
M src/com/google/caja/parser/html/Html5ElementStack.java
M src/com/google/caja/parser/html/OpenElementStack.java
M src/com/google/caja/util/Maps.java
M tests/com/google/caja/parser/html/DomParserTest.java
D third_party/java/htmlparser/htmlparser.jar
M
third_party/java/htmlparser/src/nu/validator/htmlparser/impl/AttributeName.java
M
third_party/java/htmlparser/src/nu/validator/htmlparser/impl/ElementName.java
M
third_party/java/htmlparser/src/nu/validator/htmlparser/impl/HtmlAttributes.java