=== modified file 'pykhtml/dom.py' --- pykhtml/dom.py 2007-02-10 20:22:22 +0000 +++ pykhtml/dom.py 2007-02-11 15:16:45 +0000 @@ -156,6 +156,11 @@ self._d = htmlDocument self.browser = browser + @property + def serialized(self): + """ Return a string that represents the DOM structure of this document, much like what is returned via innerHTML in JavaScript """ + return str(self._d.toString().string()) + ## DOM things def getElementById(self, id): """ Get a reference to an element in the page by its id attribute """