Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121608068
isInput.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 10:14
Size
284 B
Mime Type
text/x-Algol68
Expires
Mon, Jul 14, 10:14 (2 d)
Engine
blob
Format
Raw Data
Handle
27357386
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
isInput.js
View Options
var
regExpInputs
=
/^(?:input|select|textarea|button)$/i
;
/**
* Checks if a given element is an input (input, select, textarea or button).
*
* @param node the element to check
*/
export
default
function
isInput
(
node
)
{
return
node
?
regExpInputs
.
test
(
node
.
nodeName
)
:
false
;
}
Event Timeline
Log In to Comment