LibWeb: Use the [Reflect] attribute to implement HTMLLinkElement.as

Also ensure that all valid potential destinations are allowed permitted.
This commit is contained in:
Tim Ledbetter 2024-11-28 20:38:36 +00:00 committed by Andreas Kling
commit 4ad8ba11d5
Notes: github-actions[bot] 2024-11-29 08:49:55 +00:00
3 changed files with 29 additions and 21 deletions

View file

@ -33,7 +33,6 @@ public:
String rel() const { return get_attribute_value(HTML::AttributeNames::rel); }
String type() const { return get_attribute_value(HTML::AttributeNames::type); }
String href() const { return get_attribute_value(HTML::AttributeNames::href); }
String as() const;
WebIDL::ExceptionOr<void> set_as(String const&);
GC::Ref<DOM::DOMTokenList> rel_list();