Hi
 
Any one can help here?
I'm trying to enumerating tabbrowser tabs through DOM API to see which page is selected . I'm using this code but I'm not getting deep enumerate all children .
 

getRecentWindow(pdomWindow);

nsCOMPtr<nsIDOMDocument> domDoc ;

pdomWindow->GetDocument(getter_AddRefs(domDoc));

nsCOMPtr<nsIDOMNodeList> domChild ;

domDoc->GetElementsByTagName(NS_LITERAL_STRING("tabbrowser"),getter_AddRefs( domChild ));

............

nsCOMPtr<nsIDOMDocumentXBL> xblDoc;

xblDoc = do_QueryInterface( domDoc);

xblDoc->GetAnonymousNodes( pElement, getter_AddRefs( nsNodeList ) );

then I loop  through the nodeList the result  is

xul:stringbundle

xul:tabbox

after that i loop through each one of them using  GetChildNodes

 for the xul:tabbox i get

hbox, and tabpanels

where i do need to get more deep to tabs.

 

 

 

 
Mazin
phone :3132279104
Compuware Corporation
Detroit, Michigan
www.compuware.com
 
 



The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to