Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
html/semantics/scripting-1/the-script-element/script-type-and-languag…
…e-empty.html WPT test is failing https://bugs.webkit.org/show_bug.cgi?id=235202 Reviewed by Darin Adler. LayoutTests/imported/w3c: Rebaseline test that is now passing. * web-platform-tests/html/semantics/scripting-1/the-script-element/script-type-and-language-empty-expected.txt: Source/WebCore: Per https://html.spec.whatwg.org/multipage/scripting.html#prepare-a-script (step 8), we should assume the type is "text/javascript" if the type attribute is present and its value is the empty string. Our logic in ScriptElement::determineScriptType() was slightly wrong and didn't get this case right because it was doing an `isEmpty()` check which could mean both that the attribute is missing or present with a value that is the empty string. No new tests, rebaselined existing test. * dom/ScriptElement.cpp: (WebCore::ScriptElement::determineScriptType const): Canonical link: https://commits.webkit.org/246030@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
44 additions
and 3 deletions.
- +8 −0 LayoutTests/fast/html/script-allowed-types-languages-expected.txt
- +1 −1 LayoutTests/fast/tokenizer/004-expected.txt
- +11 −0 LayoutTests/imported/w3c/ChangeLog
- +1 −1 ...m-tests/html/semantics/scripting-1/the-script-element/script-type-and-language-empty-expected.txt
- +18 −0 Source/WebCore/ChangeLog
- +5 −1 Source/WebCore/dom/ScriptElement.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,6 +1,6 @@ | ||
|
||
PASS A script with empty type and no language should run | ||
PASS A script with empty type and a random language should run | ||
PASS A script with empty type and empty language should run | ||
PASS A script with no type and empty language should run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters