[Webkit-unassigned] [Bug 66081] The "port" property of an <a> whose href does not specify a port returns the wrong value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 15:50:50 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66081





--- Comment #11 from Rachel Blum <groby at chromium.org>  2011-08-23 15:50:50 PST ---
Comment #6:

The bug as originally described is fixed without KURLGoogle. I.e. the described symptoms are completely fixed by just the change to HTMLAnchorElement.cpp.

But - and this also answers comment #7 -  the HTML spec calls for the setter to set the port to 0 when you pass an empty/invalid string. That was broken in KURLGoogle - see the previous LayoutTests for chromium.

And since this bug is ultimately about fixing the port attribute to conform to the HTML5 spec, I've added this in here. 

There is no fix to KURL, because KURL allows setting the port to 0, while KURLGoogle used to clear the port instead of setting it to 0 in that case.

So this patch fixes *two* issues with the port property, and the second one existed only for the Chromium build.

If it'd help, I'd be happy to split the Chromium part into a second bug - it just seemed close enough for a single patch

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list