public HtmlAttributes cloneAttributes(Interner interner) throws SAXException { assert (length == 0 && xmlnsLength == 0) || mode == 0 || mode == 3; HtmlAttributes clone = new HtmlAttributes(0); for (int i = 0; i < length; i++) { clone.addAttribute(names[i].cloneAttributeName(interner), Portability.newStringFromString(values[i]) // [NOCPP[ , XmlViolationPolicy.ALLOW // ]NOCPP] ); } // [NOCPP[ for (int i = 0; i < xmlnsLength; i++) { clone.addAttribute(xmlnsNames[i], xmlnsValues[i], XmlViolationPolicy.ALLOW); } // ]NOCPP] return clone; // XXX!!! }
attributeName = null; } else { attributeName = other.attributeName.cloneAttributeName(interner);