0

Is Javascript the only language that can utilise the DOM API? Is there a DOM wrapper for Python?

gnerkus
  • 11,357
  • 6
  • 47
  • 71

3 Answers3

2

Internet Explorer has support for client-side VBScript, but nobody really uses it. Javascript is an implementation of ECMAScript, by Brendan Eich at Netscape. It became the de-facto standard.

However, most languages have libraries written that can traverse an html document in the server side. In Python a common one is called Beautiful Soup.

000
  • 26,951
  • 10
  • 71
  • 101
  • AFAIK it's the other way around: ECMAScript is the standardization of Javascript (originally created by Brendan Eich at Netscape), after it was haphazardly re-implemented in incompatible ways by other browser vendors. Just for the record, eh. – Giacomo Lacava Sep 21 '15 at 20:53
0

Technically you can also use Java Applets to manipulate the DOM. Why you would is a question that has probably led to the inevitable lack of popularity though.

Jason Sperske
  • 29,816
  • 8
  • 73
  • 124
0

There are in-browser implementations of Python: http://www.skulpt.org/

Thomas Orozco
  • 53,284
  • 11
  • 113
  • 116
  • Can you manipulate the DOM from this implementation of Python? Not that I have any need to, but I am curious. – Jason Sperske Apr 08 '13 at 20:13
  • @JasonSperske I don't believe you can do so natively, you'd have to interact with JS for the browser interface. – Thomas Orozco Apr 08 '13 at 20:18
  • It's just a wrapper on top of javascript. An interpreted language on top of an interpreted language! Don't use this if you expect any performance! – 000 Apr 08 '13 at 20:18