{"action":"closed","issue":{"url":"https://api.github.com/repos/servo/servo/issues/7756","labels_url":"https://api.github.com/repos/servo/servo/issues/7756/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/7756/comments","events_url":"https://api.github.com/repos/servo/servo/issues/7756/events","html_url":"https://github.com/servo/servo/issues/7756","id":108535284,"number":7756,"title":"Only display text caret in text inputs","user":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/A-layout/inline","name":"A-layout/inline","color":"d7e102"},{"url":"https://api.github.com/repos/servo/servo/labels/C-assigned","name":"C-assigned","color":"02d7e1"},{"url":"https://api.github.com/repos/servo/servo/labels/E-easy","name":"E-easy","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-27T13:37:14Z","updated_at":"2015-10-04T16:15:10Z","closed_at":"2015-10-04T16:15:10Z","body":"`tests/html/test-inputs.html` shows text carets in `<input type=\"submit\">` for example :) We should adjust the code added in [this PR that implemented the caret](https://github.com/servo/servo/pull/7644/files#diff-4d6c0efe7ab0163225d32cf90c47bc81R948) to handle this case, by making `get_insertion_point_for_layout` return an Option value.\r\n\r\nCode: components/script/dom/htmlinputelement.rs"}}