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 6352367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:11:33+00:00 2026-05-24T22:11:33+00:00

I came across this phrase implementing a DOM and want to ask what does

  • 0

I came across this phrase “implementing a DOM” and want to ask what does that mean exactly?

I think DOM is implemented by C++ in most browser. and DOM API is exposed to users through Javascript? So what does it mean to implement the DOM using PHP/Java or even Javascript such as jsdom did.

A more specific question is why would people want to re-implement DOM using other languages?

Thanks

  • 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-24T22:11:33+00:00Added an answer on May 24, 2026 at 10:11 pm

    I think DOM is implemented by C++ in most browser. and DOM API is exposed to users through Javascript?

    Maybe. I’m sure that Internet Explorer uses MSXML for manipulating the DOM. As it’s a set of COM components, it is available for use in many different languages. It’s likely that this implementation is written in C++, but it doesn’t really matter from the application’s point of view.

    So what does it mean to implement the DOM using PHP/Java or even Javascript such as jsdom did.

    DOM is the recommended application programming interface for working with XML documents. Implementing a DOM basically means implementing an XML parser and tree structure library that complies to this interface.

    This is API is a convention. It allows people familiar with DOM manipulation to “feel at home” when they use a new library. This usually happens when you use another language (e.g. server-side Java, Python, Ruby and client-side JavaScript), but may happen if you start using another project in the same language, but that project uses a different library.

    A more specific question is why would people want to re-implement DOM using other languages?

    Because not everyone agrees on which programming language to use. If you really like Haskell and you choose to manipulate documents in XML format (i.e. persisting data, or for communication with other software that understands XML — web scaping, for instance), then you’ll need to manipulate XML documents in Haskell. Then, you’ll need a library for XML in Haskell.

    Note that, even if people agreed on a single programming language, there would probably still be many different libraries as people disagree on political grounds, such as software licensing issues and programming style, desired features, etc.

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

Sidebar

Related Questions

I came across this one, don't understand. #define IDEBUG(a...) What does the (a...) mean?
Just came across this quote in a book on OOP that I'm reading, A
I came across this one liner that appears to work: stop-service -inputobject $(get-service -ComputerName
I came across this thread Node.js HTTPS Secure Error which mentions that the tls
I came across this behavior that surprised me in Python 2.6 and 3.2: >>>
I came across this plain js ajax upload code (it seems that jquery $.post
Came across this error today. Wondering if anyone can tell me what it means:
I came across this today MPI_ERR_COUNT Invalid count argument. Count arguments must be non-negative;
I came across this article written by Andrei Alexandrescu and Petru Marginean many years
I came across this recently, up until now I have been happily overriding the

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.