Allow to drag element into empty element or element with only text content (and without pseudo-elements)

NEW
Unassigned

Status

()

Firefox
Developer Tools: Inspector
P2
enhancement
2 years ago
4 months ago

People

(Reporter: arni2033, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(firefox43 affected)

Details

(URL)

(Reporter)

Description

2 years ago
STR: (Win7, Nightly 43.0a1 (2015-08-15))
1. Open page   data:text/html,<div><br>
2. Drag-and-drop <br> element to make it 1st child of <body>
3. Try to drag-and-drop <br> element back into <div> element

Result:       Currently there's no way to do that
Expectations: There should be the way to do that.

Note:         Currently I have to copy <br>'s outerHTML, then remove <br> element, then
              edit <div> as HTML, paste <br>'s outerHTML, press Ctrl+Enter.
              (And btw I'm going to get black closing tag </div> due to bug 1189464)"
(Reporter)

Updated

2 years ago
Severity: normal → enhancement
Status: NEW → UNCONFIRMED
Ever confirmed: false

Updated

2 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Not only empty elements but also elements only containing text are affected by this.

I'd suggest the UI to be a vertical bar right after the opening tag or before the closing tag as indication for where the dragged element will be inserted when dropped.

Sebastian
Summary: Drag and drop mode in Inspector doesn't allow to move an element into another element with empty innerHTML (and without pseudoelements) → Allow to drag element into empty element or element with only text content (and without pseudo-elements)
Inspector bug triage. Filter on CLIMBING SHOES.
Priority: -- → P2
Blocks: 1264624
You need to log in before you can comment on or make changes to this bug.