From ece9e00e7a992882100244304127ef1d39114615 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Wed, 20 Mar 2002 00:25:34 +0000 Subject: [PATCH] Do not truncate a legal attribute value when trying to ignore '/' in a short-hand-tag. b=125647, r=heikki, sr=jst, a=scc --- htmlparser/src/nsHTMLTokens.cpp | 2 +- parser/htmlparser/src/nsHTMLTokens.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htmlparser/src/nsHTMLTokens.cpp b/htmlparser/src/nsHTMLTokens.cpp index 1002cb1fe74..e4fce8c5adb 100644 --- a/htmlparser/src/nsHTMLTokens.cpp +++ b/htmlparser/src/nsHTMLTokens.cpp @@ -1469,7 +1469,7 @@ void CAttributeToken::SanitizeKey() { // legal part if (iter != --end) { nsAutoString str; - CopyUnicodeTo(begin, iter, str); + CopyUnicodeTo(begin, ++iter, str); mTextKey.Rebind(str); } } diff --git a/parser/htmlparser/src/nsHTMLTokens.cpp b/parser/htmlparser/src/nsHTMLTokens.cpp index 1002cb1fe74..e4fce8c5adb 100644 --- a/parser/htmlparser/src/nsHTMLTokens.cpp +++ b/parser/htmlparser/src/nsHTMLTokens.cpp @@ -1469,7 +1469,7 @@ void CAttributeToken::SanitizeKey() { // legal part if (iter != --end) { nsAutoString str; - CopyUnicodeTo(begin, iter, str); + CopyUnicodeTo(begin, ++iter, str); mTextKey.Rebind(str); } }