Index: Source/core/html/HTMLBaseElement.cpp |
diff --git a/Source/core/html/HTMLBaseElement.cpp b/Source/core/html/HTMLBaseElement.cpp |
index 1d6f2373f96b0d16ef44f5168e19001d93fb5ed9..6b3bf7c9bd275cf0b549c64ee5631f22e4f84ccd 100644 |
--- a/Source/core/html/HTMLBaseElement.cpp |
+++ b/Source/core/html/HTMLBaseElement.cpp |
@@ -88,9 +88,9 @@ KURL HTMLBaseElement::href() const |
if (attributeValue.isNull()) |
return document()->url(); |
- KURL url = !document()->decoder() ? |
+ KURL url = document()->encoding().isValid() ? |
KURL(document()->url(), stripLeadingAndTrailingHTMLSpaces(attributeValue)) : |
- KURL(document()->url(), stripLeadingAndTrailingHTMLSpaces(attributeValue), document()->decoder()->encoding()); |
+ KURL(document()->url(), stripLeadingAndTrailingHTMLSpaces(attributeValue), document()->encoding()); |
if (!url.isValid()) |
return KURL(); |