1 | ;
|
2 |
|
3 | /**
|
4 | * Copyright (c) Facebook, Inc. and its affiliates.
|
5 | *
|
6 | * This source code is licensed under the MIT license found in the
|
7 | * LICENSE file in the root directory of this source tree.
|
8 | *
|
9 | * @format
|
10 | *
|
11 | * @emails oncall+draft_js
|
12 | */
|
13 | var isElement = require("./isElement");
|
14 |
|
15 | function isHTMLImageElement(node) {
|
16 | if (!node || !node.ownerDocument) {
|
17 | return false;
|
18 | }
|
19 |
|
20 | return isElement(node) && node.nodeName === 'IMG';
|
21 | }
|
22 |
|
23 | module.exports = isHTMLImageElement; |
\ | No newline at end of file |