WebCore: hostname and host are mixed up when manipulating anchor elements.
https://bugs.webkit.org/show_bug.cgi?id=28954
Patch by Yael Aharon <yael.aharon@nokia.com> on 2009-09-04
Reviewed by Darin Adler.
Swapped the implementation of host and hostname, and made sure not to return
the port number if it is default for the given protocol.
FireFox also avoids returning the protocol number if it is default.
Test: fast/dom/Element/hostname-host.html
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed