private void addAttributeWithValue() throws SAXException { // [NOCPP[ if (metaBoundaryPassed && ElementName.META == tagName && AttributeName.CHARSET == attributeName) { err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 512 bytes."); } // ]NOCPP] if (attributeName != null) { String val = longStrBufToString(); // Ownership transferred to // HtmlAttributes // CPPONLY: if (mViewSource) { // CPPONLY: mViewSource.MaybeLinkifyAttributeValue(attributeName, val); // CPPONLY: } // [NOCPP[ if (!endTag && html4 && html4ModeCompatibleWithXhtml1Schemata && attributeName.isCaseFolded()) { val = newAsciiLowerCaseStringFromString(val); } // ]NOCPP] attributes.addAttribute(attributeName, val // [NOCPP[ , xmlnsPolicy // ]NOCPP] ); attributeName = null; // attributeName has been adopted by the // |attributes| object } }