((LagartoDOMBuilder) jerryParser.getDOMBuilder()).enableHtmlMode();
// default, case not sensitive
Jerry doc = jerryParser.parse(str);
Document document = (Document) doc.get(0);
Element divNode = (Element) document.getChild(0);
assertEquals("div", divNode.getNodeName());
assertNotNull(divNode.getAttribute("myattr"));
assertNotNull(divNode.getAttribute("myAttr"));
Element divNode2 = (Element) doc.$("div[myattr=aaa]").nodes[0];
assertSame(divNode, divNode2);
assertEquals("<div id=\"one\" myattr=\"aaa\">xxx</div>", doc.html());
// case sensitive
((LagartoDOMBuilder) jerryParser.getDOMBuilder()).getConfig().setCaseSensitive(true);
doc = jerryParser.parse(str);
document = (Document) doc.get(0);
divNode = (Element) document.getChild(0);
assertEquals("dIV", divNode.getNodeName());
assertNull(divNode.getAttribute("myattr"));
assertEquals("<dIV id=\"one\" myAttr=\"aaa\">xxx</dIV>", doc.html());