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