Skip to content

Commit 69f946b

Browse files
dvdcklyyx990803
authored andcommitted
Fix XHTML incompatibility (fix #5852) (#5853)
1 parent f3a1522 commit 69f946b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/platforms/web/util/compat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { inBrowser } from 'core/util/index'
55
// check whether current browser encodes a char inside attribute values
66
function shouldDecode (content: string, encoded: string): boolean {
77
const div = document.createElement('div')
8-
div.innerHTML = `<div a="${content}">`
8+
div.innerHTML = `<div a="${content}"/>`
99
return div.innerHTML.indexOf(encoded) > 0
1010
}
1111

0 commit comments

Comments
 (0)