mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:45:07 +00:00
LibWeb: Allow event handler attributes on HTMLLinkElement
We were neglecting to set up event handlers for these due to a missing call to the base class in HTMLLinkElement::parse_attribute().
This commit is contained in:
parent
b97004ea4a
commit
c50ce2030d
3 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue