Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6061123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:54:10+00:00 2026-05-23T08:54:10+00:00

In the w3school site there are two tutorials: HTML DOM XML DOM I want

  • 0

In the w3school site there are two tutorials:

HTML DOM

XML DOM

I want to know the releationship of them, since I think the HTML DOM is one kind of XML DOM.

So the methods/properties in the XML DOM can be used in HTML DOM, and the HTML DOM may own some special methods.

However, when I try to use this:

HTML:

<span id="con">xxx</span>

var a=document.createElement("a");
document.getElementById("con").appendChild(a);

It does not work in IE.

So I wonder what is the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:54:11+00:00Added an answer on May 23, 2026 at 8:54 am

    DOM refers to a tree you make out of XML. The tree is made up of nodes. For example:

    <a x="bb">
       <b> text </b>
    </a>
    

    turns into a tree with three nodes: one for a and one for b and one for the text. The nodes contains the attributes as fields. So the a node will have a field: x="bb".

    HTML is (practically) XML so you can build a DOM tree out of it. HTML is just XML with predefined elements. I.e., you can’t use whatever names you want for your elements (you can’t use <children>, <ball>,…) you can use the predefined names (a, span, div, …).

    I say “practically” because HTML is usually broken XML (for example using <br> is wrong XML. you should use <br /> instead). The browsers have smart parsers that know how to overcome this broken XML and make a usuable tree out of the HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a site anywhere that documents all standard JavaScript DOM methods, events and
I have been following javascript tutorial from www.w3school.com and while reading one of the
I'm new at XSLT, and I would like to know if there is a
This is for the usual PHP/SQL/html/CSS type of webdev. Site might be visited by
There is a jQuery quiz posted on the W3Schools site here... http://www.w3schools.com/quiztest/quiztest.asp?qtest=jQuery Question #16
Best reference sites for HTML and JavaScript programming: W3C WebEd Wiki (this site has
I am trying to run the sample code on W3School http://www.w3schools.com/xml/xml_to_html.asp I copied the
I know there are a number of Try It Yourself JavaScript editors, such as
I read the following in HTML 5 tag reference at W3School HTML5 improves interoperability
ajax tutorial on w3school at http://www.w3schools.com/ajax/ajax_database.asp In this function (function GetXmlHttpObject()), it creates a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.