diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:12:55 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:12:55 -0400 |
commit | f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c (patch) | |
tree | ff5eca8099cbf057f1aa734c951c8fecd14a165a /parser/html/nsHtml5Tokenizer.cpp | |
parent | 675dce947209afa61950777a7e13016604b3fdb1 (diff) | |
download | UXP-f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c.tar UXP-f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c.tar.gz UXP-f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c.tar.lz UXP-f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c.tar.xz UXP-f4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c.zip |
Bug 1375701 - Atomize class attribute value in the parser in the innerHTML case
Tag #1375
Diffstat (limited to 'parser/html/nsHtml5Tokenizer.cpp')
-rw-r--r-- | parser/html/nsHtml5Tokenizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/html/nsHtml5Tokenizer.cpp b/parser/html/nsHtml5Tokenizer.cpp index 8fea32eb8..60285ce8e 100644 --- a/parser/html/nsHtml5Tokenizer.cpp +++ b/parser/html/nsHtml5Tokenizer.cpp @@ -225,7 +225,7 @@ nsHtml5Tokenizer::emitOrAppendCharRefBuf(int32_t returnState) nsHtml5String nsHtml5Tokenizer::strBufToString() { - nsHtml5String str = nsHtml5Portability::newStringFromBuffer(strBuf, 0, strBufLen, tokenHandler); + nsHtml5String str = nsHtml5Portability::newStringFromBuffer(strBuf, 0, strBufLen, tokenHandler, !newAttributesEachTime && attributeName == nsHtml5AttributeName::ATTR_CLASS); clearStrBufAfterUse(); return str; } |