Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea placeholder is set into textarea value (IE11) #4098

Closed
KhristenkoYura opened this issue Nov 3, 2016 · 4 comments
Closed

textarea placeholder is set into textarea value (IE11) #4098

KhristenkoYura opened this issue Nov 3, 2016 · 4 comments

Comments

@KhristenkoYura
Copy link

Vue.js version

2.0.3

Reproduction Link

https://jsfiddle.net/wxw3aa86/1/

@defcc defcc added the 2.0 label Nov 4, 2016
@LinusBorg
Copy link
Member

LinusBorg commented Nov 7, 2016

It seems this is the result of a bug in IE11:

https://connect.microsoft.com/IE/feedback/details/811408

When reading innerHTML (which Vue does when parsing an in-DOM template), IE11 returns the placeholder string if the textarea is empty, instead of an empty string/null.

We'll have to see if there is a way to work around this bug.

@gebilaoxiong
Copy link
Member

If this is a BUG

web-runtime-with-compiler.js#L67

Then here can not directly use outerHTML, is it?

@LinusBorg
Copy link
Member

  1. The IE bug happens with both innerHTML and outerHTML
  2. We use outerHTML to get the in-DOM template, this is not really a functionality we can replace.

@gebilaoxiong
Copy link
Member

@LinusBorg I know...I need to find the core members confirm, and then fix it....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants