Skip to content

Commit ab277ad

Browse files
committed
work around IE textarea placeholder innerHTML/outerHTML bug (fix #4098)
1 parent 3c78553 commit ab277ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/compiler/parser/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ export function parse (
211211
}
212212
return
213213
}
214+
// IE textarea placeholder bug
215+
/* istanbul ignore if */
216+
if (options.isIE &&
217+
currentParent.tag === 'textarea' &&
218+
currentParent.attrsMap.placeholder === text) {
219+
return
220+
}
214221
text = inPre || text.trim()
215222
? decodeHTMLCached(text)
216223
// only preserve whitespace if its not right after a starting tag

0 commit comments

Comments
 (0)