mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Return NonnullGCPtr<DOMTokenList> from relList getters
This commit is contained in:
committed by
Andreas Kling
parent
b4af851c74
commit
fc395716e9
@@ -39,12 +39,12 @@ void HTMLAreaElement::attribute_changed(FlyString const& name, Optional<String>
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/image-maps.html#dom-area-rellist
|
||||
JS::GCPtr<DOM::DOMTokenList> HTMLAreaElement::rel_list()
|
||||
JS::NonnullGCPtr<DOM::DOMTokenList> HTMLAreaElement::rel_list()
|
||||
{
|
||||
// The IDL attribute relList must reflect the rel content attribute.
|
||||
if (!m_rel_list)
|
||||
m_rel_list = DOM::DOMTokenList::create(*this, HTML::AttributeNames::rel);
|
||||
return m_rel_list;
|
||||
return *m_rel_list;
|
||||
}
|
||||
|
||||
Optional<String> HTMLAreaElement::hyperlink_element_utils_href() const
|
||||
|
||||
Reference in New Issue
Block a user