Hello everyone,

I see that Firebug allows you to easily copy the XPath expression that
selects a specific node in the DOM. But is there a way to easily get a
JavaScript statement for selecting a node?

I often need to write JavaScript statements for selecting deeply
nested nodes, some of which do NOT have proper ID attributes. This
results in statements like the following (which use a combination of
IDs and child index values):

document.getElementById("ff29search").childNodes.item
(0).childNodes.item(0).childNodes.item(0).childNodes.item
(1).childNodes.item(0)

I would love to be able to easily get a statement like this from
Firebug (as is already possible with IE WebDeveloper v2).

Thanks for any advice!
-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.


Reply via email to