Fix for bug 126765 (Change NormalizeAttrString to GetAttrWithName). Original fix by Daniel Bratell and sicking, r=sicking, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@148564 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peter%propagandism.org
2003-10-30 13:47:29 +00:00
parent caf1987140
commit 3ba29338bc
21 changed files with 392 additions and 241 deletions

View File

@@ -694,12 +694,10 @@ nsGenericDOMDataNode::GetClassAttributeName() const
return nsnull;
}
NS_IMETHODIMP
nsGenericDOMDataNode::NormalizeAttrString(const nsAString& aStr,
nsINodeInfo** aNodeInfo)
NS_IMETHODIMP_(already_AddRefed<nsINodeInfo>)
nsGenericDOMDataNode::GetExistingAttrNameFromQName(const nsAString& aStr)
{
*aNodeInfo = nsnull;
return NS_OK;
return nsnull;
}
NS_IMETHODIMP
@@ -1345,12 +1343,8 @@ nsGenericDOMDataNode::AppendTextTo(nsAString& aResult)
if (mText.Is2b()) {
aResult.Append(mText.Get2b(), mText.GetLength());
} else {
// XXX we would like to have a AppendASCIItoUCS2 here
aResult.Append(NS_ConvertASCIItoUCS2(mText.Get1b(),
mText.GetLength()).get(),
mText.GetLength());
// XXX we would like to have a AppendASCIItoUTF16 here
AppendUTF8toUTF16(mText.Get1b(), aResult);
}
return NS_OK;