diff options
author | Moonchild <moonchild@palemoon.org> | 2023-02-26 10:20:48 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-02-26 10:20:48 +0000 |
commit | c47d20f3f3ca694581e7d09808bbb3c43aca75d3 (patch) | |
tree | 681a7c43e56615a8cc9fa8a31badb4d2d4e423e7 | |
parent | 3e108a2c4e674364bcbad8bd168dac03a59dc0a6 (diff) | |
parent | 6c2fef44cf111418ae1e8d740543249b9675584f (diff) | |
download | uxp-c47d20f3f3ca694581e7d09808bbb3c43aca75d3.tar.gz |
Merge pull request 'Fix HTML5 parser behavior when looking for custom elements' (#2129) from FranklinDM/UXP-contrib:work_wc-fix-parser-for-custom-elements into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2129
-rw-r--r-- | parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java | 1 | ||||
-rw-r--r-- | parser/html/nsHtml5Tokenizer.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java index c6f6797fff..a674189450 100644 --- a/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java +++ b/parser/html/java/htmlparser/src/nu/validator/htmlparser/impl/Tokenizer.java @@ -1784,7 +1784,6 @@ public class Tokenizer implements Locator { * name. */ appendStrBuf(c); - containsHyphen = false; /* * Stay in the tag name state. */ diff --git a/parser/html/nsHtml5Tokenizer.cpp b/parser/html/nsHtml5Tokenizer.cpp index 4c6a32f731..c3b92fdc8d 100644 --- a/parser/html/nsHtml5Tokenizer.cpp +++ b/parser/html/nsHtml5Tokenizer.cpp @@ -598,7 +598,6 @@ nsHtml5Tokenizer::stateLoop(int32_t state, char16_t c, int32_t pos, char16_t* bu containsHyphen = true; } appendStrBuf(c); - containsHyphen = false; continue; } } |