[webkit-gtk] Webkit GTK 3.0: Using the DOM Tree Walker

Xan xan.lopez at gmail.com
Thu Aug 2 08:12:43 PDT 2012


On Thu, Aug 2, 2012 at 3:09 PM,  <charles at hailoo.com> wrote:
> So, the WebKit GTK API won't accept a NULL pointer for the filter argument.
> You need to pass an instance of a WebKitDOMNodeFilter. Okay, again - this
> wouldn't be a problem either, except I've searched far and wide through the
> WebKit GTK API, and I can't find anyway to create a WebKitDOMNodeFilter
> object. The header file for WebKitDOMNodeFilter.h doesn't expose any
> constructor for WebKitDOMNodeFilter. It seems like the API doesn't ever
> expose anyway to actually construct a WebKitDOMNodeFilter object at all.
>
> Yet... the API exposes many functions (like
> webkit_dom_document_create_tree_walker, and
> webkit_dom_document_create_node_iterator) which require a
> WebKitDOMNodeFilter. So... is the API just incomplete right now? Or, is
> there some way to create a Filter object which I'm just not seeing?

(re-sending, forgot to Reply-All :/)

Having a look at how this is used in JS (see
https://developer.mozilla.org/en/DOM/NodeFilter) it seems clear we
just failed to properly bind the NodeFilter functionality. So I think
the answer at the moment is "you probably cannot use it". File a bug
about it and we can try to figure out how to fix it.

Xan

>
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-gtk


More information about the webkit-gtk mailing list