Sha256: acda2272bc12e9dcf10c92279b1660d4ea71b27452eb027f27e34c0baba3b5b9
Contents?: true
Size: 622 Bytes
Versions: 26
Compression:
Stored size: 622 Bytes
Contents
'use strict'; var isClickableInput = require('../click/isClickableInput.js'); var isEditable = require('../edit/isEditable.js'); /** * Determine if the element has its own selection implementation * and does not interact with the Document Selection API. */ function hasOwnSelection(node) { return isElement(node) && isEditable.isEditableInputOrTextArea(node); } function hasNoSelection(node) { return isElement(node) && isClickableInput.isClickableInput(node); } function isElement(node) { return node.nodeType === 1; } exports.hasNoSelection = hasNoSelection; exports.hasOwnSelection = hasOwnSelection;
Version data entries
26 entries across 26 versions & 1 rubygems