> When a property reflects an attribute, the attribute is the source of the data. When you set the property, it's updating the attribute. When you read from the property, it's reading the attribute.
value is different. From https://jakearchibald.com/2024/attributes-vs-properties/#val...
> the value property does not reflect the value attribute. Instead, the defaultValue property reflects the value attribute.
Follow the link for the full explanation.
> When a property reflects an attribute, the attribute is the source of the data. When you set the property, it's updating the attribute. When you read from the property, it's reading the attribute.
value is different. From https://jakearchibald.com/2024/attributes-vs-properties/#val...
> the value property does not reflect the value attribute. Instead, the defaultValue property reflects the value attribute.
Follow the link for the full explanation.