We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a1522 commit 69f946bCopy full SHA for 69f946b
src/platforms/web/util/compat.js
@@ -5,7 +5,7 @@ import { inBrowser } from 'core/util/index'
5
// check whether current browser encodes a char inside attribute values
6
function shouldDecode (content: string, encoded: string): boolean {
7
const div = document.createElement('div')
8
- div.innerHTML = `<div a="${content}">`
+ div.innerHTML = `<div a="${content}"/>`
9
return div.innerHTML.indexOf(encoded) > 0
10
}
11
0 commit comments