mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
fix html attribute escape in Safari
This commit is contained in:
parent
316ba12887
commit
64b3b318a0
@ -8,11 +8,6 @@
|
||||
import { decodeHTML } from 'entities'
|
||||
import { makeMap } from '../../shared/util'
|
||||
|
||||
// PhantomJS encodes attribute values when retriving outerHTML.
|
||||
const inPhantomJS =
|
||||
typeof navigator !== 'undefined' &&
|
||||
navigator.userAgent.indexOf('PhantomJS') > -1
|
||||
|
||||
// Regular Expressions for parsing tags and attributes
|
||||
const singleAttrIdentifier = /([^\s"'<>\/=]+)/
|
||||
const singleAttrAssign = /=/
|
||||
@ -242,7 +237,7 @@ export function parseHTML (html, handler) {
|
||||
var value = args[3] || args[4] || (args[5] && fillAttrs(args[5]) ? args[1] : '')
|
||||
return {
|
||||
name: args[1],
|
||||
value: inPhantomJS ? decodeHTML(value) : value
|
||||
value: decodeHTML(value)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user