diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index f9dae516296..4d750824fd5 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -623,7 +623,7 @@ HTMLContentSink::GetAttributeValueAt(const nsIParserNode& aNode, const nsString& value = aNode.GetValueAt(aIndex); aResult.Truncate(); aResult.Append(value); - aResult.Trim(" \b\r\t\n",PR_TRUE,PR_TRUE,PR_TRUE); + aResult.Trim("\b\r\t\n",PR_TRUE,PR_TRUE,PR_TRUE); // Strip quotes if present PRUnichar first = aResult.First(); diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index f9dae516296..4d750824fd5 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -623,7 +623,7 @@ HTMLContentSink::GetAttributeValueAt(const nsIParserNode& aNode, const nsString& value = aNode.GetValueAt(aIndex); aResult.Truncate(); aResult.Append(value); - aResult.Trim(" \b\r\t\n",PR_TRUE,PR_TRUE,PR_TRUE); + aResult.Trim("\b\r\t\n",PR_TRUE,PR_TRUE,PR_TRUE); // Strip quotes if present PRUnichar first = aResult.First();