[webkit-dev] Tracking "lineage" of an HTML element in WebKit

Shariq Rizvi shariq at rizvi.org
Tue Dec 2 17:12:47 PST 2008

I am trying to figure out the way to track the lineage of HTML elements (an
<img> element, say), through WebKit. For example, let's say we ask WebKit to
load page A, which then contains an iframe for page B, and the <img> element
is contained inside this page B. Then I want to record this lineage

Any recommendations for doing this quickly?

I can see parent-child pointers in the DOM data structures and that's what I
plan to piggy-back on, in the absence of expert opinions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081202/7c4b216a/attachment.html>

More information about the webkit-dev mailing list