
Why does firefox not render XML content like other browsers?
I'm learning AJAX and PHP and run into problems with some exercises. The .php file renders fine in Chrome and Edge (in collapsable tree view), but not in Firefox. See attachments. What could be causing this (mis)behavior?
Modified
Chosen solution
It looks like either Firefox is not finding your XSL style sheet or is not applying it.
Can you provide a link to your PHP page so someone could take a look?
Read this answer in context 👍 1All Replies (6)
Chosen Solution
It looks like either Firefox is not finding your XSL style sheet or is not applying it.
Can you provide a link to your PHP page so someone could take a look?
You can check the Web Console (Firefox menu button or Tools > Web Developer) for error messages.
I haven't specified a style sheet. So I assume the other browsers apply some default of theirs and Firefox doesn't.
There were no errors in the console. Always good to look first.
See also:
- view-source:chrome://global/content/xml/XMLPrettyPrint.xml
- view-source:chrome://global/content/xml/XMLPrettyPrint.xsl
If there's no style sheet, you usually see something like this:
https://duckduckgo.com/opensearch.xml
Screen shot attached for reference. Yours doesn't lay that page out as expected?