Skip to content

"open" seems to be a reserved prop name? #10381

Closed
@roed

Description

@roed

Version

2.6.10

Reproduction link

https://jsfiddle.net/qagby1e4/

Steps to reproduce

Somehow if I use the attribute "open" on a html tag, vue fills the attribute with the value "open". See the attached jfiddle, and inspect the span containing the attribute. If I put the tag outside the vue app, everything is fine. Also, it doesn't matter what the content of the attribute is.

What is expected?

Vue doesn't mutate the attribute "open" on html tags inside the vue app.

What is actually happening?

Vue mutates the "open" attribute with the value "open".


It doesn't seem to be a reserved keyword, although this file https://github.com/vuejs/vue/blob/dev/src/platforms/web/util/attrs.js does specify it as a boolean attribute. In our case, a mathjax html structure, the open attribute can contain string values.

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