@Override protected void addAttributesToElement(Attributes element, HtmlAttributes attributes) throws SAXException { Attributes existingAttrs = element; for (int i = 0; i < attributes.getLength(); i++) { String qName = attributes.getQNameNoBoundsCheck(i); if (existingAttrs.getIndex(qName) < 0) { fatal(); } } }
@Override protected void addAttributesToElement(Attributes element, HtmlAttributes attributes) throws SAXException { Attributes existingAttrs = element; for (int i = 0; i < attributes.getLength(); i++) { String qName = attributes.getQNameNoBoundsCheck(i); if (existingAttrs.getIndex(qName) < 0) { fatal(); } } }