Skip to content

Commit d65fb5f

Browse files
committed
Mozilla bug 1602944 - Move setting context to null. r=alchen.
1 parent 91f7a72 commit d65fb5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nu/validator/htmlparser/impl/TreeBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,6 @@ final void warn(String message, Locator locator) throws SAXException {
719719
tokenizer.setState(Tokenizer.DATA);
720720
}
721721
}
722-
contextName = null;
723-
contextNode = null;
724722
} else {
725723
mode = INITIAL;
726724
// If we are viewing XML source, put a foreign element permanently
@@ -1631,6 +1629,8 @@ public final void eof() throws SAXException {
16311629
public final void endTokenization() throws SAXException {
16321630
formPointer = null;
16331631
headPointer = null;
1632+
contextName = null;
1633+
contextNode = null;
16341634
templateModeStack = null;
16351635
if (stack != null) {
16361636
while (currentPtr > -1) {

0 commit comments

Comments
 (0)