Using document.load() to get html NOT xml document



I wish to load an html document which may or may not be xhtml. I then
wish to retrieve some elements using getElementsByTagName(). If I load
the document into an <iframe> this works fine, however if I use
document.load() then, even though the document is successfully
retrieved, getElementsByTagName() returns nothing (yes I am using the
correct case for the tag name). I suspect this is because it is being
loaded as an xml document and, being html, this document will not be
well formed. Is there a way to load as a regular html document? I
would rather not use a hidden <iframe> if possible as I don't want to
load embedded images etc.

I am doing this from within a .xul document with Firefox BTW.
.



Relevant Pages

  • Re: Possible to Insert One HTML Doc Into Another?
    ... Pavlik Morosov wrote: ... > Is it possible to load an HTML document into the main HTML document, ... > like inserting a graphic? ...
    (alt.html)
  • Re: Possible to Insert One HTML Doc Into Another?
    ... > Is it possible to load an HTML document into the main HTML document, ... Very Generous Cpanel Hosting & Fully Managed Servers ... Newsgroup 20% Discount Code: newsgroup ...
    (alt.html)
  • Re: HTML Parsing in VB.Net
    ... I have the HTML document stored in memory and I would need to load it in ... HTTPWebRequest and HTTPWebResponse classes. ... Does anyone have any good examples using the HTMLAgilityPack? ...
    (microsoft.public.dotnet.languages.vb)
  • Using HTCs in design mode
    ... I noticed that when I load a HTML document that contains HTML ... Components (HTCs) into IE6, that the HTC elements disappear if I ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: dataset Performence Issue
    ... > - the time to retrieve a row by primary key ... > Count Load Retrieve ... > Basically the load cost per row does rise, ... > per lookup is probably better than you'll get out of a database. ...
    (microsoft.public.dotnet.framework.adonet)