If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

NEW
Unassigned

Status

()

Firefox
Developer Tools: Inspector
P3
enhancement
a year ago
a year ago

People

(Reporter: sebo, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox51 affected)

Details

(Reporter)

Description

a year ago
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
You need to log in before you can comment on or make changes to this bug.