- From: Piotrek Koszuliński <notifications@github.com>
- Date: Sat, 22 Aug 2015 09:54:25 -0700
- To: w3c/editing <editing@noreply.github.com>
- Message-ID: <w3c/editing/issues/75/133725967@github.com>
> > One additional note: If I understood #74 (comment) correctly, this would mean that the caret cannot be placed anywhere between elements in this case: > <p><b>foo</b> <b>bar</b></p> > > Are those spaces between the two <b> elements? I that case I would argue that it should be possible to place it there, even though the browser may join all those spaces together to be just a single space. We actually had a discussion about that earlier. The "invisible nodes" should never touch text nodes, unless they are in a display:none element. Hm... I've just realised that these spaces would actually be visible (as one). I need to rethink my initial comment. E.g. which space would be visible in this case `<p><b>x </b> <b> x</b></p>`? I don't know how spaces aggregation work in details, so this is too complex for me at the moment. I'll try to find out how it works and maybe then I'll be able to propose something reasonable. And to clarify – I consider this a valid position. In general – I would like to be able to place caret outside inline elements or inside them regardless of their surrounding or contents. PS. CKEditor actually normalizes all white spaces when loading data, so such situations with white-spaces are unlikely to happen in it. Perhaps we could refer to or define similar normalization in the spec to simplify the rules. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/75#issuecomment-133725967
Received on Saturday, 22 August 2015 16:54:53 UTC