Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting IDOMNode to IDOMHTMLInputElement fails

39 views
Skip to first unread message

Pelota

unread,
Nov 19, 2012, 10:05:02 AM11/19/12
to
I have an IDOMNode
nsCOMPtr_IDOMNode elementNode;

from which I can get the node name without problems ("INPUT", "FIELDSET", ...)
nsString strName;
elementNode->GetNodeName(strName);

Since Gecko 17 I have the problem, that I cannot get the HTML Input Element Interface for this node:
nsCOMPtr<nsIDOMHTMLInputElement> pHTMLInputElement;

pHTMLInputElement = do_QueryInterface(elementNode);
if(pHTMLInputElement) {

This works fine with < Gecko 16. Any Ideas or known bugs? Did something change between Gecko 16 to 17?

Kyle Huey

unread,
Nov 19, 2012, 10:19:35 AM11/19/12
to Pelota, dev-platform
The IID of nsIDOMHTMLInputElement changed from Gecko 16 to Gecko 17. You
are probably compiling against headers for Gecko 16.

- Kyle
On Nov 19, 2012 7:10 AM, "Pelota" <immonikol...@googlemail.com>
wrote:
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>

immonikol...@googlemail.com

unread,
Nov 19, 2012, 10:21:55 AM11/19/12
to
Additional infos:
- Tests on Windows 7
- Firefox 17.0
- do_QueryInterface(elementNode, &error); yields NS_ERROR_NO_INTERFACE (0x80004002).

Why didn't I get here the interface since Gecko 17?

Pelota

unread,
Nov 20, 2012, 6:54:37 AM11/20/12
to
The real problem was using an old 17.0 Gecko SDK. With SDK 17.0b6 there is no problem.

Thx for fast help, Kyle!

Neil

unread,
Nov 20, 2012, 7:25:59 AM11/20/12
to
Kyle Huey wrote:

>The IID of nsIDOMHTMLInputElement changed from Gecko 16 to Gecko 17. You are probably compiling against headers for Gecko 16.
>
How does bug 813264 affect this?

--
Warning: May contain traces of nuts.

Kyle Huey

unread,
Nov 20, 2012, 7:34:26 AM11/20/12
to Pelota, dev-pl...@lists.mozilla.org
On Tue, Nov 20, 2012 at 3:54 AM, Pelota
<immonikol...@googlemail.com>wrote:

> The real problem was using an old 17.0 Gecko SDK. With SDK 17.0b6 there is
> no problem.
>
> Thx for fast help, Kyle!
>

As Neil alludes to, this is actually our fault for changing the interfaces
during beta. We've undone that now. The released version of Firefox will
be shipping with the IIDs from 17.0b5 (and previous betas), not 17.0b6.

There are details in Bug 813264 if you're curious.

- Kyle
0 new messages