/src/main/java/org/htmlunit/util/XmlUtils.java
if ( page != null && page.isHtmlPage( ) ) { final NamedNodeMap nodeAttributes = source.getAttributes( ) ;
final NamedNodeMap nodeAttributes = source.getAttributes ( ) ; if ( page != null && page.isHtmlPage ( ) ) {
String localName = source.getLocalName(); if (handleXHTMLAsHTML && Html.XHTML_NAMESPACE.equals(ns)) { final ElementFactory factory = page.getWebClient().getPageCreator().getHtmlParser().getFactory(localName); return factory.createElementNS(page, ns, localName, namedNodeMapToSaxAttributes(source.getAttributes(), attributesOrderMap, source)); } <extra_id_0> localName = localName.toUpperCase(Locale.ROOT); } final String qualifiedName; if (source.getPrefix() == null) { qualifiedName = localName; }