@@ -2975,7 +2975,6 @@ protected boolean scanAttribute(final XMLAttributesImpl attributes, final boolea
29752975 if (fReportErrors_ && !skippedSpaces ) {
29762976 fErrorReporter .reportError ("HTML1013" , new Object [] {aname });
29772977 }
2978- aname = modifyName (aname , fNamesAttrs );
29792978 skipSpaces ();
29802979 c = fCurrentEntity .read ();
29812980 if (c == -1 ) {
@@ -2984,6 +2983,7 @@ protected boolean scanAttribute(final XMLAttributesImpl attributes, final boolea
29842983 }
29852984 throw new EOFException ();
29862985 }
2986+ aname = modifyName (aname , fNamesAttrs );
29872987 if (c == '/' ) {
29882988 qName_ .setValues (null , aname , aname , null );
29892989 attributes .addAttribute (qName_ , "CDATA" , "" , true );
@@ -3214,8 +3214,8 @@ protected void scanEndElement() throws IOException {
32143214 }
32153215 skipMarkup (false );
32163216 if (ename != null ) {
3217- ename = modifyName (ename , fNamesElems );
32183217 if (fElementCount >= fElementDepth ) {
3218+ ename = modifyName (ename , fNamesElems );
32193219 qName_ .setValues (null , ename , ename , null );
32203220 if (DEBUG_CALLBACKS ) {
32213221 System .out .println ("endElement(" + qName_ + ")" );
@@ -3306,8 +3306,8 @@ public boolean scan(final boolean complete) throws IOException {
33063306
33073307 if (ename .equalsIgnoreCase (fElementName )) {
33083308 if (fCurrentEntity .read () == '>' ) {
3309- ename = modifyName (ename , fNamesElems );
33103309 if (fElementCount >= fElementDepth ) {
3310+ ename = modifyName (ename , fNamesElems );
33113311 fQName_ .setValues (null , ename , ename , null );
33123312 if (DEBUG_CALLBACKS ) {
33133313 System .out .println ("endElement(" + fQName_ + ")" );
@@ -3320,8 +3320,7 @@ public boolean scan(final boolean complete) throws IOException {
33203320 }
33213321 fCurrentEntity .rewind ();
33223322 }
3323- charBuffer_ .clear ().append ("</" );
3324- charBuffer_ .append (ename );
3323+ charBuffer_ .clear ().append ("</" ).append (ename );
33253324 }
33263325 else {
33273326 charBuffer_ .clear ().append ("</" );
0 commit comments