Re: Issues with ISimpleDOMNode->get_innerHTML

Alexander Surkov <[email protected]>
Newsgroups gmane.comp.mozilla.accessibility
Organization http://groups.google.com
Message-ID <[email protected]>
On Aug 28, 5:13 am, none <""thbrunet\"@(none)"> wrote:
> > I managed to resolve my issue by digging deeper into the DOM, and
> > finding a node named "HTML", instead of "#document". Thanks!
>
> Just a warning - at least in Javascript, grabbing innerHTML from there
> will miss the doctype information and any attributes on the html node.
> For the doctype information, you may need to go back to that #document
> node and QI for a ISimpleDOMDocument.

At least the meantime ISimpleDOMNode::get_innerHTML is the same like
for JS since get_innerHTML calls DOM's innerHTML property. That's the
reason it fails when it is called on document.

Alex.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.