Spec-Zone.ru › Dart 2

dart:html

nodeType property

int nodeType

The type of node.

This value is one of:

  • ATTRIBUTE_NODE if this node is an attribute.
  • CDATA_SECTION_NODE if this node is a CDataSection.
  • COMMENT_NODE if this node is a Comment.
  • DOCUMENT_FRAGMENT_NODE if this node is a DocumentFragment.
  • DOCUMENT_NODE if this node is a Document.
  • DOCUMENT_TYPE_NODE if this node is a _DocumentType node.
  • ELEMENT_NODE if this node is an Element.
  • ENTITY_NODE if this node is an entity.
  • ENTITY_REFERENCE_NODE if this node is an entity reference.
  • NOTATION_NODE if this node is a notation.
  • PROCESSING_INSTRUCTION_NODE if this node is a ProcessingInstruction.
  • TEXT_NODE if this node is a Text node.

Other resources

  • Node.nodeType from MDN.

Implementation

int get nodeType native;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/Node/nodeType.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API