We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 097889f commit 4537e01Copy full SHA for 4537e01
src/platforms/web/util/index.js
@@ -13,9 +13,11 @@ export const isAndroid = UA && UA.indexOf('android') > 0
13
14
// some browsers, e.g. PhantomJS, encodes attribute values for innerHTML
15
// this causes problems with the in-browser parser.
16
-const div = document.createElement('div')
17
-div.innerHTML = '<div a=">">'
18
-export const shouldDecodeAttr = div.innerHTML.indexOf('>') > 0
+export const shouldDecodeAttr = inBrowser ? (function () {
+ const div = document.createElement('div')
+ div.innerHTML = '<div a=">">'
19
+ return div.innerHTML.indexOf('>') > 0
20
+})() : false
21
22
/**
23
* Query an element selector if it's not an element already.
0 commit comments