Skip to content

HTMLProgressElement value attribute doesn't removed after being fed with false, null or undefined #7552

@zendive

Description

@zendive

Version

2.4.4, 2.5.13

Reproduction link

https://jsfiddle.net/xt3uf0g5/1/

Steps to reproduce

As per documentation: https://vuejs.org/v2/guide/syntax.html#Attributes
null, undefined, false should remove attribute

What is expected?

Value attribute removed

What is actually happening?

Specific to HTMLProgressElement - the attribute is not removed.

By giving false - exception (Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.)

By giving null, undefined - value="0"


HTMLProgressElement without value attribute changes visual to represent "indeterminate" state (link: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress)

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