Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1272 by chiragshah1: Node names seem to be converted to lower case
http://code.google.com/p/google-caja/issues/detail?id=1272
What revision of the cajoler exhibits the problem? On what browser and OS?
caja.htmlparser: r4209
caja.caja: r4251
What steps will reproduce the problem?
Example test case:
InputSource is = InputSource.UNKNOWN;
HtmlLexer lexer = new
HtmlLexer(CharProducer.Factory.fromString("<OSData>hi</OSData>", is));
MessageQueue mq = new SimpleMessageQueue();
TokenQueue<HtmlTokenType> tokenQueue = new TokenQueue<HtmlTokenType>(lexer,
is);
DomParser parser = new DomParser(tokenQueue, /** xml */ false, mq);
parser.setDomImpl(DOMImplementationRegistry.newInstance().getDOMImplementation("XML
1.0
Traversal 2.0"));
Element el = parser.parseDocument();
System.out.println("As XML? " + parser.asXml());
System.out.println("Tag Name OSData: " +
el.getElementsByTagName("OSData").getLength()); // Prints 0
System.out.println("Tag Name osdata: " +
el.getElementsByTagName("osdata").getLength()); // Prints 1
This impacts shindig because
org.apache.shindig.gadgets.parse.SocialDataTags#getTags() calls
getElementsByTagName("OSData")
What is the expected output? What do you see instead?
Expected el.getElementsByTagName("OSData").getLength() to print 1 instead
of 0.
Please provide any additional information below.