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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 11 11:47:36 PDT 2011


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

           Summary: The "port" property of an <a> who's href does not
                    specify a port returns the wrong value
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gnarf at gnarf.net


Chrome Version       : 15.0.847.0 canary (also affects Safari)
URLs (if applicable) : http://jsfiddle.net/gnarf/8gQgS/2/show/
http://jsfiddle.net/gnarf/8gQgS/2/ for the code

Other browsers tested:
     Safari 5: FAIL
  Firefox 4.x: OK
       IE 7/8/9: OK

What steps will reproduce the problem?
1. a = document.createElement( "a" );
2. a.port === "0";

What is the expected result?

a.port === "";

It seems that location.port === "", so a.port should also be an empty string.


What happens instead?

a.port is '0'

Please provide any additional information below. Attach a screenshot if
possible.

http://www.whatwg.org/specs/web-apps/current-work/#url-decomposition-idl-attributes states that it should return the "empty string"

-- 
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