summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-26 20:35:49 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-26 20:35:49 +0100
commit516fbad4080ad6a799b8372f411695d55a236a51 (patch)
treeb294740ac45d43d6739c1229e19fb8296b77b07f /Userland/Libraries/LibWeb/HTML
parentd8be441978978de538f1b53bcdfd9fc14acf3423 (diff)
downloadserenity-516fbad4080ad6a799b8372f411695d55a236a51.zip
LibWeb: Remove debug spam about not executing empty script elements
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
index e2aa2a78c8..d6455511ce 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
@@ -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()) {