Bug 1375701 - Atomize class attribute value in the parser in the innerHTML case

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 06:12:55 -04:00 committed by Roy Tam
commit fe13c5bffc
14 changed files with 275 additions and 153 deletions

View file

@ -2181,7 +2181,7 @@ nsHtml5TreeBuilder::extractCharsetFromContent(nsHtml5String attributeValue, nsHt
if (end == -1) {
end = buffer.length;
}
charset = nsHtml5Portability::newStringFromBuffer(buffer, start, end - start, tb);
charset = nsHtml5Portability::newStringFromBuffer(buffer, start, end - start, tb, false);
}
return charset;
}