diff --git a/Tests/LibWeb/Text/expected/link-element-onload-attribute.txt b/Tests/LibWeb/Text/expected/link-element-onload-attribute.txt new file mode 100644 index 0000000000..6c0a18f2b7 --- /dev/null +++ b/Tests/LibWeb/Text/expected/link-element-onload-attribute.txt @@ -0,0 +1 @@ +link element onload diff --git a/Tests/LibWeb/Text/input/link-element-onload-attribute.html b/Tests/LibWeb/Text/input/link-element-onload-attribute.html new file mode 100644 index 0000000000..67b7b5d4cd --- /dev/null +++ b/Tests/LibWeb/Text/input/link-element-onload-attribute.html @@ -0,0 +1,9 @@ + + diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index a19773178a..df314cb0dd 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -79,6 +79,8 @@ bool HTMLLinkElement::has_loaded_icon() const void HTMLLinkElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) { + HTMLElement::parse_attribute(name, value); + // 4.6.7 Link types - https://html.spec.whatwg.org/multipage/links.html#linkTypes if (name == HTML::AttributeNames::rel) { m_relationship = 0;