W3C home > Mailing lists > Public > public-html@w3.org > November 2014

Re: suggestion for tag set <sarcasm> </sarcasm> pair

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Tue, 4 Nov 2014 07:25:11 +0000
Message-ID: <CA+ri+V=7Q6=AEc01ybgaiq=rs3dsXELFgCNZ+E89jZ3x02Qo6Q@mail.gmail.com>
To: "Jukka K. Korpela" <jukka.k.korpela@kolumbus.fi>
Cc: Pradeep Kumar <pradeep.online00@gmail.com>, sam <sdomenic@comcast.net>, HTMLWG WG <public-html@w3.org>
On 4 November 2014 07:07, Jukka K. Korpela <jukka.k.korpela@kolumbus.fi>
wrote:

> What “semantics” is added for me by whom/what?


role and label for AT users, and visual symbols for other users.

1) Why would you want to use an element of your own when you can achieve
> the same reliably, in all browsers, without any new features, by using a
> class element on a suitable general-purpose element like <span> or <div>?
> (It can make the code shorter and superficially more readable, but is there
> anything else?)
>

That is a question for the thread starter.

2) Assuming that you really, really want an element, what is the benefit of
using new features, defined in drafts and with experimental
implementations, as opposite to just using <sarcasm> and styling it? It
works in all browsers except some old versions of IE, where the new
features surely won’t work and where the simple
document.createElement('sarcas
>
> m') trick will fix the issue when scripting is not disabled.
>

You describe another method to do achieve a similar end.The choice of
method is up to the developer.

I am not advocating one method over another, I have provided an example of
one possible solution, you have provided in a round about way another
solution, suggest it would be helpful if you write up your solution in a
form that can easily be used by others.

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
Received on Tuesday, 4 November 2014 07:26:17 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:11 UTC