/src/main/java/org/htmlunit/util/XmlUtils.java
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 ) ) ; }
final DocumentType documentType = (DocumentType) source; return new DomDocumentType(page, documentType.getName(), documentType.getPublicId(), documentType.getSystemId()); } final String ns = source.getNamespaceURI(); String localName = source.getLocalName(); <extra_id_0> final NamedNodeMap nodeAttributes = source.getAttributes(); if (page != null && page.isHtmlPage()) { localName = localName.toUpperCase(Locale.ROOT); } final String qualifiedName; if (source.getPrefix() == null) {