Re: command Label and <img alt>

On Wed, 24 Jun 2009, Simon Pieters wrote:
>
> When the spec says to use the textContent of an element as the command's 
> Label, I think it should instead use the text content including the alt 
> text of <img> elements.

On Wed, 24 Jun 2009, Simon Pieters wrote:
> 
> Also, the contents of <script> and <style> and should probably be 
> skipped.

There are a number of cases in HTML where it might make sense to do 
something along those lines, maybe also substituting the appropriate 
bidi characters for <bdo>, removing <del>s, inserting quote marks for <q> 
elements... This could be useful with <dfn> to define the term defined, 
<time> to define the string that is to be used when the datetime="" 
attribute is missing, for <progress> and <meter>, for property values, for 
getting the text to use in <title> elements in the Atom conversion...

Do we want to go there?

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

Received on Wednesday, 15 July 2009 07:57:52 UTC