Confirmed users
58
edits
m (→Proposed API) |
m (rename `name` and `type' of InputContext) |
||
Line 162: | Line 162: | ||
interface <strike>InputMethodConnection</strike> InputContext: EventTarget { | interface <strike>InputMethodConnection</strike> InputContext: EventTarget { | ||
// The tag name of input field, which is enum of "input", "textarea", or "contenteditable" | // The tag name of input field, which is enum of "input", "textarea", or "contenteditable" | ||
// [JS] I think "type" would be better here. | <strike>// [JS] I think "type" would be better here.</strike> | ||
<strike>// [JS] This should also be 'readonly', right?</strike> | <strike>// [JS] This should also be 'readonly', right?</strike> | ||
readonly DOMString name; | readonly DOMString <strike>name</strike> type; | ||
// The type of the input field, which is enum of text, number, password, url, search, email, and so on. | // The type of the input field, which is enum of text, number, password, url, search, email, and so on. | ||
// See http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#states-of-the-type-attribute | // See http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#states-of-the-type-attribute | ||
// [JS] and "inputtype" here. | <strike>// [JS] and "inputtype" here.</strike> | ||
<strike>// [JS] This should also be 'readonly', right?</strike> | <strike>// [JS] This should also be 'readonly', right?</strike> | ||
readonly DOMString type; | readonly DOMString <strike>type</strike> inputtype; | ||
/* | /* |