Improve pretty printing for when XSLT is toggled off.
Categories
(Core :: XSLT, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: farre, Assigned: farre)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
Attachments
(1 external file)
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 1•5 months ago
|
||
Comment 3•5 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Comment 5•3 months ago
|
||
unless I'm missing something, this doesn't seem to work (ignore the linked test contents except the prettyPrint view)
STR (I am on nightly)
- load https://thorin-ii.github.io/testing/applangprettyprint.html
- note large visual displaying
xml-nostylesheet - in english this is "This XML file does not appear to have any style information associated with it. The document tree is shown below."
- note large visual displaying
- toggle
dom.xslt.enabledto false- I restarted the browser for good measure
- load test
- note large visual still displaying
xml-nostylesheet - expected:
xml-nostylesheet-xslt-disabled
- note large visual still displaying
pinging Andreas as author
| Assignee | ||
Comment 6•3 months ago
|
||
I guess it depends. That page loads applangprettyprint.xml in iframes, but applangprettyprint.xml doesn't contain any XSLT transforms.
xml-nostylesheet-xslt-disabled is deliberately scoped to documents that actually reference an XSLT stylesheet: the substitution only happens when we see an <?xml-stylesheet?> PI (or a Link header) whose type is text/xsl, application/xslt+xml, text/xml or application/xml while dom.xslt.enabled is false. Showing "It uses XSLT, which the browser does not support" on a document that doesn't use XSLT wouldn't be correct.
Does that make sense?
Comment 7•3 months ago
•
|
||
IANAE on XSLT :) Sounds good to me. It did confuse me when it's xml-nostylesheet and xml-nostylesheet-xslt-disabled - the whole point is there is nostylesheet, so the naming convention is a little misleading/confusing can be ambiguous, but I can see it both ways
Anyway, the less possible errors, the easier for me to calculate deterministic results - so tis all good - thanks
Description
•