User Tools

Site Tools


jet:working_with_nodes_and_elements

nodes et éléments

  1. elements
  2. element attributes

node types

12 types :

  1. Node.ELEMENT_NODE == 1 → node élément
  2. Node.ATTRIBUTE_NODE == 2 → node attribut
  3. Node.TEXT_NODE == 3 → node texte (contenu)
  4. Node.CDATA_SECTION_NODE == 4
  5. Node.ENTITY_REFERENCE_NODE == 5
  6. Node.ENTITY_NODE == 6
  7. Node.PROCESSING_INSTRUCTION_NODE == 7
  8. Node.COMMENT_NODE == 8
  9. Node.DOCUMENT_NODE == 9
  10. Node.DOCUMENT_TYPE_NODE == 10
  11. Node.DOCUMENT_FRAGMENT_NODE == 11
  12. Node.NOTATION_NODE == 12

Les == correspondent aux valeurs renvoyés par la propriété nodeType

jet/working_with_nodes_and_elements.txt · Last modified: 2016/01/20 17:31 by leo