mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
19 lines
513 B
JavaScript
19 lines
513 B
JavaScript
/*!
|
|
{
|
|
"name": "textarea maxlength",
|
|
"property": "textareamaxlength",
|
|
"aliases": ["textarea-maxlength"],
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea"
|
|
}],
|
|
"polyfills": ["maxlength"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detect support for the maxlength attribute of a textarea element
|
|
*/
|
|
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
|
Modernizr.addTest('textareamaxlength', !!('maxLength' in createElement('textarea')));
|
|
});
|