File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ const doctype = /^<!DOCTYPE [^>]+>/i
26
26
const comment = / ^ < ! \- - /
27
27
const conditionalComment = / ^ < ! \[ /
28
28
29
- let IS_REGEX_CAPTURING_BROKEN = false
30
- 'x' . replace ( / x ( .) ? / g, function ( m , g ) {
31
- IS_REGEX_CAPTURING_BROKEN = g === ''
32
- } )
33
-
34
29
// Special Elements (can contain anything)
35
30
export const isPlainTextElement = makeMap ( 'script,style,textarea' , true )
36
31
const reCache = { }
@@ -228,12 +223,6 @@ export function parseHTML (html, options) {
228
223
const attrs = new Array ( l )
229
224
for ( let i = 0 ; i < l ; i ++ ) {
230
225
const args = match . attrs [ i ]
231
- // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778
232
- if ( IS_REGEX_CAPTURING_BROKEN && args [ 0 ] . indexOf ( '""' ) === - 1 ) {
233
- if ( args [ 3 ] === '' ) { delete args [ 3 ] }
234
- if ( args [ 4 ] === '' ) { delete args [ 4 ] }
235
- if ( args [ 5 ] === '' ) { delete args [ 5 ] }
236
- }
237
226
const value = args [ 3 ] || args [ 4 ] || args [ 5 ] || ''
238
227
const shouldDecodeNewlines = tagName === 'a' && args [ 1 ] === 'href'
239
228
? options . shouldDecodeNewlinesForHref
You can’t perform that action at this time.
0 commit comments