LibWeb: Don't implement bogus assertion in prepare-the-script-element
The HTML spec is asking us to make a possibly-bogus assertion, so let's disable it for now. Spec bug: https://github.com/whatwg/html/issues/8534
This commit is contained in:
parent
b21b27fda3
commit
e54ae1bd11
Notes:
sideshowbarker
2024-07-17 08:38:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e54ae1bd11 Pull-request: https://github.com/SerenityOS/serenity/pull/16125 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 3 deletions
|
@ -394,10 +394,9 @@ void HTMLScriptElement::prepare_script()
|
|||
}
|
||||
|
||||
// 32. If el's type is "classic" and el has a src attribute, or el's type is "module":
|
||||
if ((m_script_type == ScriptType::Classic && has_attribute(HTML::AttributeNames::src))
|
||||
|| m_script_type == ScriptType::Module) {
|
||||
if ((m_script_type == ScriptType::Classic && has_attribute(HTML::AttributeNames::src)) || m_script_type == ScriptType::Module) {
|
||||
// 1. Assert: el's result is "uninitialized".
|
||||
VERIFY(m_result.has<ResultState::Uninitialized>());
|
||||
// FIXME: I believe this step to be a spec bug, and it should be removed: https://github.com/whatwg/html/issues/8534
|
||||
|
||||
// 2. If el has an async attribute or el's force async is true:
|
||||
if (has_attribute(HTML::AttributeNames::async) || m_force_async) {
|
||||
|
|
Loading…
Add table
Reference in a new issue