[webkit-dev] About Dom tree

Darren VanBuren onekopaka at gmail.com
Wed Dec 31 02:21:27 PST 2008

On Wed, Dec 31, 2008 at 02:12, zhenghe zhang <zhenghe.zhang at gmail.com>wrote:

> Hi
>        I am studying the "webkit", and now I have a question , I hope you
> tell me , thank you!
It's called WebKit, not "the WebKit", so please note that.

> As follows:
>  <table width="640" height="530" border="0" cellpadding="0"
> cellspacing="0">
>  <tr>
>    <td><img src="images/index.jpg" usemap="#Map" border="0"></td>
>  </tr>
> </table>
> <map name="Map">
>  <area shape="rect" coords="110,108,294,148"
> href="column.jsp?columnid=JINGCAIDAODU">
> </map>
> I think the map's parent is the "img", but others don't agree with me.
> Please tell me the detail on the basic of DOM tree.
> Thanks
> zh
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Where did you come up with that idea? The parent of the map is whatever is
opened before and closed after the map. Here's an example:
<div id="somediv">
    <span class="spans">This is the span</span>
    <a href="http://webkit.org/">WebKit homepage</a>

The div is a parent of both the <span> and the <a> elements. The <span> and
<a> are children of the div.

Has that educated you enough?

That's basic HTML knowledge.

That's all my complaing for now.

Darren VanBuren
onekopaka at gmail.com
Administrator of Onekopakaspace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081231/b3234f4a/attachment.html>

More information about the webkit-dev mailing list