mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-26 01:25:22 +02: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 (cherry picked from commit deff8df2c79af718f08f16bc47f5a22ac6add553)
This commit is contained in:
committed by
Nico Weber
parent
db01e39913
commit
51b710bce1
@@ -451,6 +451,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
|
||||
|
||||
Reference in New Issue
Block a user