Bug 243587 - a.href a.port URL parser showing different output compared to Blink
Summary: a.href a.port URL parser showing different output compared to Blink
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-05 07:57 PDT by Ahmad Saleem
Modified: 2022-08-12 09:06 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-08-05 07:57:41 PDT
HI Team,

Thanks for your continuous support.

I came across a test case where the Safari 15.6 is matching Firefox Nightly 105 but differs from Chrome Canary 106, I am not sure on Web-spec but just wanted to bring to attention so we can decide, which behavior to follow.

Firefox Bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1151195

Test Case - https://jsfiddle.net/ug2wrq9f/

** STEPS TO REPRODUCE **

1) Run Test Case
2) Look for output in Console

<< ACTUAL RESULTS >>

"" - empty result [Same in Safari Technical Preview 150]

<< EXPECTED RESULT / CHROME RESULT >>

0 - "0"... 

____

If Safari / Webkit behavior is right then please ignore and mark this as "RESOLVED INVALID" and then if it is incorrect, appreciate if we can Webkit more web-spec compliant. Thanks!
Comment 1 Radar WebKit Bug Importer 2022-08-12 07:58:37 PDT
<rdar://problem/98568146>
Comment 2 Alex Christensen 2022-08-12 09:06:18 PDT
We follow https://url.spec.whatwg.org in this case.