Bug 1834110 - Do not run script elements with whitespace type attribute values r=peterv
Fixed running script elements with a type attribute value with whitespace (like " "). Fixed by comparing value emptiness before and after trim, if not empty before and empty after, undo the trim. 2 WPT subtests now newly pass. WPT tests: https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/script-type-and-language-js.html Differential Revision: https://phabricator.services.mozilla.com/D178573
Showing
- dom/html/HTMLScriptElement.cpp 9 additions, 0 deletionsdom/html/HTMLScriptElement.cpp
- testing/web-platform/meta/html/semantics/scripting-1/the-script-element/script-type-and-language-js-xhtml.xhtml.ini 0 additions, 5 deletions...cript-element/script-type-and-language-js-xhtml.xhtml.ini
- testing/web-platform/meta/html/semantics/scripting-1/the-script-element/script-type-and-language-js.html.ini 0 additions, 5 deletions...1/the-script-element/script-type-and-language-js.html.ini
Please register or sign in to comment