summaryrefslogtreecommitdiffstats
path: root/parser/html/java
diff options
context:
space:
mode:
authorHenri Sivonen <hsivonen@hsivonen.fi>2020-02-14 13:24:59 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:43:22 +0200
commit1ebbb0af0329192f4766fee671bc473a88b9e3e4 (patch)
tree6629a96ee9eba0821b1e57eb97cd43dbb48b81cc /parser/html/java
parent29b13d3523825170f4f953c5a0c60a786a8d1865 (diff)
downloadUXP-1ebbb0af0329192f4766fee671bc473a88b9e3e4.tar
UXP-1ebbb0af0329192f4766fee671bc473a88b9e3e4.tar.gz
UXP-1ebbb0af0329192f4766fee671bc473a88b9e3e4.tar.lz
UXP-1ebbb0af0329192f4766fee671bc473a88b9e3e4.tar.xz
UXP-1ebbb0af0329192f4766fee671bc473a88b9e3e4.zip
[Parser] Move setting context to null to the correct location.
Diffstat (limited to 'parser/html/java')
-rw-r--r--parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java
index de7d8478d..c8fd9ee9b 100644
--- a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java
+++ b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java
@@ -705,8 +705,6 @@ public abstract class TreeBuilder<T> implements TokenHandler,
tokenizer.setState(Tokenizer.DATA);
}
}
- contextName = null;
- contextNode = null;
} else {
mode = INITIAL;
// If we are viewing XML source, put a foreign element permanently
@@ -1614,6 +1612,8 @@ public abstract class TreeBuilder<T> implements TokenHandler,
public final void endTokenization() throws SAXException {
formPointer = null;
headPointer = null;
+ contextName = null;
+ contextNode = null;
deepTreeSurrogateParent = null;
templateModeStack = null;
if (stack != null) {