You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{-| Defines a default value which will be displayed in a `button`, `option`,`input`, `li`, `meter`, `progress`, or `param`.-}value:String->Attributemsgvalue =
stringProperty "value"
It says "Defines a default value for input", but is incorrect.
The MDN page about the input tag does indeed say the following, but this is the valueattribute, not the valueproperty.
value: The initial value of the control
On the other hand, the Attributes.value implementation seems to set the valueproperty. The MDN page about HTMLInputElement explains that the value property is about the "current value".
The fundamental problem is that the meaning of "value" in each HTML element is inherently different, but they are all handled by one function at the same time. It is excessive commonization.
The text was updated successfully, but these errors were encountered:
The documentation for
Attributes.value
says:It says "Defines a default value for
input
", but is incorrect.The MDN page about the input tag does indeed say the following, but this is the
value
attribute, not thevalue
property.On the other hand, the
Attributes.value
implementation seems to set thevalue
property. The MDN page aboutHTMLInputElement
explains that thevalue
property is about the "current value".cf., https://github.com/elm/html/blob/master/properties-vs-attributes.md
The fundamental problem is that the meaning of "value" in each HTML element is inherently different, but they are all handled by one function at the same time. It is excessive commonization.
The text was updated successfully, but these errors were encountered: