fixed bug handling multiple namespace declarations in one tag

This commit is contained in:
peterl%netscape.com 1999-02-02 03:24:56 +00:00
parent 763f6a8dde
commit 8459a64073
2 changed files with 2 additions and 0 deletions

View File

@ -492,6 +492,7 @@ nsXMLContentSink::PushNameSpacesFrom(const nsIParserNode& aNode)
PRUnichar next = k.CharAt(sizeof(kNameSpaceDef)-1);
// If the next character is a :, there is a namespace prefix
if (':' == next) {
prefix.Truncate();
k.Right(prefix, k.Length()-sizeof(kNameSpaceDef));
}
else {

View File

@ -492,6 +492,7 @@ nsXMLContentSink::PushNameSpacesFrom(const nsIParserNode& aNode)
PRUnichar next = k.CharAt(sizeof(kNameSpaceDef)-1);
// If the next character is a :, there is a namespace prefix
if (':' == next) {
prefix.Truncate();
k.Right(prefix, k.Length()-sizeof(kNameSpaceDef));
}
else {