Re: Links article updated

On 17 Aug 2011, at 15:34, Jeremie Patonnier wrote:

> Hello
> 
> 2011/8/17 Chris Mills <cmills@opera.com>
> browsers seem to do odd things when you put links around block level content. Anyone else experienced this?
> 
> I have not tested all browsers, but odd things happen every time you put a block level content inside an inline level content. The best approche to fixe almost all odd behavior consist in manually adding a CSS "display:inline-block" or "display:block" upon the inline parent.

ah! Schoolboy error! This is what I was missing ;-)

I have added a section to the article now:

http://www.w3.org/wiki/HTML_links_-_lets_build_a_web#HTML5:_block_level_linking

> 
> I'm not an HTML5 expert but I guess that it should be some automatic mechanism to deal with that issue in the spec : http://dev.w3.org/html5/spec/Overview.html#the-a-element 
> 
> Let's quote : "Flow content. When the element only contains phrasing content: phrasing content."
> 
> For what I know very few browser deal smoothly with this behavior.
> 
> Cheers
> -- 
> Jeremie
> .............................
> Web : http://jeremie.patonnier.net
> Twitter : @JeremiePat

Received on Wednesday, 17 August 2011 15:26:30 UTC