Olivier Danes wrote:
>> Or to call getElementsByTagName("meta"), or getElementsByTagNameNS
>> (depending on what sorts of documents you're looking at)...
>
> I've first try this but the returned node list is empty ! and yes my doc
> contains a meta element ;-)
Odd. What sort of document is it? What did your code look like, exactly?
This
really does work, trust me!
>>> nsCOMPtr<MetaFilter> filter = Which code may I put here ?;
>>
>> = new MetaFilter();
>
> Can one use the new operator on a nsCOMPtr ?
You're not using it on an nsCOMPtr. You're using it on a MetaFilter.
> Since the destructor of MetaFilter is private I will not be able to release
> it ...
The destructor will be called by MetaFilter::Release, which is a public method.
> I've try with the new operator but CreateNodeIterator() returns
> NS_ERROR_NOT_IMPLEMENTED !
Oh, right. That would be bug 132824. TreeWalker is implemented; NodeIterator
is not.
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding