Skip to content

Should not try to read optional props from a document fragment #1139

Closed
@cheapsteak

Description

@cheapsteak

fiddle: http://jsfiddle.net/o65b85e1/1/

var Foo = Vue.extend({
    props: {
        optionalProp: {
            type: Number,
            required: false
        }
    }
})

new Foo({
    el: document.createDocumentFragment()
})

results in:

Uncaught TypeError: el.getAttribute is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions