W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] href on any element

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 29 Aug 2006 16:05:56 +1000
Message-ID: <44F3D944.2080506@lachy.id.au>
Andrew Fedoniouk wrote:
> Ian Hickson wrote:
>>   <a href="">
>>    <h2>...</h2>
>>    <p>...</p>
>>   </a>
> 
> If we will change model of A from
> <!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
> to something else then it will create implications for parser.

What implications?  Changing the formal content model of an element 
doesn't change the way a parser needs to work.  Ian's example above is 
very similar to some real world examples I've seen and browser's already 
handle it just fine.

The DOM looks like this:

A
+-H2
+ P

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Monday, 28 August 2006 23:05:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC