Vue-meta: when add option like '__dangerouslyDisableSanitizers' in Nuxt.js , something is wrong like 'Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': '0' is not a valid attribute name.'

Created on 30 Mar 2017  路  1Comment  路  Source: nuxt/vue-meta

vue-meta in nuxt

script: [ {innerHTML: "(function(h){h.className=h.className.replace('no-js','js')})(document.documentElement)"} ], __dangerouslyDisableSanitizers: ["script"], // because of the inner quotes

From one route to another route, something is wrong like 'Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': '0' is not a valid attribute name.'

line 786:

newElement.setAttribute(attr, value);

so we fix it like this:

image

Most helpful comment

Fixed with the last release.

>All comments

Fixed with the last release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farhodhojiev picture farhodhojiev  路  4Comments

dystopiandev picture dystopiandev  路  6Comments

terazus picture terazus  路  8Comments

Emilie-thp picture Emilie-thp  路  8Comments

diff-dennis picture diff-dennis  路  8Comments