Open
Bug 1612466
Opened 5 years ago
Updated 2 years ago
Text content in SVG with xml:space=preserve is shown with normalized whitespace in the DOM inspector
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: bugzilla, Unassigned)
Details
(Keywords: parity-chrome, testcase, Whiteboard: [dt-q])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
Have either
- a HTML document with embedded SVG or
- an SVG image
where certain nodes have text content and an xml:space="preserve" attribute.
I'd guess the same would happen for arbitrary XML documents as well.
Actual results:
While rendering honors the attribute, the DOM inspector in the developer tools always shows the text content as if xml:space="preserved" was not specified.
Expected results:
At least those nodes that have xml:space="preserve" should show the actual text content, not the normalized one. But even in the general case the normalization is dubious, as CSS could enforce white-space rendering differences via its white-space property.
Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Probably a duplicate of bug 878514 which has an overly specific summary.
Has STR: --- → yes
Component: Untriaged → Inspector
Keywords: parity-chrome,
testcase
Product: Firefox → DevTools
Updated•5 years ago
|
Priority: -- → P3
Whiteboard: [dt-q]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•