mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Implement the HTMLLinkElement.relList
attribute
This returns a DOMTokenList that reflects the `rel` attribute.
This commit is contained in:
parent
fc4e0cf10e
commit
51fc30a191
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/tcl3
Commit: 51fc30a191
Pull-request: https://github.com/SerenityOS/serenity/pull/24342
5 changed files with 25 additions and 2 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
String type() const { return get_attribute_value(HTML::AttributeNames::type); }
|
||||
String href() const { return get_attribute_value(HTML::AttributeNames::href); }
|
||||
|
||||
JS::GCPtr<DOM::DOMTokenList> rel_list();
|
||||
|
||||
bool has_loaded_icon() const;
|
||||
bool load_favicon_and_use_if_window_is_active();
|
||||
|
||||
|
@ -43,7 +45,7 @@ private:
|
|||
HTMLLinkElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
void attribute_changed(FlyString const&, Optional<String> const&) override;
|
||||
virtual void attribute_changed(FlyString const&, Optional<String> const&) override;
|
||||
|
||||
// ^ResourceClient
|
||||
virtual void resource_did_fail() override;
|
||||
|
@ -133,6 +135,7 @@ private:
|
|||
JS::GCPtr<CSS::CSSStyleSheet> m_loaded_style_sheet;
|
||||
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer;
|
||||
JS::GCPtr<DOM::DOMTokenList> m_rel_list;
|
||||
unsigned m_relationship { 0 };
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#explicitly-enabled
|
||||
bool m_explicitly_enabled { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue