Bug 796839 - Part 3: Don't get the inline properties from empty text nodes; r=roc

This is basically the equivalent of the previous part, just for getting
the inline properties.
This commit is contained in:
Ehsan Akhgari 2012-10-04 20:58:00 -04:00
parent 9fe0740025
commit 10859e4967

View File

@ -1220,7 +1220,7 @@ nsHTMLEditor::GetInlinePropertyBase(nsIAtom *aProperty,
text = do_QueryInterface(content);
// just ignore any non-editable nodes
if (text && !IsEditable(text)) {
if (text && (!IsEditable(text) || IsEmptyTextNode(this, content))) {
continue;
}
if (text) {