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

No modernnizr.textarea #76

Closed
warpr opened this issue Apr 28, 2010 · 8 comments
Closed

No modernnizr.textarea #76

warpr opened this issue Apr 28, 2010 · 8 comments

Comments

@warpr
Copy link

warpr commented Apr 28, 2010

I believe the textarea element in HTML5 supports placeholder, perhaps it supports some of the other input attributes too. Could you please add support for checking placeholder support on textareas?

@miketaylr
Copy link

Good point. Here's a link to the textarea element in the spec for reference: http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element

@miketaylr
Copy link

A made a test page the other day that could be easily turned into Modernizr.textarea:

http://miketaylr.com/code/html5-textarea-attribute-support.html

@paulirish
Copy link
Member

mike, do you know if support for these attributes is inconsistent between input and textarea in any browsers?

if support is identical, i'm not inclined to add this feature, but rather just document that fact.

@miketaylr
Copy link

I've yet to see a browser have input.placeholder and not textarea.placeholder. +1 on documenting that.

@mathiasbynens
Copy link
Contributor

FWIW, I just got a bug report stating that Safari 4 supports @placeholder for inputs but not for textareas.

After investigating this using Multi Safari, I can verify that Safari 4.05 doesn’t support @placeholder for <textarea> elements: http://i.imgur.com/91zvs.png

Note that I did not only test by feature detection, I also tested an HTML document containing a text input (works), a password input (works), and a textarea (fails) with placeholder attributes.

So yeah, Modernizr should probably add a separate test.

@miketaylr
Copy link

Nice catch, Mathias.

@paulirish
Copy link
Member

Boooo. :(

@tombigel
Copy link

tombigel commented Mar 1, 2011

the same inconsistency is present in opera 11 - Placeholder works on input but not on textareas

Version 11.01
Build 1190
Platform Linux

patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
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

No branches or pull requests

5 participants