Fix for bug 105452 (Annoying assert when outputing DOM to HTML source). r=cmanske, sr=kin.

This commit is contained in:
peterv%netscape.com 2001-11-14 13:47:49 +00:00
Родитель 5550862ce8
Коммит 7d8ca8b01d
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -106,8 +106,10 @@ nsXMLContentSerializer::AppendTextData(nsIDOMNode* aNode,
PRInt32 length = ((aEndOffset == -1) ? frag->GetLength() : aEndOffset) - aStartOffset;
if (length <= 0) {
NS_ASSERTION(0, "a start offset is beyond the end of the text fragment!");
return NS_OK; // XXX Maybe this should be an error
NS_ASSERTION(aStartOffset == 0,
"a start offset is beyond the end of the text fragment!");
return NS_OK; // XXX Zero is a legal value, maybe non-zero values should
// be an error.
}
if (frag->Is2b()) {