mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
bcc50ca39a
commit
3a5a309d1a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user