Open Bug 1302041 Opened 8 years ago Updated 2 years ago

Namespace of copied elements should not be inserted when it equals the parent's namespace

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox51 affected)

Tracking Status
firefox51 --- affected

People

(Reporter: sebo, Unassigned)

References

Details

The 'xmlns' attribute holding the element's namespace is inserted together with the element when pasting it within the Inspector.
In case the namespace equals the parent element's namespace, it should not be inserted, though.

Test case:
1. Open the Inspector on https://mdn.mozillademos.org/files/12668/MDN.svg
2. Right-click the <g id="g5461"> element and choose Copy > Outer HTML from the context menu
  => The element is copied including the 'xmlns' attribute. (OK)
3. Right-click the <svg> tag and choose Paste > As Last Child from the context menu

=> The <g> element is pasted including the 'xmlns' attribute, which has the SVG namespace as value. Because the <svg> element is in the same namespace, the pasted <g> element should not have a 'xmlns' attribute.

Sebastian
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.