mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 04:41:56 +00:00
LibWeb: Actually perform "update the href steps"
We completely missed this step, which made setters not actually do anything! Fixes 336 test failures on: https://wpt.live/url/url-setters-a-area.window.html
This commit is contained in:
parent
40742d95e6
commit
deff8df2c7
Notes:
github-actions[bot]
2024-08-08 14:00:35 +00:00
Author: https://github.com/shannonbooth
Commit: deff8df2c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1009
3 changed files with 13 additions and 0 deletions
|
@ -449,6 +449,7 @@ WebIDL::ExceptionOr<void> HTMLHyperlinkElementUtils::set_href(String href)
|
|||
void HTMLHyperlinkElementUtils::update_href()
|
||||
{
|
||||
// To update href, set the element's href content attribute's value to the element's url, serialized.
|
||||
MUST(set_hyperlink_element_utils_href(MUST(String::from_byte_string(m_url->serialize()))));
|
||||
}
|
||||
|
||||
bool HTMLHyperlinkElementUtils::cannot_navigate() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue