Re: [editing-explainer] replaceText input event could span multiple Typing Nodes (#50)

I have now installed an old version of Safari via Wine on Linux (took some time), and it was not very hard to create an example where this becomes an issue. Imagine this text. It could be something found in a specialized editor for academics (such as Fidus Writer) that allows citations.

```
<html>
<head>
  <style>
    .citation {
      background-color: #9dbc7d;
      border: 1px solid black;
      padding-left: 5px;
      padding-right: 5px;
      margin-right: 5px;
      margin-left: 5px;
    }
  </style>
</head>
<body>
<h1>The headline</h1>
<div contentEditable=true>
  The question came from New Mexico<span class="citation">Maus 1998</span>.
</div>
<div>
  <h2>Citations</h2>
  <p>Maus, Meier. 1998: "The Road is long, the wind is fast." Pillmond Publishers, Boston.</p>
</div>
</body>
</html>
```
![mexico-maus-safari](https://cloud.githubusercontent.com/assets/595512/7803314/3d4d79fc-031a-11e5-9bbc-418a7896f94b.png)


The problem here is between "Mexico" and "Maus". The browser thinks they are the same word, so they are underlined together. To the user there is a 10-11 px distance between the word, and the color for the citation is different, so that the user would not think of this being an issue. But there is the line. And for the editor creator, there is no way to make the line go away, except turn of spell checking altogether... or possibly to find some bug in Safari that lets me make the browser not think they are the same word. Does this make sense now?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing-explainer/issues/50#issuecomment-105339304

Received on Tuesday, 26 May 2015 00:12:27 UTC