/src/main/java/org/htmlunit/html/UnknownElementFactory.java
if ( page != null) {
if ( page != null && page.isHtmlPage ( ) && tagName.indexOf ( ':' ) != -1 ) {
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 HtmlPage htmlPage = (HtmlPage) page; final String prefix = tagName.substring(0, tagName.indexOf(':')); final Map<String, String> namespaces = htmlPage.getNamespaces(); if (namespaces.containsKey(prefix)) { namespace = namespaces.get(prefix); }