[whatwg] contenteditable, <em> and <strong>

Simon Pieters zcorpan at hotmail.com
Mon Jan 8 10:21:34 PST 2007


Hi,

The contenteditable spec says:

   Insert, and wrap text in, semantic elements

      UAs should offer a way for the user to mark text as
      having stress emphasis and as being important, and
      may offer the user the ability to mark text and blocks
      with other semantics.

I think it is no surprise that most UAs will implement this as emitting <em> 
for CTRL+I and <stong> for CTRL+B, or similar interfaces that imply that the 
user actually requested italics or bold with (to the UA) unknown intended 
semantics. (IE and Opera emit <em> and <strong>, Safari emits <SPAN 
class="Apple-style-span" style="font-weight: bold;">.) I think <i> and <b> 
should be emitted instead, and the above text should reflect that.

Regards,
Simon Pieters

_________________________________________________________________
Fynda charter till solen http://www.msn.se/resor/




More information about the whatwg mailing list