Results 1 to 2 of 2

Thread: [RESOLVED] DOM Document work with <br />?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [RESOLVED] DOM Document work with <br />?

    I have used DOM Documents with xml like <a>dasdasd</a> etc.. but does it work with a tag like <br />? A single tag with no content? Could I access that <br /> tag like I would any other tag?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: DOM Document work with <br />?

    Yes, it works.
    Don't think of them as tags.

    This:
    Code:
    <a>dasdasd</a>
    is two nodes: an element, and a text node.

    This:
    Code:
    <br />
    is one node.

Posting Permissions

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



Click Here to Expand Forum to Full Width