mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
9fe0740025
commit
10859e4967
@ -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