[whatwg] href on any element

Lachlan Hunt lachlan.hunt at lachy.id.au
Mon Aug 28 23:05:56 PDT 2006


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/



More information about the whatwg mailing list