Re: [whatwg] Allow Fallback Text to Render Section Titles in Outlines

On Sat, 11 Feb 2012, Hugh Guiney wrote:
>
> Currently when I run markup like this through outliner programs, they
> return blank section titles:
> 
> <h1><img src="/img/logo.png" alt="Company Name" /></h1>
> 
> <h1>
>   <svg>
>     <g>
>       <title>Company Name</title>
>       <path />
>       …
>     </g>
>   </svg>
> </h1>
> 
> I feel that in both instances, "Company Name" should become the
> section title for the respective section.

The outliner programs should return the entire <h1> contents, <img>, 
<svg>, and everything. What the <img> element represents is defined in 
painful detail and does take the alt="" attribute into account. I haven't 
checked if the SVG spec is as detailed about that case.

In other words, this seems to be a bug in your outliner programs.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 7 June 2012 21:56:21 UTC