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)

defect

Tracking

(firefox68 affected, firefox69 affected, firefox70 affected)

Tracking Status
firefox68 --- affected
firefox69 --- affected
firefox70 --- affected

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:

  1. 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>

  1. View the file in Firefox. It will show a message about the content being unstyled and say it is showing the tree.
  2. Open DOM Inspector.
  3. 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.

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
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.