SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: What are nodes?

  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    634
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    What are nodes?

    Good morning all.
    Don't know what nodes are. A very quick google search indicates they are a dom that can be manipulated w/js.

    is there a great link or tutorial on nodes you folks really like and can point me to?
    thx
    D

  2. #2
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,737
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    This question would be more appropriate for the javascript forum than CSS. But a quick answer is a node is an 'object unit' in the DOM. A node can be an element ( both block and inline), such as IMG, SPAN, P, LI, etc. It can( but DOESNT have to be) be a child or a parent or another node. and it can also be just the actual text content inside a tag.

    hope that helps

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,607
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    The following node types exist:

    Element eg. <div> <p>
    Attr
    Text ie the text in between the other nodes
    CDATASection ie the content of: <![CDATA[ ]]>
    EntityReference
    Entity
    ProcessingInstruction
    Comment ie the content of <!-- -->
    Document
    DocumentType
    DocumentFragment ie. a placeholder for nodes not yet attached to the document
    Notation
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    634
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thank you all. it helped. will look up more info in a javascript search.
    I thought it was css.
    D


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •