{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/editing/issues/51","labels_url":"https://api.github.com/repos/w3c/editing/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/w3c/editing/issues/51/comments","events_url":"https://api.github.com/repos/w3c/editing/issues/51/events","html_url":"https://github.com/w3c/editing/issues/51","id":81423545,"number":51,"title":"What caret positions do we need to allow?","user":{"login":"johanneswilm","id":595512,"avatar_url":"https://avatars.githubusercontent.com/u/595512?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswilm","html_url":"https://github.com/johanneswilm","followers_url":"https://api.github.com/users/johanneswilm/followers","following_url":"https://api.github.com/users/johanneswilm/following{/other_user}","gists_url":"https://api.github.com/users/johanneswilm/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswilm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswilm/subscriptions","organizations_url":"https://api.github.com/users/johanneswilm/orgs","repos_url":"https://api.github.com/users/johanneswilm/repos","events_url":"https://api.github.com/users/johanneswilm/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswilm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/editing/labels/ContentEditableTyping","name":"ContentEditableTyping","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-05-27T12:12:38Z","updated_at":"2015-06-24T06:17:05Z","closed_at":null,"body":"It has been requested that also caret movements are moved into intention events and not directly handled by contentEditableTyping. This makes sense.\r\nInstead, I would like to put more emphasis on where the caret can actually go. It is currently quite annoying that there are many places where the caret cannot go or disappears and reappears. Does the following cover every place:\r\n\r\n<p>All positions in which the caret can be placed programmatically.\r\nThe placement is restricted to be in one of these positions:</p>\r\n\r\n<ol>\r\n<li>Before or after any character in any text node.</li>\r\n\r\n<li>After any inline element that is not a text node.</li>\r\n\r\n<li>Before any inline element that is not a text node and\r\nthat does not have a `previousSibling`.</li>\r\n\r\n<li>Inside any empty inline or block element that is not a\r\nstub-element or inside any empty text node.</li>\r\n\r\n<li>Before or after a block element that is also a stub\r\nelement.</li>\r\n\r\n<li>In the <a>CE Typing Container</li> itself, if it is\r\nempty.</li>\r\n</ol>\r\n\r\n<p>There are two exceptions to these rules:</p>\r\n<ol>\r\n<li>Within a table, the caret can only be placed inside\r\n`TH` and `TD` elements.</li>\r\n\r\n<li>The caret cannot be placed inside<del>, before or after a  `comment node` or a node that has it's display-value set to `none`.</del><ins> invisible nodes.</ins></li>\r\n\r\n</ol>\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/editing/issues/comments/114743346","html_url":"https://github.com/w3c/editing/issues/51#issuecomment-114743346","issue_url":"https://api.github.com/repos/w3c/editing/issues/51","id":114743346,"user":{"login":"johanneswilm","id":595512,"avatar_url":"https://avatars.githubusercontent.com/u/595512?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswilm","html_url":"https://github.com/johanneswilm","followers_url":"https://api.github.com/users/johanneswilm/followers","following_url":"https://api.github.com/users/johanneswilm/following{/other_user}","gists_url":"https://api.github.com/users/johanneswilm/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswilm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswilm/subscriptions","organizations_url":"https://api.github.com/users/johanneswilm/orgs","repos_url":"https://api.github.com/users/johanneswilm/repos","events_url":"https://api.github.com/users/johanneswilm/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswilm/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T06:17:05Z","updated_at":"2015-06-24T06:17:05Z","body":"@rniwa I am not sure what you want to document, but do you want to do that documentation? I have started some with the bug reports I filed here: https://bugzilla.mozilla.org/show_bug.cgi?id=873883 ."}}