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)
DevTools
Inspector
Tracking
(firefox51 affected)
NEW
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
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•