W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Add 'type' attribute to <mark>

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 1 Nov 2008 02:57:15 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0811010253320.1041@hixie.dreamhostps.com>
On Sat, 1 Nov 2008, Eduard Pascual wrote:
> On Fri, Oct 31, 2008 at 7:29 PM, Ian Hickson <ian at hixie.ch> wrote:
> > On Fri, 31 Oct 2008, Pentasis wrote:
> [...]
> >> As the <mark> element has different usages defined on it already why not
> >> include a "type" attribute (or similar) that defines what it is used
> >> for. One of these types would then be "footnote", others could be
> >> (relating to what is already in the spec) "term", "highlight" etc. (I am
> >> sure others would be much better at thinking up names than I am).
> >
> > That's what the "class" attribute is for.
> 
> What's the difference then between <mark> and <span> then? I mean, does 
> the <mark> element provide anything that <span> with an appropriate 
> class wouldn't?

A default style when there's no CSS support, support in accessibility 
tools, the ability for search engines to understand what's going on, 
easier round-tripping between editors, simpler rules in CSS and other 
selector-like environments, etc. The usual benefits of semantics.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 31 October 2008 19:57:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC