Chrome XSLT removal

Chrome XSLT Removal: Why Sitemaps Show Raw XML & How to Fix It (2026)

The Chrome XSLT removal is now live for most people. Since Chrome 158 reached the Stable channel on November 17, 2026, the browser no longer runs XSLT stylesheets. As a result, many WordPress sitemaps that used to look like a tidy table now show a wall of raw XML.

Don’t panic, though. Your sitemap is not broken, and search engines can still read it. In this guide, we explain what changed, who is affected, and how to clean things up on a WordPress site.

What Is the Chrome XSLT Removal?

XSLT (Extensible Stylesheet Language Transformations) is a language that turns XML into another format, usually HTML. Browsers have shipped an XSLT 1.0 engine since the early 2000s. However, no browser ever moved on to XSLT 2.0 or 3.0.

In October 2025, the Chrome team announced a plan to deprecate and remove XSLT. Their official migration guide names two features that are going away:

  • The XSLTProcessor JavaScript class, for example new XSLTProcessor().
  • The XSLT processing instruction, the <?xml-stylesheet type="text/xsl" ... ?> line at the top of an XML file.

XML itself stays. In addition, the xml-stylesheet instruction still works when it points to a CSS file instead of an XSL file.

Why Chrome is removing XSLT

The main reason is security. Chromium processed XSLT with libxslt, an old and complex C library. According to Google, it has produced memory safety bugs that attackers could use.

Usage is also tiny. Google says only about 0.02% of page loads use XSLT, and fewer than 0.001% use the processing instruction. Firefox and WebKit have also backed the removal, so this is not a Chrome-only change.

Chrome XSLT Removal Timeline

The change rolled out in stages over about a year. Here are the key dates from Google’s guide:

  • Chrome 142 (October 28, 2025): early warning messages appear in the console.
  • Chrome 143 (December 2, 2025): official deprecation, with warnings in DevTools and Lighthouse.
  • Chrome 146 (March 10, 2026): an Enterprise Policy lets companies test the change or keep XSLT for longer.
  • Chrome 152 (August 25, 2026): an Origin Trial lets sites keep XSLT past the removal date.
  • Chrome 158 (November 17, 2026): XSLT stops working on Stable, except for Origin Trial and Enterprise Policy users.
  • Chrome 176 (August 17, 2027): the Origin Trial and the policy end, and XSLT is off for everyone.

Chrome 158 shipped a few other developer features too. For example, we covered its install button support in our Web Install API guide. If you want to see what comes next, read our Chrome 159 beta overview.

Why WordPress Sitemaps Show Raw XML After the Chrome XSLT Removal

Since WordPress 5.5, core sitemaps have linked to an XSL stylesheet. When you opened /wp-sitemap.xml in a browser, Chrome ran that stylesheet and drew a clickable table of URLs.

Many SEO plugins did the same thing. Yoast SEO, Rank Math and All in One SEO have all added an XSL stylesheet to their sitemap index files at some point.

After the Chrome XSLT removal, Chrome simply skips the stylesheet. Consequently, you see the plain XML markup, often with a warning message. The file underneath has not changed at all.

Does the Chrome XSLT removal hurt your SEO?

No. Search engines never used the stylesheet. Googlebot and other crawlers read the raw XML directly, so crawling and indexing carry on as before. Search Engine Journal reached the same conclusion in its coverage of the change.

In other words, the change is purely visual. It only affects people who open a sitemap in Chrome to look at it.

How to Check Your Sitemap

First, find your sitemap URL so you can see how the Chrome XSLT removal affects it. WordPress core uses /wp-sitemap.xml. Yoast SEO, Rank Math and AIOSEO usually use /sitemap_index.xml.

Next, look at the first few lines of the file. You can view the page source in your browser, or run a quick command in your terminal:

curl -s https://example.com/wp-sitemap.xml | head -c 300

If you see a line like the one below, the file still points to an XSLT stylesheet:

<?xml-stylesheet type="text/xsl" href="https://example.com/wp-sitemap.xsl" ?>

Finally, open Google Search Console and check the Sitemaps report. If the status says “Success”, search engines are reading the file without any trouble.

How to Fix Raw XML Sitemaps After the Chrome XSLT Removal

You have a few options. For most sites, the best choice is to update and wait. Still, there are quick fixes if clients or team members keep reporting a “broken” sitemap.

Option 1: Update WordPress and your SEO plugin

WordPress 7.2 is scheduled for December 8, 2026, according to the official 7.2 release page. Reports on the 7.2 development code say it removes the core sitemap stylesheet. The matching discussion lives in Trac ticket #65593. Check the final 7.2 release notes to confirm once it ships.

Yoast has already acted. The Yoast SEO 28.9 changelog (November 18, 2026) says it “removes the stylesheet from the XML sitemaps as browsers drop XSLT support.” So, if you run Yoast, updating to 28.9 or later removes the reference.

For Rank Math, AIOSEO and other plugins, check each changelog. Plugin versions move quickly, so don’t rely on old snapshots.

Option 2: Remove the core stylesheet with a small plugin

If you use the core sitemap and want to stop the Chrome warning today, add a must-use plugin. Create a file at wp-content/mu-plugins/disable-sitemap-xsl.php with this code:

<?php
/**
 * Plugin Name: Disable Sitemap XSL
 * Description: Stops core sitemaps from linking to the XSLT stylesheet.
 */

// Individual sitemaps.
add_filter( 'wp_sitemaps_stylesheet_url', '__return_false' );

// The sitemap index.
add_filter( 'wp_sitemaps_stylesheet_index_url', '__return_false' );

Both filters have existed since WordPress 5.5. After this change, the sitemap still shows as plain XML, but without the stylesheet link. Once you move to 7.2, review the file again, because the 7.2 changes may make these filters unnecessary.

Option 3: Offer a human-friendly HTML sitemap

Some site owners like a readable list of pages for visitors. In that case, create a normal WordPress page that lists your posts and pages. Many SEO plugins and blocks can generate one for you.

Meanwhile, keep the XML sitemap for search engines only. That way, each file does one job well.

Beyond Sitemaps: Other Code the Chrome XSLT Removal Affects

Sitemaps are the most visible effect of the Chrome XSLT removal for WordPress users. Nevertheless, developers should also check these areas:

  • Styled RSS and Atom feeds. Some feeds use XSLT to look like a web page. They now show raw XML in Chrome.
  • Internal dashboards and reports. Older tools sometimes send XML plus an XSL file to the browser.
  • JavaScript that calls XSLTProcessor. These calls now fail in Chrome 158 and later.

Google suggests a few migration paths. Firstly, you can move the transform to the server and send ready-made HTML. Secondly, you can switch the data to JSON and render it with JavaScript. Thirdly, you can load a polyfill while you migrate.

Run XSLT on the server instead

PHP still has an XSL extension, so a WordPress or PHP app can do the transform on the server. Here is a short example:

<?php
// Transform XML on the server and send plain HTML to the browser.
$xml = new DOMDocument();
$xml->load( __DIR__ . '/data.xml' );

$xsl = new DOMDocument();
$xsl->load( __DIR__ . '/style.xsl' );

$processor = new XSLTProcessor();
$processor->importStylesheet( $xsl );

header( 'Content-Type: text/html; charset=utf-8' );
echo $processor->transformToXML( $xml );

Make sure the xsl PHP extension is enabled on your host before you rely on this.

Use the polyfill as a stopgap

Google points to a WebAssembly-based polyfill on GitHub that replaces XSLTProcessor. It also offers a helper for XML files that use the processing instruction. Treat it as a short-term bridge, not a permanent fix. You can find the link in the Chrome migration guide.

Style XML with CSS

If you only need basic styling, CSS still works on XML. Point the processing instruction at a CSS file instead:

<?xml-stylesheet type="text/css" href="/feed-style.css" ?>

However, CSS cannot turn XML elements into working links. So for a clickable list, server-side HTML is the better route.

FAQ: Chrome XSLT Removal

Is my WordPress sitemap broken?

No. It only looks different in Chrome. Search engines read the XML directly and are not affected.

Can I turn XSLT back on in Chrome?

Only for a limited time. Companies can use the Enterprise Policy, and site owners can join the Origin Trial. Both end with Chrome 176 in August 2027.

Do Firefox and Safari still support XSLT?

For now, yes. However, both the Gecko and WebKit teams have said they support removing it, so plan for it to disappear everywhere.

Do I need to resubmit my sitemap to Google?

No. The sitemap URL and its content stay the same, so there is nothing to resubmit.

Conclusion

The Chrome XSLT removal is a security clean-up, and it mostly affects how XML looks to humans. For WordPress sites, the visible result is a raw XML sitemap in Chrome, while SEO stays safe.

To sum up: update your SEO plugin, plan for WordPress 7.2, and add the small filter plugin if you need a quick fix today. Then check any custom feeds or tools that still use XSLT. For more on the next core release, see our WordPress 7.2 beta guide.

Sources

Need Help With Your Website or Web App?

Swrice builds and customises WordPress sites, plugins and web apps. Whether you need an upgrade, a custom feature or a fix, our team can handle it for you.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *