Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

21 rader
500 B

  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. * @emails oncall+draft_js
  10. */
  11. const isElement = require("./isElement");
  12. function isHTMLAnchorElement(node: ?Node): boolean {
  13. if (!node || !node.ownerDocument) {
  14. return false;
  15. }
  16. return isElement(node) && node.nodeName === 'A';
  17. }
  18. module.exports = isHTMLAnchorElement;