Skip to content

Dynamic input field type renders invalid code in IE11 #8379

Open
@nirazul

Description

@nirazul

Version

2.5.17-beta.0

Reproduction link

https://github.com/nirazul/vue-loader-bug-repro

Steps to reproduce

  1. npm install
  2. npm run build
  3. npm run watch
  4. Open ./public/index.html
  5. Inspect main.bundle.js in dev tools
  6. On line 9044 you will find a duplicated key value

What is expected?

A valid output from vue-template-compiler without duplicated value props, or at least a warning that the usage of dynamic input field types is prohibited in certain cases.

What is actually happening?

In IE11 a blank page is rendered


I'm using a centralized component for both radio and checkbox input fields as the markup is 90% the same.
As we switched from webpack 3 to webpack 4, we had to also upgrade the vue-loader version from 12 to 13 or 14, which introduced this bug.
Prior to version 13, vue-template-renderer was not enforcing strict mode on all of its rendered templates. This is now the case, introducing this critical bug.

References:
https://vuejs.org/v2/guide/forms.html#Radio-1
#7048
#6917

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions