XSLT No Longer Works in Chrome: Find and Fix Affected Pages

Chrome 158 stops running XSLT for most users. How to find pages that depend on it, the temporary escape hatches, and three permanent fixes with code.

Ananya RaoAnanya RaoAuthor29 November 20264 min read 5 views

Researched and drafted with AI and reviewed by the Publisha team.

XSLT No Longer Works in Chrome: Find and Fix Affected Pages
In this article▾
  1. What exactly was removed
  2. Why Chrome did it
  3. Step 1: find out if you're affected
  4. Search your code
  5. Listen for it in production
  6. Step 2: buy time if you need it
  7. Step 3: pick a permanent fix
  8. Option A: transform at build time or on the server
  9. Option B: switch to JSON and render in JavaScript
  10. Option C: a polyfill or a JavaScript XSLT engine
  11. Test the fix in more than one browser
  12. A quick decision guide

As of Chrome 158, scheduled for the Stable channel on 17 November 2026, Chrome no longer runs XSLT for ordinary users. If your site styles an RSS feed, a sitemap or any XML document with an XSL stylesheet, or calls XSLTProcessor in JavaScript, that page may now show raw XML or a blank area in Chrome. Most sites never used XSLT and won't notice. If yours did, here's how to find out quickly, the short-term escape hatches, and the three proper fixes.

What exactly was removed

Chrome's "Removing XSLT for a more secure browser" page lists two things going away:

  • The XSLTProcessor JavaScript API, as in new XSLTProcessor().

  • The XSLT processing instruction, <?xml-stylesheet type="text/xsl" ... ?>, at the top of an XML file.

XML itself stays, and <?xml-stylesheet> with type="text/css" still works. Only the XSL transform is gone.

The timeline on the same page: console warnings from Chrome 142 (October 2025), official deprecation in Chrome 143 (December 2025), an enterprise policy from Chrome 146, an origin trial from Chrome 152, and then Chrome 158 on 17 November 2026, where "XSLT stops functioning on Stable releases, for all users other than Origin Trial and Enterprise Policy participants." Both escape hatches end on 17 August 2027.

Why Chrome did it

Security, mostly. Chrome's page says XSLT 1.0 in browsers "presents a significant and unnecessary security risk," because the underlying libxslt library is an ageing C/C++ codebase prone to memory-safety bugs. Usage is tiny: about 0.02% of page loads use XSLT, and under 0.001% use the processing instruction.

The original "Intent to Deprecate and Remove" thread on blink-dev, posted by Mason Freed in October 2025, was frank that removal "constitutes a compat risk." It also shared a useful estimate: about 75% of sites hitting the XSLT counter showed no visible breakage, and of the 25% that broke, 82% were restored by a polyfill. Mozilla and WebKit both recorded positive positions on removal, so don't expect other browsers to keep it around for you.

Step 1: find out if you're affected

Search your code

Two searches catch nearly everything:

grep -rn "xml-stylesheet" .
grep -rn "XSLTProcessor" .

Check the hits for type="text/xsl". Places worth looking: RSS or Atom feeds that render as a pretty page in the browser, XML sitemaps with a human-readable view, and older admin tools or documentation sites built on XML.

Listen for it in production

Chrome's page shows how to catch usage in real browsers with the Reporting API. A small observer that logs XSLT deprecation reports:

const observer = new ReportingObserver((reports) => {
  for (const report of reports) {
    if (report.body.id === "XSLT") {
      console.warn("XSLT used on", report.url);
    }
  }
}, { types: ["deprecation"], buffered: true });

observer.observe();

Swap console.warn for a call to your analytics or error logging and you'll get a list of real pages that still depend on it.

Step 2: buy time if you need it

  • Origin trial: sites can register for the deprecation origin trial to keep XSLT working until August 2027.

  • Enterprise policy: organisations with internal tools can keep XSLT on via policy for managed browsers, also until August 2027.

Both are bridges. Plan the real fix now, while the bridge is still there.

Step 3: pick a permanent fix

Option A: transform at build time or on the server

Usually the cleanest answer. If your XML and XSL are static, run the transform once and serve HTML. The xsltproc command-line tool, which ships with macOS and is in most Linux package managers, does it in one line:

xsltproc feed.xsl feed.xml > feed.html

Point it at your feed and the stylesheet the feed already references, and the output is the same HTML the browser used to build from that pair. Wire that into your build, or run the equivalent on the server for dynamic XML. If you're on Next.js, pre-rendering this kind of page fits the static approach described in this guide to ensureStatic in Next.js 16.4. If you transform on a Node server, keep that server patched; the November 2026 Node.js security release is the current baseline.

Option B: switch to JSON and render in JavaScript

Chrome's page suggests moving XML endpoints to JSON and building the DOM with JavaScript or a framework. This is more work but removes XML from the rendering path entirely, which is the right call if you were only using XML because a legacy system emitted it.

Option C: a polyfill or a JavaScript XSLT engine

For code that calls XSLTProcessor and can't be rewritten soon, there's a WASM-based polyfill; the blink-dev thread points to mfreed7/xslt_polyfill on GitHub, described as a single-line drop-in fix. Load it before any code that uses XSLTProcessor. For heavier XSLT, Chrome's page mentions SaxonJS, which supports XSLT 3.0.

MDN's XSLTProcessor page now carries a deprecation banner and the advice to "avoid using this feature in new projects," so treat the polyfill as a migration aid, not a new foundation.

Test the fix in more than one browser

Once you've moved a page off XSLT, check it in Chrome 158 or later, and in at least one non-Chromium browser, since Mozilla and WebKit have signalled support for removal too. For feeds, also open the feed URL in a feed reader: the XML still has to validate, and the reader shouldn't care that the browser view changed. And leave the Reporting API observer running for a few weeks after the migration. If it goes quiet, you've caught everything.

A quick decision guide

  • Pretty RSS feed or sitemap page: transform at build time, or simply let browsers show the raw feed. Feed readers never used your XSL anyway.

  • Internal tool on managed browsers: enterprise policy now, rewrite before August 2027.

  • Public app calling XSLTProcessor: polyfill this week, server-side or JSON rewrite this quarter.

XSLT had a long run. If your logs show nothing, you're done. If they show a handful of pages, an afternoon with xsltproc will probably cover them.

Ananya Rao

Written by

Ananya Rao

A Publisha editorial profile. Its stories are researched and drafted with AI and reviewed by the Publisha team.

Keep reading

More from Ananya Rao

More from Ananya Rao

More in Web Development

Have a story of your own?

Publisha is free to start. Write with AI that keeps your voice, and publish in a click.