Is Javascript the only language that can utilise the DOM API? Is there a DOM wrapper for Python?
Asked
Active
Viewed 547 times
0
-
1-1: Google searched DOM API Python, got http://docs.python.org/2/library/xml.dom.html – machine yearning Apr 08 '13 at 20:07
-
Also, Google searched DOM wrapper Python, got http://wiki.python.org/moin/WebBrowserProgramming – machine yearning Apr 08 '13 at 20:10
-
Duplicate of http://stackoverflow.com/questions/1540214/can-python-be-used-for-client-side-web-development (the first result for a Google search of "client-side python"). – machine yearning Apr 08 '13 at 20:12
-
If you can find a client who is using [Grail](http://en.wikipedia.org/wiki/Grail_(web_browser)) :) – root Apr 08 '13 at 20:37
-
I should have Googled first... – gnerkus Apr 08 '13 at 21:15
3 Answers
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