Bug 190631: xsl:value-of shouldn't call ::characters on the resulthandler with an empty string.

r=Pike, sr=peterv, a=asa
This commit is contained in:
sicking%bigfoot.com 2005-11-02 07:39:44 +00:00
Родитель e9cbc9d914
Коммит d56b8f9d80
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -321,7 +321,8 @@ void txHTMLOutput::startElement(const nsAString& aName,
void txHTMLOutput::closeStartTag(MBool aUseEmptyElementShorthand)
{
txExpandedName* currentElement = (txExpandedName*)mCurrentElements.peek();
txExpandedName* currentElement = mCurrentElements.isEmpty() ?
nsnull : (txExpandedName*)mCurrentElements.peek();
if (mStartTagOpen && currentElement &&
(currentElement->mNamespaceID == kNameSpaceID_None) &&
(currentElement->mLocalName == txHTMLAtoms::head)) {