diff options
author | Henri Sivonen <hsivonen@hsivonen.fi> | 2020-02-14 13:24:59 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-14 13:24:59 +0100 |
commit | 3bf1b835915d6f3de07fb24f293268599d424df6 (patch) | |
tree | a97aa03c1ca9b2f75449140d60e2640643459dfe /parser/html/java/htmlparser/src | |
parent | 2bdbca39b210e3f13ae42ccae36935d30b36eb31 (diff) | |
download | UXP-3bf1b835915d6f3de07fb24f293268599d424df6.tar UXP-3bf1b835915d6f3de07fb24f293268599d424df6.tar.gz UXP-3bf1b835915d6f3de07fb24f293268599d424df6.tar.lz UXP-3bf1b835915d6f3de07fb24f293268599d424df6.tar.xz UXP-3bf1b835915d6f3de07fb24f293268599d424df6.zip |
[Parser] Move setting context to null to the correct location.
Diffstat (limited to 'parser/html/java/htmlparser/src')
-rw-r--r-- | parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/TreeBuilder.java | 4 |
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 d77715a3e..cc60f4c4b 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 @@ -717,8 +717,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 @@ -1627,6 +1625,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) { |