I am having similar problems in Delphi 4.  I can access document.body,
document.links, document.forms, etc, without any problem, but as soon
as I try to get the next level, such as document.forms.item(0) or
forms.innerhtml or anything else (which work in the MSIE control), I
get an error that says:

"Library is not registered"

I noticed someone posted the exact same error message in VB to another
mozilla newsgroup.  Is this because these things aren't implemented or
because the dot-notation doesn't work right?  Is there a way to
typecast an olevariant variable to IHTMLElementCollection?

Tracy

Adam Lock <[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>...
> Ruffin Bailey wrote:
> 
> >Or I could be drunk.  More from the FAQ:
> >
> >[What DOM support is there?
> >
> >At present the Mozilla control implements IHTMLDocument, IHTMLElement
> >& IHTMLElementCollection. It should be possible to walk the DOM quite
> >satisfactorily, as well as call get_all and other methods that return
> >a collection. You may also write to a document with calls to open,
> >write, writeln, close on IHTMLDocument. You may also call
> >setAttribute, getAttribute & removeAttribute on elements asl well as
> >get the className & id but not set them.
> >
> >Other methods may be implemented but many return E_NOTIMPL. I would
> >welcome patches to improve this support.]
> >
> I would too :)
> 
> Part of the problem is how horrifically large some of these interfaces 
> are. For example I wrote a class implementing IHTMLStyle but I haven't 
> checked it in because it has about 180 methods on it all returning 
> E_NOTIMPL! Sorting it all out into a workable class, mapping calls onto 
> the DOM equivalents will take a lot of work..
> 
> Then throw in IHTMLStyle2, IHTMLStyle3, IHTMLStyle4 and the same for 
> every other element and it adds up to a lot of elements!
> 
> >Though he doesn't specifically mention innerHtml (which certainly
> >works when you using javascript in Mozilla proper), I can see why
> >you'd assume it was there.
> >
> I opened a bug about put_innerHTML, get_Body and some other things:
> 
> http://bugzilla.mozilla.org/show_bug.cgi?id=171769
> 
> Patches are always welcome but I prefer focussed fixes for specific 
> problems.
> 
> Adam

Reply via email to