/src/main/java/org/htmlunit/util/XmlUtils.java
final int length = attributesMap.getLength ( ) ;
} return new DomElement(namespaceURI, qualifiedName, page, attributes); } private static Attributes namedNodeMapToSaxAttributes(final NamedNodeMap attributesMap, final Map<Integer, List<String>> attributesOrderMap, final Node element) { final AttributesImpl attributes = new AttributesImpl(); <extra_id_0> for (int i = 0; i < length; i++) { final int orderedIndex = Platform.getIndex(attributesMap, attributesOrderMap, element, i); final Node attr = attributesMap.item(orderedIndex); attributes.addAttribute(attr.getNamespaceURI(), attr.getLocalName(), attr.getNodeName(), null, attr.getNodeValue()); }