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

2014-11-03 12:18, Steve Faulkner wrote:
> when you use the <html5-sarcasm> element, default rendering is with an 
> reverse question mark at at start and end.

No, the default rendering is that the markup has no impact: its content 
is rendered as if the tags were not there.

In browsers that support some proposed extensions to HTML, you may have 
the element styled in some particular way. This is a complicated and 
unreliable way of doing something like

.sarcasm:before, .sarcasm:after{
content: "؟"; font-weight: bold; font-size: x-large;

when using <span class=sarcasm>...</span>.

> It also has a role=note applied with an aria-label=sarcasm.

You can set attributes to HTML elements in JavaScript. Whether such a 
specific setting is of any help is highly questionable; expressing 
sarcasm that way is about as enigmatic as it is to express it with 
leading and trailing Arabic question marks (which is what “؟” really is; 
the reversed question mark is “⸮”).


Your techniques do not work in Chrome.


Received on Monday, 3 November 2014 12:32:40 UTC