Skip to content

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

@jsedlacek

Description

@jsedlacek

There is a weird behavior of textarea in Vue 0.11 and IE10/IE11.
Textarea's value is taken out of placeholder attribute.

var vm = new Vue({
  data: function() {
    return {value: ''}
  },
  template: '<textarea v-model="value" placeholder="aaa"></textarea>'
});
vm.$mount();
vm.$appendTo(document.body);
assert.equal(vm.value, '');

This results in:

AssertionError: expected 'aaa' to equal ''

All other browsers work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions