Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Envjsrb #21

Closed
wants to merge 3 commits into from
Closed

Envjsrb #21

wants to merge 3 commits into from

Conversation

chrisroos
Copy link

The value property of a textarea should return the content of that textarea (as per http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-24874179). You can currently get the content of the textarea from the innerText property but that's no good for jquery. The jquery val(), and in turn serialize(), function expects to be able to use the value property, as per the DOM specification.

These commits add tests and a textarea specific value property that's currently just an alias for innerText.

… textarea (as per http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-24874179).

Not supporting the value property correctly breaks the jquery val() function (as that will ask a node for its value) which in turn breaks the jquery serialize() function.
@smparkes
Copy link
Owner

Commited. Thanks!

@chrisroos
Copy link
Author

That's great, cheers Steven. Is there any chance you could release a new version of the gem? Or, could you include the compiled static.js and a gemspec in the repository so that forks of the project can use gembundler to point to custom versions of the library? Cheers, Chris.

@smparkes
Copy link
Owner

Yeah, today or tomorrow I expect.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants