зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e9cbc9d914
Коммит
d56b8f9d80
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче