<div class="gmail_quote">On Mon, Dec 21, 2009 at 5:15 PM, Robert O'Callahan <span dir="ltr"><<a href="mailto:robert@ocallahan.org">robert@ocallahan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Tue, Dec 22, 2009 at 7:21 AM, Ojan Vafai <span dir="ltr"><<a href="mailto:ojan@chromium.org" target="_blank">ojan@chromium.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


<div><div>Dealing with inconsistencies in browser behavior during typing is one of the hardest parts of writing a sane web-based rich-text editor. We have researched what a variety of text editors (Word, Powerpoint, Wordpad, TextEdit) and browsers using contentEditable/DesignMode currently do when you press different keys on the keyboard, in a number of rich text situations, with a variety of text selections. From this data, we attempt to identify recommendations that are OS-agnostic for editing behaviors inside a contentEditable element.</div>


</div></blockquote></div><br></div>Interesting data, thanks! But is OS-agnostic behaviour actually the ideal? Obviously it makes writing a sane Web editor easier, but wouldn't users be best served by behaviour that matches their platform?<br>

</blockquote><div><br></div><div>I agree that we should match the platform where possible. We tried, perhaps unsuccessfully, to focus on behaviors that don't  have well-defined platform-specific behavior, leaving the door open to standardize on a cross-platform behavior.</div>

<div><br></div><div>The tab-key is a good example. In the collapsed selection case, there is a good deal of inconsistency across applications but none of it seems to be platform-specific. For example, what's the correct platform behavior on Windows when Word and Wordpad disagree? Or, looking at the TextEdit behavior of hitting tab with a collapsed selection in the last table-cell of a table, that just seems like a bug.</div>

<div><br></div><div>Ojan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Rob<br><font color="#888888">-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>



</font></blockquote></div><br>