On Wed, Dec 31, 2008 at 02:12, zhenghe zhang <zhenghe.zhang@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@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> </div> 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@gmail.com ------------------------------------------------- Administrator of Onekopakaspace