- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 22 Feb 2011 15:39:34 -0800
- To: "Belov, Charles" <Charles.Belov@sfmta.com>
- Cc: Aryeh Gregor <Simetrical+w3c@gmail.com>, www-style@w3.org
On Tue, Feb 22, 2011 at 3:28 PM, Belov, Charles <Charles.Belov@sfmta.com> wrote: > Aryeh Gregor wrote on Tuesday, February 22, 2011 1:54 PM >> data:text/html,<!doctype html> >> <button onclick="execCommand('underline', false, >> null)"><u>U</u></button> <div contenteditable=true> <p >> style="text-decoration: underline">Hello there! >> </div> >> >> * IE 9 RC and Firefox 4b11 give up and do nothing >> * Chrome dev converts to <p><u>Hello </u>there<u>!</p> >> * Opera 11 converts to <p style="text-decoration: >> underline">Hello <u>there</u>!</p>, which seems like a bug >> > > and various other examples snipped. > > My concern here from an accessibility viewpoint is that semantic (u tag) > and non-semantic (text-decoration: underline) uses of underline are > being conflated. That's irrelevant for the purposes discussed here. Treat the use of <u> here as just a convenient shorthand to avoid writing out <span style="text-decoration: underline;">, which would have complicated the examples for little reason. (I don't know if browsers actually use <u> when doing contentEditable stuff, but it doesn't matter here.) ~TJ
Received on Tuesday, 22 February 2011 23:40:26 UTC