Should show XML tree view when XSLT is disabled
Categories
(Core :: XSLT, defect)
Tracking
()
People
(Reporter: zcorpan, Unassigned)
Details
STR:
- Set
dom.xslt.enabledto false - 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.
Updated•5 months ago
|
Updated•5 months ago
|
Description
•