1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-11 19:08:36 +00:00

[Parser] Move setting context to null to the correct location.

This commit is contained in:
Henri Sivonen
2020-02-14 13:24:59 +01:00
committed by Roy Tam
parent e58f92ba6e
commit 140bd4d265
2 changed files with 4 additions and 4 deletions
@@ -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) {