1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 13:44:58 +00:00

LibWeb: Remove debug spam about not executing empty script elements

This commit is contained in:
Andreas Kling 2022-03-26 20:35:49 +01:00
parent d8be441978
commit 516fbad408

View file

@ -139,10 +139,8 @@ void HTMLScriptElement::prepare_script()
auto source_text = child_text_content();
// 6. If the element has no src attribute, and source text is the empty string, then return. The script is not executed.
if (!has_attribute(HTML::AttributeNames::src) && source_text.is_empty()) {
dbgln("HTMLScriptElement: Refusing to run empty script.");
if (!has_attribute(HTML::AttributeNames::src) && source_text.is_empty())
return;
}
// 7. If the element is not connected, then return. The script is not executed.
if (!is_connected()) {