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

后端 未结 2 651
北荒
北荒 2020-12-21 08:06

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.

An

相关标签:
2条回答
  • 2020-12-21 08:25

    The term you're looking for is "headless browser" and yes they do exist. No need to spin up an instance of IE, Chrome, or firefox to execute JavaScript and mine data from the DOM. Check out Phantom.js or Zombie.js.

    Plenty of other questions related to this topic:

    • Real headless browser
    • Headless Browser for Python (Javascript support REQUIRED!)
    • headless internet browser?
    0 讨论(0)
  • 2020-12-21 08:26

    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.

    0 讨论(0)
提交回复
热议问题