Closed Bug 2030014 Opened 7 months ago Closed 5 months ago

Should show XML tree view when XSLT is disabled

Categories

(Core :: XSLT, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 2048182

People

(Reporter: zcorpan, Unassigned)

Details

STR:

  1. Set dom.xslt.enabled to false
  2. Visit https://xslt.rip/

Expected result
Should show a message at the top saying XSLT is disabled [1], and the XML tree view.

Actual result
Shows the text inline (without formatting).

Notes
When there's an "xml-stylesheet" with type pseudo-attribute value being one of the XSLT types (e.g. text/xsl), and no "xml-stylesheet" with CSS, and the document doesn't contain any elements in one of the supported namespaces (HTML, SVG, MathML), we should show the XML tree view. (Also see https://html.spec.whatwg.org/#unstyled-xml-documents )

Relevant code in Chromium is probably https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/processing_instruction.cc;l=344-349?q=xsl&ss=chromium%2Fchromium%2Fsrc:third_party%2Fblink%2Frenderer%2Fcore%2Fdom%2F

[1] The current message in Chrome is:

This document cannot be formatted as intended. It uses XSLT, which the browser does not support. You might be able to install a browser extension that allows you to view it.

Status: NEW → RESOLVED
Closed: 5 months ago
Duplicate of bug: 2048182
Resolution: --- → DUPLICATE
No longer blocks: 1990759
You need to log in before you can comment on or make changes to this bug.