mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
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
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":
|
// 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))
|
if ((m_script_type == ScriptType::Classic && has_attribute(HTML::AttributeNames::src)) || m_script_type == ScriptType::Module) {
|
||||||
|| m_script_type == ScriptType::Module) {
|
|
||||||
// 1. Assert: el's result is "uninitialized".
|
// 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:
|
// 2. If el has an async attribute or el's force async is true:
|
||||||
if (has_attribute(HTML::AttributeNames::async) || m_force_async) {
|
if (has_attribute(HTML::AttributeNames::async) || m_force_async) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue