Static GitHub Issues

[774] DOMException error triggered by head script related to vue-meta

prev: "New version available - Reload" feature for SPA
next: Custom code-splitting for page bundles?

In nuxt.config.js I have the following in the head: options:

script: [
    {innerHTML: "(function(h){h.className=h.className.replace(/| js /,' js ')})(document.documentElement)"},
],
__dangerouslyDisableSanitizers: ["script"],

This produces the desired result of making sure the class "js" is on <html> on every page. However, when I navigate to another page I get the following error message:

vue-meta.js:787 Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': '0' is not a valid attribute name.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c659">#c659</a>)</em></sub></div>