Open
Bug 1359393
Opened 8 years ago
Updated 3 years ago
HTMLEditor::NodeIsInlineStatic() returns false when given node is not an inline element
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: masayuki, Unassigned)
References
Details
This is really odd behavior if caller checks its result with |!|.
http://searchfox.org/mozilla-central/rev/baf47b352e873d4516d7656186d6d7c7447d3873/editor/libeditor/HTMLEditRules.cpp#7941,7946,7951
> bool
> HTMLEditRules::IsEmptyInline(nsINode& aNode)
> {
> NS_ENSURE_TRUE(mHTMLEditor, false);
> RefPtr<HTMLEditor> htmlEditor(mHTMLEditor);
>
> if (IsInlineNode(aNode) && htmlEditor->IsContainer(&aNode)) {
> bool isEmpty = true;
> htmlEditor->IsEmptyNode(&aNode, &isEmpty);
> return isEmpty;
> }
> return false;
> }
Updated•8 years ago
|
status-firefox57:
affected → ---
Updated•8 years ago
|
Priority: -- → P3
Reporter | ||
Updated•6 years ago
|
Summary: HTMLEditRules::IsEmptyInline() returns false when given node is not an inline element → HTMLEditor::NodeIsInlineStatic() returns false when given node is not an inline element
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•