/src/main/java/org/htmlunit/util/XmlUtils.java
final NamedNodeMap nodeAttributes = source.getAttributes( ) ;final AttributesImpl attributes = new AttributesImpl( ) ;
final AttributesImpl attributes = new AttributesImpl ( ) ;
attributes.put(attribute.getNodeName(), xmlAttribute); } return new DomElement(namespaceURI, qualifiedName, page, attributes); } private static Attributes namedNodeMapToSaxAttributes(final NamedNodeMap attributesMap, final Map<Integer, List<String>> attributesOrderMap, final Node element) { <extra_id_0> final int length = attributesMap.getLength(); 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());