-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<a>/<area>'s origin getter returns "null" rather than "" when URL can…
…not be parsed https://bugs.webkit.org/show_bug.cgi?id=128020 rdar://114078288 Reviewed by Brent Fulgham. Check if the URL cannot be parsed first (isValid() in our code) and if so, return the empty string. This aligns us with the HTML Standard and other browsers. This is not implemented in URLDecomposition as URL, Location, and WorkerLocation always represent parsable URLs. * LayoutTests/fast/dom/HTMLAnchorElement/anchor-element-href-parsing-expected.txt: * LayoutTests/fast/dom/HTMLAnchorElement/anchor-element-href-parsing.html: Add coverage for username and password getters while here. * Source/WebCore/html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::origin const): Canonical link: https://commits.webkit.org/267222@main
- Loading branch information
Showing
3 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
LayoutTests/fast/dom/HTMLAnchorElement/anchor-element-href-parsing-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters