In http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_hypert extmodule <a>'s content is listed as (PCDATA | Inline - a)* So this is not allowed: <a href="outer_link"> outer link, <a href="inner_link"> inner link </a> </a> So a browser's interpretation of nested links should be that it is invalid xhtml. But current browsers do a best intention interpretation of their own. Benjamin D. Gray WIND Web Developer http://wind.uwyo.edu/ -----Original Message----- From: Manos Batsis [mailto:m.batsis@bsnet.gr] Sent: Thursday, January 31, 2002 3:04 am To: www-style@w3.org Subject: Behavior of nested Links, pseudos and style Consider the following fragments of an xhtml document: <style type="text/css"> a:link{text-decoration:none;} a:hover{color:red;text-decoration:underline;} </style> And <a href="outer_link"> outer link, <a href="inner_link"> inner link </a> </a> In both Mozilla5 (Gecko/20011120) and IE6, during mouseover events on the outer link, only the non inner link changes style. Is this according to spec? Test page attached (linkTest.htm, 499Bytes). Kindest regards, ManosReceived on Thursday, 31 January 2002 11:48:18 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 September 2008 23:28:09 GMT