W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: [CSSOM] does CaretPosition need a "before/after" hint?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 11 May 2011 16:58:50 +1200
Message-ID: <BANLkTi=zt69FttyNr-tCEWmgtJV4D0Oq0w@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: Julie Parent <jparent@chromium.org>, Ryosuke Niwa <rniwa@webkit.org>, Eric Seidel <eseidel@chromium.org>, "www-style@w3.org" <www-style@w3.org>
On Wed, May 11, 2011 at 3:43 AM, Ojan Vafai <ojan@chromium.org> wrote:

> Similarly, does it need to disambiguate line-wrapped positions?
> "Line 1<wrap>
> Line 2"
> After Line 1 and before Line 2 are equivalent DOM positions.
> I think we might be able to have a single flag for both of these. The case
> of "Latin <wrap here>HEBREW", in which case the cursor could be at the end
> of the first line or the end of the second line. But being at the beginning
> of the first line would be a different DOM position.
> I expect there's a case I'm not thinking of and we might need two flags.

We use a single flag for both, because the semantics match perfectly.

"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Wednesday, 11 May 2011 04:59:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC