/irc-logs / w3c / #webapps / 2015-08-23 / end

Options:

Previous day, Next day

  1. # Session Start: Sun Aug 23 00:00:01 2015
  2. # Session Ident: #webapps
  3. # [01:10] * Quits: estellevw (~estellevw@public.cloak) ("Snuggling with the puppies")
  4. # [01:17] * Joins: jyasskin (~textual@public.cloak)
  5. # [01:26] * Quits: smaug (~chatzilla@public.cloak) (Ping timeout: 180 seconds)
  6. # [03:03] * Quits: jyasskin (~textual@public.cloak) ("My computer has gone to sleep. ZZZzzz…")
  7. # [04:52] * Joins: estellevw (~estellevw@public.cloak)
  8. # [06:32] * Joins: hgl (~hgl@public.cloak)
  9. # [07:51] * Joins: jyasskin (~textual@public.cloak)
  10. # [07:54] * Quits: jyasskin (~textual@public.cloak) ("My computer has gone to sleep. ZZZzzz…")
  11. # [08:17] * Joins: heycam|away (~cam@public.cloak)
  12. # [08:19] * heycam|away is now known as heycam
  13. # [08:23] * Quits: estellevw (~estellevw@public.cloak) ("Snuggling with the puppies")
  14. # [09:02] * Joins: SimonSapin (~simon@public.cloak)
  15. # [09:24] * Joins: smaug (~chatzilla@public.cloak)
  16. # [10:14] * Joins: chaals (~Adium@public.cloak)
  17. # [10:15] * Joins: Florian (~Florian@public.cloak)
  18. # [10:16] * Joins: johanneswilm (~johannes@public.cloak)
  19. # [10:16] * Joins: rniwa (~textual@public.cloak)
  20. # [10:16] * Joins: weinig (~weinig@public.cloak)
  21. # [10:16] * chaals changes topic to 'editing Task Force face-to-face meeting, 23-24 August.'
  22. # [10:17] * Joins: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak)
  23. # [10:17] * Joins: Johan_S_rlin (~Johan_S_rlin@public.cloak)
  24. # [10:17] * Quits: weinig (~weinig@public.cloak) (weinig)
  25. # [10:17] * Joins: RRSAgent (rrsagent@public.cloak)
  26. # [10:17] <RRSAgent> logging to http://www.w3.org/2015/08/23-webapps-irc
  27. # [10:17] <chaals> rrsagent, make log public
  28. # [10:17] <RRSAgent> I have made the request, chaals
  29. # [10:17] <chaals> Meeting: Editing TF face to face
  30. # [10:17] <chaals> Chair: Chaals
  31. # [10:18] <chaals> Present: Chaals, Ryosuke, SamW, Enrica, SimonS, Grisha, Ojan, Piotr, Florian, Johannes, Johan
  32. # [10:18] * rniwa says hello
  33. # [10:19] * Joins: enrica (~enrica@public.cloak)
  34. # [10:19] <johanneswilm> https://www.w3.org/wiki/Fall_2015_Editing_Taskforce_F2F_meeting
  35. # [10:19] * Joins: weinig (~weinig@public.cloak)
  36. # [10:19] <chaals> agenda+ make an agenda
  37. # [10:21] <chaals> scribe: chaals
  38. # [10:21] <chaals> Ojan: Interested in all three specs - input, selection and typing
  39. # [10:22] <chaals> s/typing/ce=events
  40. # [10:22] <chaals> RN: Not clear whether ce=events and input events are different enough to need differnt specs.
  41. # [10:23] <chaals> JW: One is the host for the other. Inputs has events that should fire on the old contenteditable, whereas new one isn't going to work backwards.
  42. # [10:23] <chaals> RN: Not convinced. If we want to make it so JS sets selection the browser doesn't normalse it, that should be always, not just sometimes.
  43. # [10:25] <chaals> Ojan: Have some detailed thoughts on minor things…
  44. # [10:25] <chaals> … high level thoughts: Like providing lower-level primitives people can build on. Ideally we implement a subset of cE=true.
  45. # [10:26] <chaals> … so cE would be like sandbox, with a list of things it enables. E.g. true, or, "events something other thing"
  46. # [10:26] <chaals> … would make sense to split events, one part enabling events aother enabling text input.
  47. # [10:26] <chaals> JW: it doesn't currently enable text input.
  48. # [10:27] <chaals> Johan: maybe movements should be a different thing from text input, layering features.
  49. # [10:28] <chaals> JW: That has been discussed the last week - should we have caret movement?
  50. # [10:28] <chaals> agenda+ caret movement
  51. # [10:28] <chaals> agenda+ selection
  52. # [10:28] <chaals> agenda+ IME and the DOM
  53. # [10:29] <chaals> agenda+ multi-range selection
  54. # [10:29] <chaals> Topic: Caret movement
  55. # [10:30] <chaals> JW: There are things we don't know about that happen in the browser, and some of what we are hearing is contradictory - can we change contentEditable or will it break everything?
  56. # [10:30] <chaals> … so for example @@ has been sayign we need something new if we are going to change the normalisation of selection, but that can't be changed or we break the web.
  57. # [10:31] <chaals> … And I don't know if that's the case. Unclear to me with caret movement - if you reove normalisaiton of selection, can you have caret movement and will that break the selection?
  58. # [10:31] <chaals> RN: You mean if the caret is rendered elsewhere?
  59. # [10:31] <chaals> JW: If it is actually moved into eg a bit of SVG.
  60. # [10:31] <chaals> RN: Think that is something that we could fix as bugs.
  61. # [10:33] <chaals> … if the element is not visible we cannot render the caret, but that's obvious
  62. # [10:33] <chaals> JW: WIthout normalisation of selection the browser handles the caret movement but the caret can disappear sometimes so you need to implement it in JS already.
  63. # [10:34] <chaals> EC: If you let JS handle movement there could be a place where the caret goes and the browser cannot render one e.g. where there isn't a height computable.
  64. # [10:34] <chaals> JW: You normalise the position now to make sure this doesn't happen
  65. # [10:34] <chaals> RN: That isn't why we do normalisation. So even if we lost that you should be able to render the caret where you want it.
  66. # [10:34] <chaals> … it is normalised for editing, to reduce the edge cases we need to handle.
  67. # [10:35] <chaals> OV: Where browser isn't handling editing you could imagine not normalising.
  68. # [10:35] <chaals> RN: If that's what we are doing we dhould not normalise at all, unless we are running execcommand and normalise it there.
  69. # [10:36] <chaals> OV: there are some thing in common across blink and webkit codebases. We would also have to normalise right before copy. I think that is a reasonable change to make, but it will be some serious work.
  70. # [10:36] <chaals> RN: Not happening overnight but does need to happen.
  71. # [10:37] <chaals> JW: copy is the only exec command left that we need. But that's only relevant if you have a selection. Problem for editors is just the caret. If you only have a caret and people copy, you cannot copy?
  72. # [10:37] <chaals> OV: The idea is that you would not normalise the selection, but take the copy and then normalise what you have copied.
  73. # [10:37] <chaals> JW: That sounds even better.
  74. # [10:38] <chaals> Piotr: Copying doesn't have to put something to clipboard, we can do this in javascript directly.
  75. # [10:38] <chaals> JW: But we initialise that through an execcommand
  76. # [10:38] <chaals> PK: But ckeditor puts the content into the clipboard manually so we get the right stuff in there.
  77. # [10:38] <SimonSapin> q+ agenda
  78. # [10:39] <chaals> FR: My impression is that this area hasn't been a high priority area - how mch can we reasonably expect will happen?
  79. # [10:39] <chaals> Ojan: Think this is the hardest part and most "at risk".
  80. # [10:39] <chaals> … we will do selection eventually, but cannot give a timeline.
  81. # [10:39] <chaals> FR: You don't have anyone obviously ready to do it?
  82. # [10:39] <chaals> Ojan: Not sure…
  83. # [10:40] <chaals> SW: Browsers operate based on what others do… so may copy, especially once two browsers start doing something.
  84. # [10:40] <chaals> RN: There is also a question of benefit to cost…
  85. # [10:41] * Quits: weinig (~weinig@public.cloak) (weinig)
  86. # [10:42] * Joins: weinig (~weinig@public.cloak)
  87. # [10:42] <chaals> Ojan: Want to convince our team soon to implement beforeinput and kill textinput. ContentEditable events? Should do, it is simple. Selection normalisation is hard...
  88. # [10:43] <chaals> Piotr: There was a difference between webkit and blink - when I added ranges, blink started returning the same ranges.
  89. # [10:43] <chaals> RN: You (ck) now normalise at execcommand, right?
  90. # [10:43] <chaals> PK: Yep.
  91. # [10:43] <chaals> RN: That part isn't that hard…
  92. # [10:43] <chaals> Ojan: So the thing I said is hard, we already did, right?
  93. # [10:43] <chaals> RN: Well, the hard part is to respect what you already did when you insert...
  94. # [10:44] <chaals> agenda+ What features get used, are they spec'ed
  95. # [10:46] <chaals> JW: SO two positions. We don't do caret movement in the browser. I think that is almost possible except maybe line endings and bidi boundaries. Other position is caret movement but we don't specify that. People making editors have been asking for standard caret movement, because moving in the block direction would be different.
  96. # [10:46] <chaals> … Don't see harm in having caret movement, but we may build code for something that wasn't specified and be stuck supporting that.
  97. # [10:47] <chaals> RN: We could have caret movement supported by ce=events, or we could have a caret that would allow you to move between elements.
  98. # [10:47] <chaals> Ojan: The question is should we specify caret movement? You can imagine having it as an optional piece of ce=
  99. # [10:47] <chaals> JW: Should we have caret movement prior to having a spec, or should it just not move?
  100. # [10:48] <chaals> RN: We should spec both at the same time
  101. # [10:48] <chaals> FR: Can you turn them on and off seperately.
  102. # [10:48] <chaals> Ojan: Proposing sepeartely.
  103. # [10:48] <chaals> SW: Seems odd to have a spec that says if you touch the keyboard text doesn't happen but arrow keys do, so makes sense.
  104. # [10:49] <chaals> RN: And in collaborative editing you already have to render carets, so you don't want browser caret movement.
  105. # [10:49] <chaals> FR: Think spearate modes make sense, and we say it happens and we will need to specify it.
  106. # [10:49] * Quits: weinig (~weinig@public.cloak) (weinig)
  107. # [10:49] * Joins: weinig (~weinig@public.cloak)
  108. # [10:50] <chaals> RN: Not sure if it makes sense to have caret but not events. As soon as you have typing, you need caret, makes no sense seperately?
  109. # [10:50] <chaals> Ojan: Not so sure. E.g. you have special widgets but don't want to deal with typing yourself?
  110. # [10:51] <chaals> RN: But if you have IME, you need caret there
  111. # [10:52] <chaals> RN: So should events and caret be disjoint, or caret be a superset of events?
  112. # [10:52] <chaals> SW: So what do we mean by caret movement? Arrow keys / mouse, or implicit carets when you paste, or what?
  113. # [10:52] <chaals> PK: Drag and drop is affected too.
  114. # [10:53] * Quits: enrica (~enrica@public.cloak) (enrica)
  115. # [10:53] <chaals> FR: We can say caret movement is implementation dependent, but we need to define early in what triggers movements. E.g. drag and drop, ...
  116. # [10:54] <chaals> RN: HTML5 says selection shouldn't move on drag/drop, but webkit/blink doesn't do that
  117. # [10:54] <chaals> FR: Worth trying to scope what triggers there are for caret movement.
  118. # [10:54] <chaals> RN: Yep.
  119. # [10:54] <chaals> … There are some platform-dependent things, e.g. keyboard combinations may or may not trigger a selection.
  120. # [10:54] <chaals> … but e.g. ordering of events should be specified
  121. # [10:55] * Joins: enrica (~enrica@public.cloak)
  122. # [10:55] <chaals> … on Mac we don't have touch events, but on iOS you have touch events moving the selection.
  123. # [10:55] <chaals> Enrica: Selections won't be drawn without user interaction, but they exist in the DOM and can be acted on.
  124. # [10:56] <chaals> RN: So if you interecept touch events, and do things to the selection when the user can't see it, you confuse people.
  125. # [10:56] <chaals> Ojan: Sam's point is interesting. If you paste, when you only have events and selection but not caret, what happens?
  126. # [10:56] <chaals> … so maybe makes sense to have superset relation
  127. # [10:56] <chaals> RN: We can define it like that for now, and see if we need to change it later.
  128. # [10:57] <chaals> Ojan: Don't see anything that will break, for the moment, so let's go that way.
  129. # [10:59] <chaals> RESOLUTION: We think we want strict subsets - events is a subset of caret is a subset of typing which is a subset of true.
  130. # [10:59] <chaals> Ojan: Think it makes sense to have one spec for editing, one for selection...
  131. # [10:59] <chaals> JW: There is also execcommand...
  132. # [10:59] <chaals> Ojan: Don't integrate that.
  133. # [11:00] <chaals> JW: Right but e.g. clipboard want things to be updated in that spec.
  134. # [11:01] <chaals> RN: Might need to specify caret movement in selection API...
  135. # [11:01] <chaals> JW: Yeah, we'll just say there will be a spec at some point.
  136. # [11:01] <chaals> RN: If it is going to be specced, it will happen in selection spec.
  137. # [11:01] <chaals> [spec development synchronisation …]
  138. # [11:02] <chaals> RN: So say a browser moves selections, where do they move to? Right now they are browser-specific… makes sense to specify that.
  139. # [11:02] <chaals> Ojan: Yeah, spec should describe what is going to happen there.
  140. # [11:03] <MikeSmith> RRSAgent, make minutes
  141. # [11:03] <RRSAgent> I have made the request to generate http://www.w3.org/2015/08/23-webapps-minutes.html MikeSmith
  142. # [11:03] <MikeSmith> RRSAgent, make logs public
  143. # [11:03] <RRSAgent> I have made the request, MikeSmith
  144. # [11:03] <chaals> RN: In most applications what you want is the selection to be in the text node, not in an element boundary…
  145. # [11:03] <chaals> Ojan: Need to discuss this with Mozilla.
  146. # [11:03] <chaals> FR: If we can arrange call in, @@@ from Mozilla can do that.
  147. # [11:04] <chaals> Ojan: There are a couple of points that would be good. Selection normalisation.
  148. # [11:05] * chaals changes topic to 'Editing TF f2f. Ping us for remote connection. minutes: http://www.w3.org/2015/08/23-webapps-minutes.html'
  149. # [11:05] <chaals> EC: Is it worth trying to standardise where selection will be on caret movement, or leave it to application?
  150. # [11:05] <chaals> … if we define strict rules we don't leave freedom to app developer about what is going to happen next…
  151. # [11:06] <chaals> CMN: We should standardise, but need to include the possibilities which makes things complicated...
  152. # [11:07] <chaals> Ojan: We should define primitives so you can hook into all the places, even if you don't implement those in your high-level.
  153. # [11:07] <SimonSapin> s/@@@/Ehsan/
  154. # [11:07] <chaals> FR: Doing reasonable things for people especially in regards to i18n makes sense because it saves a lot of work for app developers.
  155. # [11:08] <chaals> RN: If people are implementing at a low level like ce=events you have to do more work than if you're doing ce=true...
  156. # [11:08] <chaals> FR: Yeah, but i18n in particular is an area that people really don't know what they needed to know, so doing it for them is useful.
  157. # [11:09] <chaals> RN: Websites can always get things wrong. make things mostly work unless they specifically ask to do things otherwise.
  158. # [11:09] <chaals> … what if you want to show a widget on top of the caret… in multiple writing modes?
  159. # [11:09] * Quits: enrica (~enrica@public.cloak) (enrica)
  160. # [11:09] <chaals> … it's a crazy idea, except people want to do that.
  161. # [11:10] <chaals> FR: new CSS?
  162. # [11:10] <chaals> … there are user stylesheets...
  163. # [11:10] <chaals> SW: Yeah, although they don't seem to work out well.
  164. # [11:10] <chaals> … What are the real problems?
  165. # [11:11] * Quits: weinig (~weinig@public.cloak) (weinig)
  166. # [11:11] * Joins: weinig (~weinig@public.cloak)
  167. # [11:13] <chaals> JW: By making most basic tasks easy and not break, we can try to ensure editors can get the hard things like vertical correct…
  168. # [11:13] <chaals> RN: Example, at a boundary of vertical, the caret is shown differently depending on which direction you came from.
  169. # [11:13] <chaals> EC: Are we talking about the caret, or selection?
  170. # [11:14] <chaals> RN: Think selection…
  171. # [11:14] <chaals> EC: In that case eg vertical becomes more important, because selection is a pretty important thing beyond just editing.
  172. # [11:14] <chaals> SS: To the point about boundaries, you're inside the element or outside it, and those are different positions in the DOM.
  173. # [11:15] <chaals> RN: Meant bidi boundaries
  174. # [11:16] <chaals> Ojan: We would give primitives so you can put the caret where you want it, but we wouldn't make all the controls for where the browser moves the caret if it is handling it.
  175. # [11:16] <chaals> RN: So do we expose that the caret moved from left to right to get where it is now?
  176. # [11:17] <chaals> FR: The question is how do you find out where the caret gets to? Do we need to specify the superset?
  177. # [11:17] <chaals> JW: There are also end of soft line breaks.
  178. # [11:17] <chaals> RN: We have split caret in webkit…
  179. # [11:17] <chaals> … do we expose that as well?
  180. # [11:18] <chaals> Ojan: Yes. Don't see an alternative if you want stuff to work.
  181. # [11:18] <chaals> RN: And then we have to add more for each system…
  182. # [11:19] <chaals> CMN: Yeah, but this is likely to be a reasonable sized set to try and track.
  183. # [11:19] <chaals> Ojan: When we write down what editors want to do, it becomes clear what we need to expose. So we should do that exercise.
  184. # [11:19] <chaals> JW: We have been talking about that and haven't come up with a whole lot of new requirements...
  185. # [11:19] <chaals> RN: SUre, but there are very few people who even know all the things.
  186. # [11:20] <chaals> Ojan: So we need to look at the primitive, as an extension to selection - which end of line or bidi are you at?
  187. # [11:20] <chaals> SW: Do we need to expose things that match our internals?
  188. # [11:20] <chaals> Ojan: Where a single DOM position can be two different screen positions, yes we do.
  189. # [11:21] <chaals> RN: So e.g. before or after a line-break.
  190. # [11:21] <chaals> JW: getclientrects gives two rectangles in those cases - in which is the caret - that is the question…
  191. # [11:21] <chaals> RN: Right, because the answer now is "depends".
  192. # [11:22] * Joins: enrica (~enrica@public.cloak)
  193. # [11:23] <chaals> JW: So are there any other cases than "in one, in the other, or in both?"
  194. # [11:24] <chaals> RN: For bidi you need one more bit of info - the bidi level the caret is on.
  195. # [11:26] <chaals> JW: So having 2 carets, of which one is preferred, is that semantically different from having a single visible caret?
  196. # [11:27] <chaals> CMN: SO the need for bidi-level is when you extend the selection at a bidi boundary.
  197. # [11:27] <chaals> FR: Are we talking about enabling all things people do today, or determining what they can do?
  198. # [11:28] <chaals> JW: So you need a get and set of the bidi level...
  199. # [11:28] <chaals> SW: What do editors need here?
  200. # [11:28] <chaals> … if the browser says "when you modify selection one character forward this is what we will do" is that enough, or do you need to be able to know more?
  201. # [11:29] <chaals> PK: Bidi is really unclear, having "what we will do" is a good start. I don't think many of us editors want to mess with that on our own.
  202. # [11:29] <chaals> … understanding why the browser chose the location, that's not critical
  203. # [11:30] * Quits: weinig (~weinig@public.cloak) (weinig)
  204. # [11:30] <chaals> FR: But if you are controlling teh caret, do you want to control how it is shown?
  205. # [11:30] <chaals> PK: Yes.
  206. # [11:30] <chaals> Ojan: You want to be able to save and restore character position with full fidelity, so you need to have that information.
  207. # [11:30] <chaals> SW: So if you have a shadow cursor of where something would go, you don't need the nitty gritty.
  208. # [11:31] <chaals> Ojan: Yes, when you remove the DOM and then need to put the selection back. Or collaborative editors...
  209. # [11:31] * Joins: weinig (~weinig@public.cloak)
  210. # [11:32] <chaals> RN: Don't think we want to have browsers implement other browsers' selection behaviour
  211. # [11:32] <chaals> JW: Most common use case is end of line - you reimplement in JS moving up and down…
  212. # [11:32] <chaals> … RN you already started on a proposal right?
  213. # [11:33] <chaals> RN: For line breaks yes. For bidi, I think we need another attribute for bidi-level…
  214. # [11:33] <chaals> Ojan: Can we add those to range? So you can get/set on a range?
  215. # [11:33] <chaals> RN: Yes, in the context of multi-range.
  216. # [11:33] <chaals> Ojan: should not be just set-position.
  217. # [11:34] <chaals> SW: We need some new objects that represent the internals of selection...
  218. # [11:34] <chaals> [break]
  219. # [11:34] * Quits: weinig (~weinig@public.cloak) (weinig)
  220. # [11:38] * Quits: enrica (~enrica@public.cloak) (enrica)
  221. # [11:40] * Quits: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak) (Ping timeout: 180 seconds)
  222. # [11:50] * Quits: rniwa (~textual@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  223. # [11:55] * Quits: chaals (~Adium@public.cloak) ("Leaving.")
  224. # [11:58] * Joins: chaals (~Adium@public.cloak)
  225. # [11:58] * Joins: rniwa (~textual@public.cloak)
  226. # [11:58] * Joins: enrica (~enrica@public.cloak)
  227. # [12:00] * Joins: weinig (~weinig@public.cloak)
  228. # [12:04] <chaals> proposed resolution: we want information in selection that says where the caret is - before/after linebreak, where in a bidi boundary it is, and a way to say how to put it in a given place (before, after, or at both ends). Primitives for a superset of all browser behaviour, but browsers will choose for themselves where to put it and leave editor implementors to normalise that if they want it
  229. # [12:04] * Joins: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak)
  230. # [12:05] <rniwa> line break issues: https://github.com/w3c/selection-api/issues/32 and https://github.com/w3c/selection-api/issues/51
  231. # [12:06] <chaals> RESOLUTION: we want information in selection that says where the caret is - before/after linebreak, where in a bidi boundary it is, and a way to say how to put it in a given place (before, after, or at both ends). Primitives for a superset of all browser behaviour, but browsers will choose for themselves where to put it and leave editor implementors to normalise that if they want it
  232. # [12:07] <chaals> RN: So we are probably looking at a trinary state…
  233. # [12:08] <chaals> … need to decide whether this will be on a range or selection.
  234. # [12:09] <chaals> Ojan: Use cases: Save and restore with selection in place, and being able to take the caret and do things to it. I think the latter should be a different API.
  235. # [12:10] <chaals> FR: You have enough information from the browser to expose the state, but not necessarily enough power allowing overriding of platform conventions
  236. # [12:11] <chaals> JW: If you want to move the caret in block direction by yourself and it jumps from start to end of the line, what do you do?
  237. # [12:12] <chaals> [How browser internals really work for this matters]
  238. # [12:13] <chaals> RN: hesitant to expose implementation-dependent rectangles, because people will rely on it.
  239. # [12:13] <chaals> JW: If you look at aloha2, they just disallow one caret location.
  240. # [12:15] <chaals> FR: When you move down from a non-Bidi line into one, where does the caret go?
  241. # [12:18] <chaals> [moving up and down ends of line vs offset that is at the end is tricky… but not horribly so?]
  242. # [12:18] <chaals> RN: The issue is restoring the history of that movement.
  243. # [12:18] <chaals> Ojan: A react style virtual DOM, where you are constantly reloading, is a stronger use case.
  244. # [12:19] <chaals> … feels like this is just another bit of information...
  245. # [12:19] <chaals> RN: we want to add more and more info...
  246. # [12:19] <chaals> Ojan: Yeah, but it isn't an infinite list.
  247. # [12:21] <chaals> FR: Dropping down from a straight line to a bidi boundary, you want to be able to set a physical caret location.
  248. # [12:21] <chaals> RN: How does the app do this?
  249. # [12:22] <chaals> JW: Point to caret position thingo helps do that.
  250. # [12:23] <chaals> RN: If we had a clone selection, and modify the clone, you don't modify the actual user selection. If you move the selection down, you are done...
  251. # [12:23] <chaals> … why figure out the position manually?
  252. # [12:23] <chaals> JW: Many times you want to put the character eg into a floated block…
  253. # [12:24] <chaals> FR: You don't want to rely on the browser to move your caret, you want to be able to do it yourself.
  254. # [12:25] <chaals> CMN: editors want to override the browser placement.
  255. # [12:25] <chaals> RN: Not sure we want to allow that
  256. # [12:26] <chaals> Ojan: You can just try all the bidi positions to get the one you want.
  257. # [12:26] <chaals> JW: We can and do put carets everywhere, except for linebreaks and bidi boundaries. Not having those two possiblities is problematic.
  258. # [12:27] <chaals> Ojan: Think we need some object that has all the state the browser uses internally - offset node, line point, bidi level, now I think inline-position…
  259. # [12:28] <chaals> … not worried which one it should be. seems reasonable that the API returns this object, which doesn't seem hard to implement, and would meet all the use cases
  260. # [12:28] <chaals> Johan: If you want to get to a point that is not visual, you cannot. You need to send the point inside the rectangle.
  261. # [12:29] <chaals> SW: Think the solution is that this is on document, probably need to put it on elements as well.
  262. # [12:29] <chaals> FR: And you should be able to do it in the viewport of the scroller.
  263. # [12:29] <chaals> Ojan: We don't hit-test things that are clipped. If we need to do that it is new...
  264. # [12:30] <chaals> JW: Aloha has this problem. Why not just scroll and then move there?
  265. # [12:30] <chaals> PK: What if you have slow scrolling, how do you get there?
  266. # [12:31] <chaals> Ojan: We should leave this for now...
  267. # [12:31] <chaals> SW: Is main use case to extend selection into something that is not visible?
  268. # [12:31] <chaals> … if so wouldn't API to extend selection be better?
  269. # [12:31] <chaals> FR: Extend forward and backward? Assumes browser caret movement is adequate, which isn't always true.
  270. # [12:32] <chaals> SW: Just API that says "if you move the caret, here is where we will put it" so you can check, then decide what to do.
  271. # [12:32] * Quits: weinig (~weinig@public.cloak) (weinig)
  272. # [12:32] <chaals> EC: What Ryosuke said about cloning the selection without affecting user selection.
  273. # [12:32] <chaals> Ojan: That's backwards…
  274. # [12:33] * Joins: weinig (~weinig@public.cloak)
  275. # [12:33] <chaals> … we don't hit test for this. There is a separete code path for that.
  276. # [12:33] <chaals> EC: caretrange from point does hit test in webkit
  277. # [12:34] <chaals> RN: If you have selection modify on a clone you I can't think of a use case that means you also need to convert x/y to putting caret.
  278. # [12:34] <chaals> FR: Because e.g. the browser cannot get to the place where you want to go.
  279. # [12:34] <chaals> JW: You want to implement caret behaviour in your system that is consistent across different platforms.
  280. # [12:38] <chaals> FR: If you have DOM position plus line-end you know where it goes, but for position plus bidi level you don't.
  281. # [12:39] <chaals> RN: You can predict - it is beginning, end, or both, reliably but dependent on platform.
  282. # [12:40] <chaals> Ojan: If you get the rect where the caret goes, is that enough?
  283. # [12:40] <chaals> … you get caret position. Caret range from point returns that. There is a method to get the rect(s if there are two). Is that enough?
  284. # [12:43] <chaals> RN: In visual selection you want to be able to say "select from this coord to that one"...
  285. # [12:45] <chaals> JW: So in effect you can specify line start/end and an equivalent for bidi?
  286. # [12:47] * Quits: weinig (~weinig@public.cloak) (weinig)
  287. # [12:47] * Joins: weinig (~weinig@public.cloak)
  288. # [12:49] <chaals> [Ryosuke draws a complex case to look where the offsets are in RTL text with mixed bidi levels]
  289. # [12:51] <chaals> RN: You will not be able to do restoration across different browsers, because they use different offset numbering in the line.
  290. # [12:51] * chaals ;(
  291. # [12:52] * Joins: Rossen_ (~Rossen@public.cloak)
  292. # [12:53] <chaals> proposed: For now we can live with not being able to solve the edge case of knowing which end of a bidi block you get to when you move the DOM across to a different browser
  293. # [12:54] <chaals> RESOLUTION: For now we can live with not being able to solve the edge case of knowing which end of a bidi block you get to when you move the DOM across to a different browser
  294. # [12:54] <chaals> rrsagent, draft minutes
  295. # [12:54] <RRSAgent> I have made the request to generate http://www.w3.org/2015/08/23-webapps-minutes.html chaals
  296. # [12:55] <chaals> Ojan: CSSOM has offsetnode, offset and getclientRect - we will have to reconcile with that…
  297. # [12:56] <chaals> SW: Only Mozilla does that.
  298. # [12:56] <chaals> Ojan: We can convince them to change that.
  299. # [12:56] <rniwa> Filed https://github.com/w3c/selection-api/issues/58 Need an API to get the current caret rects
  300. # [12:57] * chaals thanks rniwa
  301. # [13:00] <chaals> [lunch]
  302. # [13:00] <rniwa> Filed https://github.com/w3c/selection-api/issues/59 We need to expose line direction coordinate as a property
  303. # [13:00] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  304. # [13:00] * Quits: enrica (~enrica@public.cloak) (enrica)
  305. # [13:00] * Joins: Florian (~Florian@public.cloak)
  306. # [13:01] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  307. # [13:01] * Joins: Florian (~Florian@public.cloak)
  308. # [13:01] * Quits: weinig (~weinig@public.cloak) (weinig)
  309. # [13:08] * Quits: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak) (Ping timeout: 180 seconds)
  310. # [13:08] * Quits: Florian (~Florian@public.cloak) (Ping timeout: 180 seconds)
  311. # [13:09] * Quits: Rossen_ (~Rossen@public.cloak) (Ping timeout: 180 seconds)
  312. # [13:15] * Quits: rniwa (~textual@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  313. # [13:20] * Quits: chaals (~Adium@public.cloak) ("Leaving.")
  314. # [13:31] * heycam is now known as heycam|away
  315. # [13:36] * Joins: hgl_ (~hgl@public.cloak)
  316. # [13:36] * Quits: hgl (~hgl@public.cloak) (Ping timeout: 180 seconds)
  317. # [14:18] * Joins: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak)
  318. # [14:18] * Joins: chaals (~Adium@public.cloak)
  319. # [14:27] * Joins: enrica (~enrica@public.cloak)
  320. # [14:29] * Joins: rniwa (~textual@public.cloak)
  321. # [14:30] * Joins: Florian (~Florian@public.cloak)
  322. # [14:31] * Joins: weinig (~weinig@public.cloak)
  323. # [14:32] <chaals> Topic: IME and DOM
  324. # [14:32] <chaals> JW: Benjamin Peters looked at this and his first conclusion was that if we do inline IME we need to allow typing because it changes the DOM along the way…
  325. # [14:33] <chaals> … which is why we did ce=typing. Then Koji pointed out that this could be handled somehow in shadow DOM, so we could have inline IME input and when the content is constructed you create the beforeinput events and don't change the DOM in the meantime.
  326. # [14:35] <chaals> [We are talking about how inline IMEs work. Some are a popup, others show a composing character and then a final…]
  327. # [14:35] <chaals> SW: Do we count e.g. a composing character and then the result?
  328. # [14:36] <chaals> RN: Think this is more of a ligature case.
  329. # [14:36] <chaals> OV: IMEs are arbitrary programs that do their own internal thing. There is a pipeline of start composition, do stuff, end composition, and then you commit the resulting text… sort of…
  330. # [14:37] <chaals> … so for inline IMEs browsers modify the DOM as you type mid-composition, so if you autosave it might grab the half-composed thing. Escape will undo the composition.
  331. # [14:38] <chaals> RN: This varies depending on which language…
  332. # [14:38] <chaals> OV: dependent on language, OS, …
  333. # [14:39] <chaals> JW: supposedly this can be done without changing the DOM. Benjamin talked to the office team, ...
  334. # [14:39] <chaals> FR: is autocorrect like an IME?
  335. # [14:39] <chaals> CMN: Yes, OV: no...
  336. # [14:40] <chaals> RN: Doesn't work exactly the same, but you are trying to replace the range of text with something else.
  337. # [14:40] <chaals> OV: But there is no middle point, you replace something with something else.
  338. # [14:40] <chaals> FR: swipe keyboards?
  339. # [14:41] <chaals> RN: Yes.
  340. # [14:41] <chaals> JW: Mac-style composing accented character?
  341. # [14:42] <chaals> EC: That's not composition - the combining character is there, it is just that you might change it subsequently.
  342. # [14:42] <chaals> OV: On android everythig is IME.
  343. # [14:43] <chaals> JW: The issue is if you have a collaborative editing environment, and you send a tilde ready for composition, can someone else make a mess there?
  344. # [14:44] <chaals> … if we can get it down to this character is being committed, that would simplify many things when you coordinate editing
  345. # [14:44] <chaals> OV: The option-based combination on Mac is an IME...
  346. # [14:45] <chaals> CMN: The yandex translate input will let you type some letters in Latin, and offer an auto-complete as if it were a russian keyboard.
  347. # [14:46] <chaals> OV: What if you start composing an email, and hit send mid-composition.
  348. # [14:46] <chaals> RN: Real users don't - but anyway, the send confirms the current suggestion.
  349. # [14:47] <chaals> [This is highly variable according to platforms]
  350. # [14:47] <chaals> RN: Let's say you have <p><b>H</b>ello</p> and your caret is before the H, and the IME wants to insert…
  351. # [14:48] <chaals> … we attach the shadow DOM, conceptually speaking - shadowroot -> <b> -> H
  352. # [14:48] <chaals> with the cursor at the H
  353. # [14:48] <chaals> s/with/… with/
  354. # [14:49] <chaals> OV: With shadow DOM you replace what is rendered with something else. So in HTML you won't get the composition. I don't like that because the lowest level element can be aribitrarily big.
  355. # [14:49] <chaals> … I think you want the thing in the DOM, but control over whether it synchs to collaboration, e.g. to demonstrate how to do the composition mid-typing.
  356. # [14:49] <chaals> … what if we put a composition element where you are composing?
  357. # [14:49] <chaals> RN: That was the original proposal.
  358. # [14:50] <chaals> JW: Main problem is with split text nodes.
  359. # [14:51] <chaals> … say we put the composition in the middle of two text nodes, start composing in the middle, and cancel, do you merge the two nodes which used to be one?
  360. # [14:51] <chaals> OV: Text nodes get re-normalised all the time…
  361. # [14:51] <chaals> RN: Problem modifying the real DOM you enter ce=typing, and you end up modifying a bunch of DOMs
  362. # [14:52] <chaals> OV: I'm a bit confused :S
  363. # [14:52] <chaals> RN: In ce=events we don't want to modify the DOM at all.
  364. # [14:53] <chaals> OV: I was assuming that in ce=events you have to get the composition events as they come.
  365. # [14:53] <chaals> RN: Different IMEs use different ways to e.g. identify what bit of the current composition is being worked on.
  366. # [14:53] <chaals> OV: How does browser do it?
  367. # [14:54] <chaals> RN: It's broken in blink. But Firefox gets it.
  368. # [14:54] <chaals> OV: We should expose what the browser does… draw an underline
  369. # [14:55] <chaals> FR: That varies enormously. Do you want to expose that as a superset of all platform behaviours?
  370. # [14:55] <chaals> OV: Today we have compositonStart, …Update and …End.
  371. # [14:55] <chaals> … if browsers tell you what the user typed and what they think the current compositoin is, that's enough…
  372. # [14:56] <chaals> RN: You need seperate ranges for each part of a composition. There is some privacy concern, because it can expose user-defined dictionaries.
  373. # [14:57] <chaals> OV: Seems far-fetched concern...
  374. # [14:57] <chaals> [not so much…]
  375. # [14:58] <chaals> [Rysouke gives example of how splitting japanese text in different ways exposes things in your dictionary, such as names.]
  376. # [14:58] <chaals> OV: Don't think this is a big deal...
  377. # [14:58] <chaals> RN: This is as bad as spellchecking, which people have said they don't want exposed.
  378. # [14:59] * Quits: enrica (~enrica@public.cloak) (enrica)
  379. # [14:59] <chaals> [FR explains how to use this as a fingerprinting technique]
  380. # [14:59] * Joins: enrica (~enrica@public.cloak)
  381. # [15:01] <chaals> JW: collaborative editors are breaking because they get the composition events as they come.
  382. # [15:01] <chaals> OV: This is where I am going with the composition. A good editor wouldn't let a collaborator mess with what is being modified. Today you can't stop that because you don't know what is being composed.
  383. # [15:01] <chaals> … my concern with shadow approach is performance.
  384. # [15:02] <chaals> RN: We could do that with caret but don't want to put it in the real DOM.
  385. # [15:02] <chaals> JW: Koji said we don't need that...
  386. # [15:02] <chaals> OV: But I think he is wrong.
  387. # [15:02] <chaals> JW: If you save in the middle of composition, what do you do when you load again? You don't want to arbitrarily merge sibling text modes.
  388. # [15:03] <chaals> OV: Makes no sense to me to have event-only thing where you are modifying the content typing in an IME.
  389. # [15:03] <chaals> FR: Agree. But for visual aspect, who should display?
  390. # [15:03] <chaals> OV: Depends on IME…
  391. # [15:03] <chaals> …inline part is done today by the browser.
  392. # [15:03] <chaals> RN: Not necessarily. Depends on teh browser.
  393. # [15:04] <chaals> FR: So you want to make it the javascript's job choose what to display?
  394. # [15:04] <chaals> OV: yes.
  395. # [15:04] <chaals> JW: Can we get hold of Koji to get input on this?
  396. # [15:06] <chaals> OV: Koji's approach is possible but not performant...
  397. # [15:06] <chaals> JW: Is having stuff in shadow DOM less performant than normal DOM?
  398. # [15:07] <chaals> OV: No, it is that you have to re-render...
  399. # [15:08] <chaals> CMN: worst case is <pre><code> …[4000 lines of code] … </code></pre>
  400. # [15:09] <chaals> RN: You could have a mode where a caret element is disabled. EMpty in most cases
  401. # [15:09] <chaals> JW: You split text nodes…
  402. # [15:09] <chaals> RN: Yes but you never remove the caret. You see them all, you just don't show the characters
  403. # [15:10] <chaals> JW: When you split text nodes to put a composition element in the middle you have to send to everyone that you split the nodes.
  404. # [15:10] <chaals> … this is complicated.
  405. # [15:10] <chaals> RN: But you can do that easily enough.
  406. # [15:11] <chaals> JW: There may be other reasons why you have separate text nodes…
  407. # [15:11] <chaals> … e.g. so people are overwriting different parts of the same text node.
  408. # [15:12] <chaals> RN: You don't want to multiply split text nodes - that would be super inefficient.
  409. # [15:12] <chaals> JW: Avoiding splitting text nodes seem preferable.
  410. # [15:12] <chaals> RN: Don't think you have large text nodes
  411. # [15:13] <chaals> OV: when you have a code element you do.
  412. # [15:13] <chaals> RN: you can put <br>s in to split the nodes
  413. # [15:13] <chaals> OV: But that doesn't help in the shadow because you still take the element.
  414. # [15:15] <chaals> CMN: what if ce=events doesn't let you mess with composiotion and if you want to do that you have a new ce=composition
  415. # [15:15] <chaals> RN: Can't think of a use case where you want to handle composition on your own?
  416. # [15:16] <chaals> CMN: I can but they are a uncommon.
  417. # [15:16] <chaals> OV: Google Docs doesn't use the system IME…
  418. # [15:17] <chaals> CMN: Think use cases for messing with composition are obscure enough to justify a seperate layer…
  419. # [15:18] <chaals> RN: only use case I can think of is when you want to custom style the text being edited, e.g. spacing.
  420. # [15:18] <chaals> FR: How does Firefox get this right?
  421. # [15:18] <chaals> RN: It gets the info from IMEs and renders itself.
  422. # [15:19] <chaals> … we don't want web authors to do this
  423. # [15:19] <chaals> OV: We should be able to expose all this to the script
  424. # [15:19] <chaals> CMN: Not as a high priority. There is low value for most people, it is very difficult, and unlikely to be done right.
  425. # [15:20] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  426. # [15:20] <chaals> … Not that it should be impossible, but it isn't a priority to expose first.
  427. # [15:20] * heycam|away is now known as heycam
  428. # [15:20] <chaals> FR: And it must not be the only way to handle this - developers should be able to just rely on system IME
  429. # [15:21] <chaals> RN: We want the editing to make it easier to develop editing software, this is a hard and often unnecessary piece.
  430. # [15:22] <chaals> OV: OK with an incremental path. Don't like that we have IMEs that are modifying the DOM as they go. If we had composition element you throw the composition into that, and that gives you control of what happens in the composition.
  431. # [15:22] * Quits: enrica (~enrica@public.cloak) (enrica)
  432. # [15:22] <chaals> RN: That is the design. You could set where the shadow DOM shenanigans happen.
  433. # [15:22] * Joins: enrica (~enrica@public.cloak)
  434. # [15:22] <chaals> OV: Don't see that.
  435. # [15:23] <chaals> RN: We have "user about to type". You can get that to set insert point. We don't have a real shadow DOM. When text is being composed in a real DOM, script can interfere with that and it causes trouble.
  436. # [15:23] * Quits: rniwa (~textual@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  437. # [15:23] <chaals> OV: Are you going to change ce=true to do this?
  438. # [15:23] <chaals> RN: Yes, we could.
  439. # [15:24] <chaals> OV: Top level needs to do the same as the bottom level.
  440. # [15:24] <chaals> RN: THink it makes sense to do this in ce=true.
  441. # [15:24] <chaals> OV: I don't.
  442. # [15:25] <chaals> OV: Suggesting that in compositionStart you tell the browser where to put the composition
  443. # [15:25] <chaals> … difficulty, you need to deal with where the characters go...
  444. # [15:25] <chaals> FR: What can happen to caret while you are composing?
  445. # [15:25] <chaals> RN: It is somewhere in the composition.
  446. # [15:26] <chaals> RN: WOuldn't be rendered while composition is happening.
  447. # [15:26] * Joins: Florian (~Florian@public.cloak)
  448. # [15:26] * Joins: rniwa (~textual@public.cloak)
  449. # [15:26] <chaals> JW: As long as solution *permits* having composition in shadow DOM I don't have a problem.
  450. # [15:27] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  451. # [15:27] * Joins: Florian (~Florian@public.cloak)
  452. # [15:27] <chaals> OV: Think my proposal works fine…
  453. # [15:27] <chaals> RN: Proposal is to set the insertion point?
  454. # [15:27] <chaals> OV: Yes.
  455. # [15:27] <chaals> RN: That is the selection model, right?
  456. # [15:28] <chaals> JW: We have all the pieces necessary?
  457. # [15:28] <chaals> [we think so]
  458. # [15:28] <chaals> OV: So it is going to modify the actual DOM...
  459. # [15:28] <chaals> PK: If I create a blank text node between two others, and tell the browser to insert there, will that work?
  460. # [15:28] <chaals> OV: Hmm. Should be possible, not just on an element.
  461. # [15:29] <chaals> PK: Text node will be modified as you work?
  462. # [15:29] <chaals> OV: Only if you ask for that. You can do it elsewhere if you like.
  463. # [15:29] <chaals> … composition point is text node plus offset into it?
  464. # [15:29] <chaals> RN: need to spec what happens when the author modifies the text-node mid-composition
  465. # [15:30] <chaals> PK: Think it should break the composition.
  466. # [15:30] <chaals> FR: Seems reasonable. You shouldn't do that anyway…
  467. # [15:30] <chaals> RN: So we are coming back to ce=typing...
  468. # [15:30] <chaals> OV: Just for active composition. How is this different?
  469. # [15:31] <chaals> JW: Because you don't change the DOM until you have the composition complete.
  470. # [15:31] <chaals> OV: Why is that better? Why do we care about modifying the real DOM?
  471. # [15:31] <chaals> RN: You may have some states on server
  472. # [15:31] <chaals> OV: But in this case you have control over that yourself.
  473. # [15:31] <chaals> … if you don't want to mess with text nodes you don't have to.
  474. # [15:32] <chaals> RN: I guess so.
  475. # [15:32] <chaals> … for consistency we want to support regular text input as well or it will be weird.
  476. # [15:32] <chaals> OV: I was envisaging that you handle composition yourself.
  477. # [15:33] <chaals> SW: So does your vision include the dropdowns?
  478. # [15:33] <chaals> OV: No, you say where the dropdown goes, and you show teh text.
  479. # [15:33] <chaals> … I hear editors saying they are not about to start writing their own IMEs.
  480. # [15:34] <chaals> JW: If the basic things work you can do the high level stuff. If the basics don't work, then you do less.
  481. # [15:34] <chaals> … your proposal that you have to create things doesn't seem terribly hard.
  482. # [15:34] <chaals> RN: So maybe we should just go back to ce=typing. That would make more sense
  483. # [15:35] <chaals> JW: Why did we go away from that in the first place?
  484. # [15:35] <chaals> OV: I'd like ce=events someday. But don't think this stuff belongs to the browser.
  485. # [15:35] <chaals> RN: Don't think we want apps to be doing this - even huge important apps get it wrong.
  486. # [15:36] <chaals> OV: I want IMEs to be included with standard libraries.
  487. # [15:36] <chaals> … imagine we have ce=events, and you imported an IME library.
  488. # [15:36] <chaals> … That would be fine. But if you want to change it, you can.
  489. # [15:36] <chaals> FR: Doubt people will do that. MS, Google and Apple ahve all failed to get it right.
  490. # [15:39] <chaals> OV: So what was the pushback on ce=typing?
  491. # [15:39] <chaals> RN: When we started exploring spellchecking
  492. # [15:40] <chaals> i/OV/[chaals and Ojan agree that we want something like ce=typing for the easy case, and to be able to rebuild it all in js using ce=events]
  493. # [15:41] <chaals> [security/privacy issues from spellchecking, spellchecking crossing element boundaries, so editors disable spellchecking, use a 3rd party spellchecker…]
  494. # [15:42] <chaals> JW: Gmail uses spellcheck from a 3rd party but also uses built-in. So you have both cases. If we can turn off spellcheck, that's good enough.
  495. # [15:43] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  496. # [15:43] <chaals> JW: Weren't there issues with carets in typing?
  497. # [15:44] <chaals> RN: Where you are IME composing in typing you cannot change styles.
  498. # [15:44] <chaals> … in plain typing you can do that…
  499. # [15:44] <chaals> … so eg you can have beforeinput say "user wants bold…"
  500. # [15:56] * Quits: enrica (~enrica@public.cloak) (enrica)
  501. # [15:59] * Joins: wilsonpage (~wilsonpage@public.cloak)
  502. # [15:59] * Joins: enrica (~enrica@public.cloak)
  503. # [16:06] * Quits: chaals (~Adium@public.cloak) ("Leaving.")
  504. # [16:07] * Joins: chaals (~Adium@public.cloak)
  505. # [16:07] <chaals> agenda+ IME and accessibility
  506. # [16:09] <chaals> FR: Because we do not want to specify events relating to IMEs now, we want to skip that and do ce=typing
  507. # [16:09] <chaals> RN: Think we should focus on typing today. Don't need to put the future things in...
  508. # [16:09] <chaals> OV: Think we should note in the spec our expectations of what we will do in future
  509. # [16:10] <chaals> JW: Right, and focus on typing for now.
  510. # [16:10] <chaals> RN: Sure.
  511. # [16:10] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  512. # [16:10] <chaals> OV: For chrome on mac with chinese, if you move selection during compositionstart into an element you can already make that work… (for this one test case)
  513. # [16:11] <chaals> … if that doesn't work it is the sort of thing we could get into one of these specs.
  514. # [16:11] <chaals> FR: If you are in typing or higher, you get composiiton.
  515. # [16:11] <chaals> OV: If you are using events, you implement the whole shebang, you don't get input.
  516. # [16:12] <chaals> FR: If you are in typing or higher and canceling all caret events, what happens to caret movements during composition?
  517. # [16:12] <chaals> RN: You can cancel them
  518. # [16:12] * Quits: johanneswilm (~johannes@public.cloak) (Ping timeout: 180 seconds)
  519. # [16:12] * Joins: wilsonpage (~wilsonpage@public.cloak)
  520. # [16:13] <chaals> RESOLUTION: We are going to focus on describing ce=typing as a priority.
  521. # [16:13] <chaals> FR: Caret movements during composition are a bit magic and you don't want them to be overridden.
  522. # [16:13] <chaals> RN: Right.
  523. # [16:13] <chaals> RN: It's a bad idea to change carets/selection when a user is typing in general… don't do that.
  524. # [16:14] <chaals> … only tricky thing about IME is that sometimes the caret will disappear, e.g. japanese.
  525. # [16:14] <chaals> CMN: Don't think that is weird to actual users because that happens already.
  526. # [16:14] <chaals> OV: Think it is fine.
  527. # [16:15] <chaals> RN: When you have composition text script doesn't know where it starts and ends in the DOM.
  528. # [16:15] <chaals> OV: You can if you move the thing on compositionStart and create a place.
  529. # [16:15] * Joins: johanneswilm (~johannes@public.cloak)
  530. # [16:15] * Joins: Florian (~Florian@public.cloak)
  531. # [16:16] <chaals> … and caret weirdness is something you can handle if you go into the lower level and do your own IME.
  532. # [16:17] <chaals> RN: Think when you are composing we want to say "please replace this bit of text with that bit".
  533. # [16:18] <chaals> OV: When you first start you get compositionStart, then updates, and then end with a beforeinput. And you say that has a request to replace text.
  534. # [16:18] <chaals> RN: Should we fire an event for this, or just repace the text?
  535. # [16:18] <chaals> OV: In my mental model, we just replace. That's part of typing. There is a beforeInput you can cancel…
  536. # [16:19] <chaals> RN: So we fire that for each one of the replacements.
  537. # [16:19] <chaals> OV: it's IME specific. if it is inline with multiple changes, you fire multiple events for them.
  538. # [16:19] <chaals> RN: What if the user deletes?
  539. # [16:20] <chaals> … we need to ask the app when we delete it because browser cannot. That ends up weird.
  540. # [16:21] <chaals> … if we allow replacement, or deletion, then we are allowing the browser to delete text niside a text node.
  541. # [16:21] <chaals> … Once you deleted past the text node, the browser won't handle it, but inside the text node teh composition handles it.
  542. # [16:22] <chaals> OV: It is weird to have typing without deletion, and to have that you get execcommand.
  543. # [16:22] <chaals> RN: So you do this in two steps, asking the app to handle the actual replacement
  544. # [16:22] <chaals> OV: Think that is OK.
  545. # [16:23] <chaals> RN: The pushback was that people would make the assumption deletion never happens.
  546. # [16:23] <chaals> OV: App authors will get IME wrong if they don't think about it.
  547. # [16:23] <chaals> SW: Seems like we don't need to make it trivial to get this right, but that it is feasible to manage...
  548. # [16:24] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  549. # [16:24] * Joins: Florian (~Florian@public.cloak)
  550. # [16:24] <chaals> OV: There are not that many people who want to write an editor...
  551. # [16:24] <chaals> RN: For spellcheck we do need a way to say please replace a range, already.
  552. # [16:24] * wilsonpage is now known as wilsonpage-away
  553. # [16:24] <chaals> … so we want to use that in the IME case too.
  554. # [16:25] <chaals> … so I would prefer to always use beforeInput requesting replacement, even for IME replacing text nodes.
  555. # [16:25] <chaals> OV: Who does underlines?
  556. # [16:25] * Quits: wilsonpage-away (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  557. # [16:25] <chaals> RN: Browser. But we know the text node where we insert.
  558. # [16:26] <chaals> JW: Where is content during insertion?
  559. # [16:26] * Joins: wilsonpage (~wilsonpage@public.cloak)
  560. # [16:26] <chaals> [in the text node]
  561. # [16:26] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  562. # [16:26] * Joins: Florian (~Florian@public.cloak)
  563. # [16:26] <chaals> OV: Backtrack - what if we had ce=events but instead of magic shadow we give you beforeInput that says replace this with that, and browsers do the underlines for now, until we later explain what happens for real?
  564. # [16:27] <chaals> RN: If you don't use the same text node to insert, we have no idea what happened…
  565. # [16:27] <chaals> OV: Yeah. just break.
  566. # [16:27] <chaals> SW: In some way that we will define.
  567. # [16:27] <chaals> RN: We wanted to know that what we are trying to insert is what the IME is seeing.
  568. # [16:27] <chaals> SW: Why do we need to ensure that?
  569. # [16:28] <chaals> FR: So what will happen if you do that...
  570. # [16:28] <chaals> … cancel composition and do a text diff?
  571. # [16:28] <chaals> SW: You let them insert that...
  572. # [16:28] <chaals> OV: And the underlines become unpredictable and we cancel the composition
  573. # [16:28] <chaals> FR: But then you need to do a diff...
  574. # [16:28] <chaals> SW: You just have it go funky.
  575. # [16:29] <chaals> OV: Think that is fine. Lets you do what you want, it's a lower level version of the same thing.
  576. # [16:29] <chaals> FR: Think it is fine but should specify the error case.
  577. # [16:29] <chaals> OV: Sure, but doesn't amtter what we say.
  578. # [16:30] <chaals> FR: most dev-friendly is if you put something else then cancel composition, but that requires diffing. Putting funky underlines isn't that great.
  579. # [16:30] <chaals> OV: Don't.
  580. # [16:31] <chaals> FR: You'll have a problem where authors don't consider people who use IMEs
  581. # [16:31] <chaals> OV: Don't think this is a big problem in practice.
  582. # [16:31] <chaals> PK: So you ask for stuff to go into a text node, but where.
  583. # [16:32] <chaals> RN: what if you have a react thing? text node is gone...
  584. # [16:32] <chaals> OV: React has a model for stateful elements, that you would have to use. But that is a reasonable thing in react.
  585. # [16:32] <chaals> PK: What about big selections?
  586. # [16:32] <johanneswilm> JS IME, chinese, 3 years old: https://github.com/hermanschaaf/chinese-ime
  587. # [16:32] <chaals> FR: Browser says "delete selection", app deletes it, and says "now insert this".
  588. # [16:33] <chaals> RN: Text node will be super hard to figure out in practice. Thing we want to underline might not exist.
  589. # [16:33] * Quits: Florian (~Florian@public.cloak) (Ping timeout: 180 seconds)
  590. # [16:33] <chaals> OV: What is you get beforeInput and tell browser "here is where I put the composition"
  591. # [16:33] * Joins: Florian (~Florian@public.cloak)
  592. # [16:33] <chaals> JW: Just composition, or character input in general?
  593. # [16:34] <chaals> OV: Could be on compStart / update. So react can just reset it.
  594. # [16:34] <chaals> RN: Think we should do it on beforeInput so auhors don't have to listen to comp events.
  595. # [16:34] <chaals> OV: Default would be where the selection is.
  596. # [16:34] * xiaoqian RRSAgent, draft minutes
  597. # [16:34] <RRSAgent> I have made the request to generate http://www.w3.org/2015/08/23-webapps-minutes.html xiaoqian
  598. # [16:34] <chaals> RN: Just use the selection...
  599. # [16:34] <chaals> OV: Sure, seems fine.
  600. # [16:35] <chaals> OV: Note that this is for ce=events.
  601. # [16:35] <chaals> RN: Oh…
  602. # [16:36] <chaals> JW: So you get requests for changes as beforeInput events, during composition phase.
  603. # [16:36] <chaals> OV: As long as you don't move around in the middle of composition, you are OK.
  604. # [16:37] <chaals> OV: You do composition start, and at some point there the selection is at a point. Then you get your first character, "replace text(null, "я") …"
  605. # [16:37] <chaals> … wherever the thing started, you have to tell the browser where that is.
  606. # [16:37] <chaals> FR: You do that with selection.
  607. # [16:38] <chaals> RN: When you insert a character you need to move the selection forward.
  608. # [16:38] <chaals> … feels weird.
  609. # [16:38] <chaals> FR: During composition, selection must enclose the entire composition.
  610. # [16:39] <chaals> RN: The text node where the caret is contains the composed text.
  611. # [16:39] <chaals> … seems weird.
  612. # [16:39] <chaals> OV: So we add API to say "here is where composition goes"
  613. # [16:39] <chaals> … all to work around us not telling how we do underlining.
  614. # [16:40] <chaals> CMN: Don't think it is an issue if a caret disappears in an IME where it always has done that.
  615. # [16:40] * Quits: Florian (~Florian@public.cloak) (Ping timeout: 180 seconds)
  616. # [16:41] <chaals> JW: You have to manually insert all the characters. How does the browser know that it is part of the same composition.
  617. # [16:41] <chaals> FR: You replace, then tell the browser where that is.
  618. # [16:42] <chaals> JW: You have replace content, and then say where the content you replaced is, and then you get a line.
  619. # [16:42] <chaals> RN: This API puts the app in control of the text node, and the app tells the browser where the underlining should be.
  620. # [16:43] <chaals> RN: In our original proposal we have a hidden text node where the browser does stuff, and when finished we tell teh app to insert the text node. Ojan's proposal is to request replacements character by character, and the app replies with a pointer to where the change happened.
  621. # [16:44] <chaals> PK: Maybe instead of a text node we specify a range, that must be anchored within one.
  622. # [16:44] <chaals> EC: Don't we already have the target range for any input event?
  623. # [16:44] <chaals> RN: Yes, but once you mess with that, you don't know where it went.
  624. # [16:45] * Quits: rniwa (~textual@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  625. # [16:45] <chaals> RN: Feels like few people will get this right
  626. # [16:45] <chaals> FR: Yeah, but the alternatives are worse.
  627. # [16:46] <chaals> OV: We have ce=Events with shadow DOM thing, or with "put this in a text node", or ce=typing which fixes that but has the delete issues to deal with.
  628. # [16:46] <chaals> EC: So we decided not to focus on events, lets try and focus on typing for now.
  629. # [16:47] <chaals> … all the app developer needs to know is that this is happening. They get all the events, but also notified if this is happening inside an IME session. So they can just leave it alone, to avoid creting problems.
  630. # [16:47] <chaals> … we have an API that notifies everything consitently, but you can tell them "this is in IME, so do nothing".
  631. # [16:47] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  632. # [16:47] <chaals> RN: If you delete an entire text node and there is an element boundary, the deletion needs to be done by the app.
  633. # [16:47] <chaals> EC: Yeah but you are not in composition anymore.
  634. # [16:47] <chaals> RN: That leads us to where we have two delete events
  635. # [16:48] <chaals> FR: composeDelete and delete. first you ignore, second you implement yourself.
  636. # [16:48] <chaals> OV: Seems fine
  637. # [16:48] <chaals> RN: Seems like the simplest thing we could do today.
  638. # [16:48] <chaals> … least insane of our current set of options.
  639. # [16:48] <chaals> FR: Are these cancelable?
  640. # [16:48] <ojan> https://w3c.github.io/editing/input-events.html
  641. # [16:49] * Joins: rniwa (~textual@public.cloak)
  642. # [16:49] * Joins: Florian (~Florian@public.cloak)
  643. # [16:49] <chaals> OV: [segues to] input events are in composition. most IMEs don't support canceling updates… (bottom of link above)
  644. # [16:49] <chaals> … basically most IME don't let you cancel stuff they did.
  645. # [16:50] <chaals> JW: All makes me think when compstart happens, run away…
  646. # [16:50] <chaals> s/run away/move it to some sensible point/
  647. # [16:50] <chaals> OV: Think this is reasonable. Cancelable should be false for events that cannot be canceled so authors know if they can.
  648. # [16:51] <chaals> FR: Set it per IME, or per event type>
  649. # [16:51] <chaals> s/>/?/
  650. # [16:51] <chaals> OV: Don't feel strongly either way. Few IMEs allow cancelling so it seems mostly academic.
  651. # [16:51] <chaals> RN: japanese lets you cancel teh whole thing...
  652. # [16:51] <chaals> OV: But not a particular keypress in teh middle, right?
  653. # [16:51] <chaals> RN: Right.
  654. # [16:52] <chaals> … just say those things cannot be canceled.
  655. # [16:52] <chaals> EC: Not sure we can finalise all these. Start with something like no cancelable, and then do the homework to see if there is anything else we can say or negative implications.
  656. # [16:52] <chaals> OV: Fine to say these are not cancelable.
  657. # [16:53] <chaals> FR: So if we do this, does it leave door open to do =events the way we are starting to explore?
  658. # [16:53] * Quits: smaug (~chatzilla@public.cloak) (Ping timeout: 180 seconds)
  659. # [16:53] <chaals> RN: Think we could do that…
  660. # [16:53] <chaals> FR: Seems compatible to me, but I am not confident I know...
  661. # [16:54] <chaals> … hope we can still do this one.
  662. # [16:55] <chaals> JW: There is a chinese IME in JS on the web - is there anything wrong with that?
  663. # [16:55] <chaals> OV: Just talking about the way the IME interfaces, not the entire IME from scratch.
  664. # [16:56] <chaals> FR: It's not a trivial task - it is a *lot* of work.
  665. # [16:56] * Joins: wilsonpage (~wilsonpage@public.cloak)
  666. # [16:59] <chaals> proposed resolution: We will have typing with compstart (cancelable) when you can set a selection point, then a series on non cancelable beforeinputs to replace text, and two kinds of delete events (one inside one across event boundaries)
  667. # [17:00] * Joins: smaug (~chatzilla@public.cloak)
  668. # [17:01] <chaals> RESOLUTION: : We will have typing with compositionstart (cancelable) when you can set a selection point, then a series on non cancelable beforeinputs to replace text, and two kinds of delete events - one inside composition not cancelable, and a "normal" one to be handled by the application
  669. # [17:01] <chaals> rrsagent, draft minutes
  670. # [17:01] <RRSAgent> I have made the request to generate http://www.w3.org/2015/08/23-webapps-minutes.html chaals
  671. # [17:03] <chaals> Topic: accessibility and IMEs
  672. # [17:04] <chaals> RESOLUTION: We will ask the accessibility people to look at IMEs and the problems we should have considered here but didn't.
  673. # [17:04] <chaals> ACTION: chaals to ask accesibility people about IMEs
  674. # [17:04] * trackbot is creating a new ACTION.
  675. # [17:04] * RRSAgent records action 1
  676. # [17:04] <trackbot> Created ACTION-758 - Ask accesibility people about imes [on Charles McCathie Nevile - due 2015-08-30].
  677. # [17:07] * Joins: estellevw (~estellevw@public.cloak)
  678. # [17:09] * Quits: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak) (Ping timeout: 180 seconds)
  679. # [17:10] * Quits: smaug (~chatzilla@public.cloak) (Ping timeout: 180 seconds)
  680. # [17:11] <chaals> Topic: Multiple ranges
  681. # [17:12] <chaals> SW: Apple wants to bring these back.
  682. # [17:12] <chaals> OV: Controversy is how to do it.
  683. # [17:12] <chaals> … @@'s suggestion was that unless the API looks teh same for single and multi range, people will get it wrong. His idea was to just expose a node list.
  684. # [17:12] <chaals> … don't think that works.
  685. # [17:13] <chaals> … nobody depends on multi-range today.
  686. # [17:13] <chaals> FR: How do people note there is more than one node in the list?
  687. # [17:13] <chaals> OV: That's the common case, so you have to handle it.
  688. # [17:13] <chaals> EC: How do you handle selecting part of a text node
  689. # [17:13] <chaals> OV: That was to be determined.
  690. # [17:13] <chaals> SW: 2 options...
  691. # [17:14] <chaals> … 1. Assume nobody pays attention because it was only in one browser.
  692. # [17:14] <chaals> OV: Anecdotally, it is alleged even developers could not get it right.
  693. # [17:14] <chaals> SW: Not sure I buy that. Appkit has it and it has worked fine - you get an array of ranges…
  694. # [17:14] * Joins: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak)
  695. # [17:15] <chaals> … there are fewer appkit apps than pages, but also pages don't all need to mess with ranges in interesting ways.
  696. # [17:15] * xiaoqian RRSAgent, draft minutes
  697. # [17:15] <RRSAgent> I have made the request to generate http://www.w3.org/2015/08/23-webapps-minutes.html xiaoqian
  698. # [17:15] <chaals> … there are needs for it, but the number of important cases might well be relatively small
  699. # [17:16] <chaals> … We could try to implement the way firefox does it, or we could leave window.getSelection alone, and add a new window.getMultipleRangeSelectionItemsThingMethod()
  700. # [17:16] <chaals> … and start a marketing campaign.
  701. # [17:17] <chaals> … Not sure the latter is worth doing. The existing API has some oddities, but it isn't that crazy.
  702. # [17:17] <chaals> RN: We could forbid people from modifying ranges directly.
  703. # [17:17] <chaals> … just return copies, can only add things from user selections...
  704. # [17:18] <chaals> FR: Cases where it is useful may include editable fields and noneditable, and trying to select one or the other…
  705. # [17:18] <chaals> … there are use cases beyond visually contiguous things
  706. # [17:18] <chaals> SW: Makes sense
  707. # [17:18] <chaals> FR: But don't need to be able to do any crazy thing...
  708. # [17:19] <chaals> RN: Having ce=false inside a selection makes me think having a list of nodes makes more sense because you can just remove nodes.
  709. # [17:19] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  710. # [17:19] <chaals> … you have a list of nodes that are inside a selection
  711. # [17:19] <chaals> SW: Seems more complex than existing model from FF.
  712. # [17:19] <chaals> OV: Yes
  713. # [17:20] <chaals> JW: What about pseudo elements that cannot be covered by selections.
  714. # [17:20] * Quits: rniwa (~textual@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  715. # [17:20] <chaals> FR: If we are inventing something new, we should think of that this time.
  716. # [17:20] <chaals> OV: One issue with ranges is that they are live. That makes me incline to a new API more than anything else.
  717. # [17:21] <chaals> SW: There are a bunch of other things that you would want in a new selection API - each subselection to have positions and affinities to know how they are selected, endline state, …
  718. # [17:21] <chaals> RN: affinity only matters in collapsed.
  719. # [17:21] <chaals> SW: Thought it mattered in extending a selection.
  720. # [17:25] <chaals> [some discussion of this on whiteboards]
  721. # [17:25] <chaals> OV: Authors can modify selections in various places, so you do need to be able to collect endlines etc in each range
  722. # [17:25] <chaals> RN: Affinity only matters for single DOM offset.
  723. # [17:26] <chaals> OV: Do you want a new range class with the endpoints having bidi level, line affinity, … ?
  724. # [17:26] <chaals> SW: Think your initial point is more pressing. A new selection algorithm we would probably not make live.
  725. # [17:27] <chaals> … if you want to change things you listen for a selection change and re-get the selection.
  726. # [17:27] <chaals> OV: If you hold on to live ranges, you get a lot of slowing down
  727. # [17:28] <chaals> … you could have deadSelection/Range …
  728. # [17:28] <chaals> FR: If we say we cannot drop ce=true, I think we should get around specifying it properly.
  729. # [17:29] <chaals> … if execcommand takes in we have a whole set of new dragons to specify. If we have a new API, we don't get a herd of dragons.
  730. # [17:29] * Joins: wilsonpage (~wilsonpage@public.cloak)
  731. # [17:29] <chaals> SW: Think it would work OK with execcommand.
  732. # [17:29] <chaals> … worried that we will not specify execcommand in the short future. It will take a monumental amount of work to get the spec complete and implemented.
  733. # [17:31] <chaals> … I'm not sure where it is going. So if we want to do something like this we have to pave our own way. Think that's fine, and might help improve execcommand, but don't think these should block each other.
  734. # [17:31] <chaals> SW: Anyone else get pressure to implement multirange selection?
  735. # [17:31] <chaals> OV: Not much. For flexbox a bit.
  736. # [17:31] <chaals> FR: Have heard some statements saying that it would be a nice thing to have for a better world
  737. # [17:32] <chaals> OV: There are people who believe that, but not sure about users.
  738. # [17:32] <chaals> SW: That's pretty much our case too.
  739. # [17:32] <chaals> Ilya: how does it benefit web authors?
  740. # [17:32] <chaals> RN: Most common is table column selection.
  741. # [17:33] <chaals> SW: Don't think it helps authors, the drive is users.
  742. # [17:33] <chaals> OV: More about copy paste than anything else. Select something that has a position fixed in the middle that you don't want there (except when you do want it there)
  743. # [17:34] <chaals> EC: Shifting problem from cannot do it to "how do we make a UI" we learn a lot.
  744. # [17:34] <chaals> OV: There are not specific requests, but it does come out of more general requests.
  745. # [17:34] * Joins: rniwa (~textual@public.cloak)
  746. # [17:34] <chaals> EC: question for e.g. editor developers
  747. # [17:35] <chaals> Johan: We fake up table column selection…
  748. # [17:35] <chaals> PK: It isn't extremely critical, it would be nice.
  749. # [17:35] <chaals> … some of our algorithms wouldn't handle multi ranges
  750. # [17:36] <chaals> RN: Think a pain point is range can get into a messed up state. If you don't allow ranges to be modified, and they have to be sane, it would be good.
  751. # [17:36] <chaals> FR: Why not just get exception for doing dumb tings?
  752. # [17:36] <chaals> RN: Lots of edge cases to deal with
  753. # [17:36] <chaals> OV: It is slower, is one problem.
  754. # [17:36] * xiaoqian johanneswilm: The Chinese IME you mentioned isn't working properly, especially for the case of a single character ... Maybe the lib is out of date. We will try to collect some feedback from the major IME producers in China
  755. # [17:36] <chaals> … but probably OK.
  756. # [17:37] <chaals> OV: giant tables can be arbitrarily slow
  757. # [17:37] <chaals> SW: But isn't something people would do with real selection...
  758. # [17:37] <johanneswilm> @xiaoqian: perfect. very interested if there is anything blocking implementing IME entirely in JS.
  759. # [17:39] <chaals> SW: Only argument in favour of existing DOM selection is not duplicating API surface area.
  760. # [17:39] <chaals> OV: That is a big pro…
  761. # [17:40] <chaals> … the big con is live ranges.
  762. # [17:40] <chaals> SW: Maybe we start down this and then decide dead ranges are more efficient.
  763. # [17:40] <chaals> OV: What appkit does makes total sense.
  764. # [17:41] <chaals> … difference between getting a list, and querying into a list is important. Getting a list is clearer.
  765. # [17:41] <chaals> SW: There is a cognitive burden. If we did it today we would return a JS iterator.
  766. # [17:41] <chaals> … so you have to iterate it each time.
  767. # [17:42] <chaals> FR: So arguments for new API: dead vs live, cognitive load, collision detection
  768. # [17:42] <chaals> RN: If only browsers can make the selection...
  769. # [17:42] <chaals> OV: We would not do that. Why only the browser?
  770. # [17:43] <chaals> s/OV: We would not do that. Why only the browser?/… we could create multirange selections limiting what users can do to select/
  771. # [17:43] <chaals> OV: That limits code selection.
  772. # [17:43] <chaals> FR: the thing with a floated section in the middle of somewhere won't let you include whether you pick the thing in the middle or not.
  773. # [17:43] <chaals> SW: Being able to construct a selection is important.
  774. # [17:43] <chaals> EC: Also becuse you need to be able to restore it.
  775. # [17:44] <chaals> SW: And you would be limiting what browser can do in the future.
  776. # [17:44] <chaals> OV: I am much more comfortable with multirange that returns iterator, and even more so if the object weren't live.
  777. # [17:45] <chaals> SW: SHould think about how we can get away with that. I guess we have don that before.
  778. # [17:45] <chaals> FR: So what happens to the current one? Do we develop it as well?
  779. # [17:45] <chaals> OV: Other problem with firefox' is that start and end don't make sense in a multi-range world.
  780. # [17:46] <chaals> … ranges should have anchor and focus. First range is anchor range, last is focus.
  781. # [17:47] <chaals> FR: Do we want to support "out-of-order" ranges?
  782. # [17:47] <chaals> OV: To match visual you have to do that.
  783. # [17:48] <chaals> EC: How do we want to manipulate the selection? In its entirety, or each range? Then you run into collisions…
  784. # [17:48] <chaals> RN: What if we only allow setting an array of ranges?
  785. # [17:48] <chaals> SW: This isn't going to be expensive.
  786. # [17:48] <chaals> OV: It will if you disallow overlapping.
  787. # [17:49] <chaals> RN: You could just normalise when you make overlapping ranges.
  788. # [17:49] <chaals> OV: Normalise we do is in a copy of the selection.
  789. # [17:49] <chaals> SW: Think the big thing we need is more implementation experience.
  790. # [17:50] <chaals> OV: Are you going to do that?
  791. # [17:50] <chaals> SW: Yes, we're planning on doing it...
  792. # [17:50] <chaals> OV: Would love to see dead ranges, iterator, @@@@
  793. # [17:50] <chaals> … would be nice to pare it down, too.
  794. # [17:50] <chaals> … setbase and extend doesn't match the rest of the API
  795. # [17:51] <chaals> RN: Think that came from web compat requirement.
  796. # [17:51] <chaals> SW: Should add new names for setanchor/focus.
  797. # [17:51] <chaals> OV: right.
  798. # [17:54] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  799. # [17:55] <chaals> [noodling on ideas for a new potential selection object, ranges…]
  800. # [17:56] * Joins: wilsonpage (~wilsonpage@public.cloak)
  801. # [17:56] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  802. # [17:57] <chaals> EC: Next order of business would be to define reasonable behaviour for copy.
  803. # [17:57] <chaals> OV: and paste.
  804. # [17:58] <chaals> … don't think we should spec execcommand in a hurry, but cut/copy/paste would be good.
  805. # [17:58] * Quits: estellevw (~estellevw@public.cloak) ("Snuggling with the puppies")
  806. # [17:59] <chaals> JW: Clipboard API wanted updates to that. I preferred they put methods for security etc in clipboard API, and in execcommand we could just point to their spec, so they don't rely on each other.
  807. # [17:59] <chaals> OV: mostly care about the behaviour of what copy does.
  808. # [17:59] * Quits: weinig (~weinig@public.cloak) (weinig)
  809. # [17:59] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  810. # [17:59] * Quits: enrica (~enrica@public.cloak) (enrica)
  811. # [17:59] <chaals> JW: We asked for a copy method, they said it will come. Until then they update execcommand on those points.
  812. # [18:00] <chaals> FR: Do we think ce=true and execcommand should be done in a decade or so?
  813. # [18:00] <chaals> [yes]
  814. # [18:07] * Joins: estellevw (~estellevw@public.cloak)
  815. # [18:08] * Quits: rniwa (~textual@public.cloak) ("Textual IRC Client: www.textualapp.com")
  816. # [18:14] * Quits: PiotrekKoszulinski (~PiotrekKoszulinski@public.cloak) (Ping timeout: 180 seconds)
  817. # [18:15] * Quits: chaals (~Adium@public.cloak) ("Leaving.")
  818. # [18:18] * Quits: Johan_S_rlin (~Johan_S_rlin@public.cloak) (Ping timeout: 180 seconds)
  819. # [18:18] * Quits: johanneswilm (~johannes@public.cloak) (Ping timeout: 180 seconds)
  820. # [18:34] * Quits: estellevw (~estellevw@public.cloak) ("Snuggling with the puppies")
  821. # [18:34] * Joins: weinig (~weinig@public.cloak)
  822. # [18:38] * Joins: jyasskin (~textual@public.cloak)
  823. # [18:44] * Quits: jyasskin (~textual@public.cloak) ("My computer has gone to sleep. ZZZzzz…")
  824. # [19:34] * Quits: weinig (~weinig@public.cloak) (weinig)
  825. # [19:50] * Joins: weinig (~weinig@public.cloak)
  826. # [20:02] * Joins: smaug (~chatzilla@public.cloak)
  827. # [20:08] * Joins: wilsonpage (~wilsonpage@public.cloak)
  828. # [20:22] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  829. # [20:31] * Quits: weinig (~weinig@public.cloak) (weinig)
  830. # [20:37] * heycam is now known as heycam|away
  831. # [20:46] * Quits: tyoshino_ (~sid19222@public.cloak) (Client closed connection)
  832. # [20:46] * Quits: othree (~sid16133@public.cloak) (Client closed connection)
  833. # [20:46] * Quits: mihnea_____ (~sid16310@public.cloak) (Client closed connection)
  834. # [20:47] * Quits: igrigorik (~sid16869@public.cloak) (Client closed connection)
  835. # [20:48] * Joins: tyoshino_ (~sid19222@public.cloak)
  836. # [20:48] * Joins: othree (~sid16133@public.cloak)
  837. # [20:49] * Joins: mihnea_____ (~sid16310@public.cloak)
  838. # [20:51] * Joins: igrigorik (~sid16869@public.cloak)
  839. # [21:14] * Joins: weinig (~weinig@public.cloak)
  840. # [21:35] * Joins: estellevw (~estellevw@public.cloak)
  841. # [21:38] * Quits: estellevw (~estellevw@public.cloak) ("Snuggling with the puppies")
  842. # [21:58] * Joins: wilsonpage (~wilsonpage@public.cloak)
  843. # [22:03] * Quits: weinig (~weinig@public.cloak) (weinig)
  844. # [22:11] * Joins: weinig (~weinig@public.cloak)
  845. # [22:12] * Quits: wilsonpage (~wilsonpage@public.cloak) ("My Mac has gone to sleep. ZZZzzz…")
  846. # [22:42] * Quits: weinig (~weinig@public.cloak) (weinig)
  847. # [22:55] * Joins: weinig (~weinig@public.cloak)
  848. # [23:01] * Joins: estellevw (~estellevw@public.cloak)
  849. # [23:35] * Quits: weinig (~weinig@public.cloak) (weinig)
  850. # [23:36] * Joins: Florian (~Florian@public.cloak)
  851. # [23:44] * Quits: smaug (~chatzilla@public.cloak) (Ping timeout: 180 seconds)
  852. # [23:50] * Quits: Florian (~Florian@public.cloak) (Client closed connection)
  853. # [23:51] * Joins: Florian (~Florian@public.cloak)
  854. # [23:54] * Joins: Florian_ (~Florian@public.cloak)
  855. # [23:54] * Joins: johanneswilm (~johannes@public.cloak)
  856. # [23:54] * Joins: wilsonpage (~wilsonpage@public.cloak)
  857. # [23:58] * Quits: Florian (~Florian@public.cloak) (Ping timeout: 180 seconds)
  858. # Session Close: Mon Aug 24 00:00:00 2015

Previous day, Next day

Think these logs are useful? Then please donate to show your gratitude (and keep them up, of course). Thanks! — Krijn