Stay organized with collections
Save and categorize content based on your preferences.
blockly > utils > dom > NodeType
utils.dom.NodeType enum
Node type constants. https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
Signature:
export declare enum NodeType
Enumeration Members
Member |
Value |
Description |
COMMENT_NODE |
8 |
|
ELEMENT_NODE |
1 |
|
TEXT_NODE |
3 |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `Blockly.utils.dom.NodeType` enum defines constants representing different types of nodes in the Document Object Model (DOM)."],["It includes `ELEMENT_NODE`, `TEXT_NODE`, and `COMMENT_NODE`, corresponding to their respective numerical values as defined in the DOM specification."],["These constants can be used to identify the type of a given node when working with the DOM within Blockly applications."]]],["The provided content defines the `NodeType` enum within the `blockly.utils.dom` namespace. This enum contains constants representing different node types, referencing the Mozilla documentation for node types. The `NodeType` enum includes three members: `COMMENT_NODE` with a value of 8, `ELEMENT_NODE` with a value of 1, and `TEXT_NODE` with a value of 3. These represent comment, element, and text node types, respectively.\n"]]