Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why does firefox not render XML content like other browsers?

more options

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?

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?
Attached screenshots

Modified by jondalar

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

All Replies (6)

more options

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?

more options

You can check the Web Console (Firefox menu button or Tools > Web Developer) for error messages.

more options

I haven't specified a style sheet. So I assume the other browsers apply some default of theirs and Firefox doesn't.

more options

There were no errors in the console. Always good to look first.

more options

See also:

  • view-source:chrome://global/content/xml/XMLPrettyPrint.xml
  • view-source:chrome://global/content/xml/XMLPrettyPrint.xsl
more options

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?