| Index: Source/core/html/HTMLAnchorElement.cpp
|
| diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
|
| index e0034d05ae423aeb9a67a8c9705ffb2dd95f2abc..e10898a4831280c94700e98a62ee3d363e934d4d 100644
|
| --- a/Source/core/html/HTMLAnchorElement.cpp
|
| +++ b/Source/core/html/HTMLAnchorElement.cpp
|
| @@ -413,9 +413,9 @@ void HTMLAnchorElement::setHost(const String& value)
|
| if (!separator)
|
| return;
|
|
|
| - if (separator == kNotFound)
|
| - url.setHostAndPort(value);
|
| - else {
|
| + if (separator == kNotFound) {
|
| + url.setHost(value);
|
| + } else {
|
| unsigned portEnd;
|
| unsigned port = parsePortFromStringPosition(value, separator + 1, portEnd);
|
| if (!port) {
|
|
|