Parsing HTML?
7stud
bbxx789_05ss at yahoo.com
Fri Apr 4 00:10:00 EDT 2008
On Apr 3, 12:39 am, ben... at gmail.com wrote:
> BeautifulSoup does what I need it to. Though, I was hoping to find
> something that would let me work with the DOM the way JavaScript can
> work with web browsers' implementations of the DOM. Specifically, I'd
> like to be able to access the innerHTML element of a DOM element.
> Python's built-in HTMLParser is SAX-based, so I don't want to use
> that, and the minidom doesn't appear to implement this part of the
> DOM.
>
innerHTML has never been part of the DOM. It is however a defacto
browser standard. That's probably why you aren't having any luck
using a python module that implements the DOM.
More information about the Python-list
mailing list