Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95243506
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, Dec 14, 01:18
Size
284 B
Mime Type
text/x-Algol68
Expires
Mon, Dec 16, 01:18 (2 d)
Engine
blob
Format
Raw Data
Handle
22916278
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