Closed Bug 1273000 Opened 8 years ago Closed 8 years ago

inspector: replace textnode by whitespace creates empty element in markupview

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox49 affected)

RESOLVED DUPLICATE of bug 1304685
Tracking Status
firefox49 --- affected

People

(Reporter: jdescottes, Unassigned)

Details

Attachments

(1 file)

Attached image empty-textnode-STR.gif
STRs:

- open data:text/html,<div>textnode<span>
- open inspector, inspect "textnode"
- in markupview, doubleclick to edit the text of "textnode"
- replace "textnode" by " "
- commit the change

ER: The empty textnode should be removed from the view
AR: An empty element remains instead of the textnode

Note, if you close and reopen the inspector, the empty textnode is gone.

Empty text nodes are normally filtered in the inspector actor ([1] & [2]), but it looks like this is not handled when updating nodes.
FILTER ON CLIMBING SHOES

Marking this one as a P2 because it makes the markup view look broken
Priority: -- → P2
I think we should close this as a duplicate of bug 1304685.
Please re-open if you think otherwise.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: