Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Html.Attributes.value docs should mention textarea #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iancanderson
Copy link

I was mislead by the docs for the Html.Attributes.value function, since it didn't mention that it worked with textarea. I was instead trying to bind the contents of the textarea to the underlying model by setting the value of an inner text node.

Thanks for elm! It's been really great so far!

I was mislead by the docs for the `Html.Attributes.value` function, since it didn't mention that it worked with `textarea`. I was instead trying to bind the contents of the `textarea` to the underlying model by setting the value of an inner text node.

Thanks for elm! It's been really great so far!
@evancz
Copy link
Owner

evancz commented Feb 12, 2016

Thanks :)

I am trying to find some docs that say all the things the .value property works on. I found this, but it does not list all DOM nodes that have a value field. Can you try to find some documentation for this case? And ideally find a list that says "tags A, B, C, etc. all have a value property that is a string"?

@iancanderson
Copy link
Author

Sorry, I couldn't find a canonical list of DOM elements with the .value property in a single place.

However, a mozilla page describes the property for each of the relevant HTMLElement subclasses, if that helps:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement
https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement
https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement (though its a double value)
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement

I also noticed that the meter element didn't seem to have value defined: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants