Open
Bug 1564933
Opened 6 years ago
Updated 3 years ago
Markup view goes blank if editing an unstyled XML document
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(firefox68 affected, firefox69 affected, firefox70 affected)
NEW
People
(Reporter: ohnobinki, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
- Create an XML document on the filesystem. For example, I created a file named “x123.xml” and placed the following content in it:
<?xml version="1.0"?>
<x>
</x>
- View the file in Firefox. It will show a message about the content being unstyled and say it is showing the tree.
- Open DOM Inspector.
- Use DOM Inspector to add an attribute to the root element. For example, <x foo="bar"></x>
Actual results:
The display of the document tree went blank.
Expected results:
The document tree display should show the changed document.
Comment 1•6 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
I can confirm this issue is reproducible on the latest Firefox release, Firefox 69 beta 4 and on the latest Nightly 70.0a1 (on Windows 10, Ubuntu 18.04 and Mac OS X 10.14).
Status: UNCONFIRMED → NEW
status-firefox68:
--- → affected
status-firefox69:
--- → affected
status-firefox70:
--- → affected
Component: Untriaged → Inspector
Ever confirmed: true
Product: Firefox → DevTools
Version: 69 Branch → Trunk
I believe this is because we listen for mutation events to add changes to the markup view and they don't work as expected inside XML documents.
Priority: -- → P3
Summary: Document view goes blank if editing an unstyled XML document with DOM Inspector → Markup view goes blank if editing an unstyled XML document
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•