LibWeb/HTML: Implement the Origin interface

See: https://github.com/whatwg/html/commit/68909b2
This commit is contained in:
Shannon Booth
2025-12-07 14:19:54 +01:00
committed by Jelle Raaijmakers
parent 2c11e03582
commit f9a996650b
Notes: github-actions[bot] 2025-12-30 11:41:25 +00:00
45 changed files with 770 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ class HTMLAnchorElement final
public:
virtual ~HTMLAnchorElement() override;
virtual Optional<URL::Origin> extract_an_origin() const override { return hyperlink_element_utils_extract_an_origin(); }
String rel() const { return get_attribute_value(HTML::AttributeNames::rel); }
String target() const { return get_attribute_value(HTML::AttributeNames::target); }
String download() const { return get_attribute_value(HTML::AttributeNames::download); }