Search code examples
apidomw3c

Are there implementations of the W3C DOM other than in web browsers?


So we all know that the DOM (Document Object Model) is an interface that represents HTML pages in web browsers and that you can interact with it using JavaScript.

And now and then I read comments about needing a web browser to use the DOM. But is this true?

Aren't there other implementations of the DOM such as in server side JavaScript engines, screen scrapers, unit testing frameworks, other programming languages besides JavaScript, etc?

Or has this really never been done?


Solution

  • And now and then I read comments about needing a web browser to use the DOM. But is this true?

    Of course not. Your understanding is correct.