/src/main/java/org/htmlunit/html/UnknownElementFactory.java
final Map<String, String> namespaces = htmlPage.getNamespaces( ) ; final String prefix = tagName.substring( 0, tagName.indexOf( ':') ) ;final HtmlPage htmlPage = ( HtmlPage) page;
final HtmlPage htmlPage = ( HtmlPage ) page; final String prefix = tagName.substring ( 0, tagName.indexOf ( ':' ) ) ; final Map<String, String> namespaces = htmlPage.getNamespaces ( ) ;
private UnknownElementFactory() { } @Override public HtmlElement createElement(final SgmlPage page, final String tagName, final Attributes attributes) { String namespace = null; if (page != null && page.isHtmlPage() && tagName.indexOf(':') != -1) { <extra_id_0> if (namespaces.containsKey(prefix)) { namespace = namespaces.get(prefix); } } return createElementNS(page, namespace, tagName, attributes); }