Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

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?

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)

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?