[whatwg] href on any element

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