Changes

Jump to: navigation, search

WebAPI/KeboardIME

549 bytes added, 00:46, 26 July 2013
Proposed API
interface <strike>InputMethodConnection</strike> InputContext: EventTarget {
// The tag name of input field, which is enum of "input", "textarea", or "contenteditable"
// [JS] I think "type" would be better here.
// [JS] This should also be 'readonly', right?
DOMString name;
// 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
// [JS] and "inputtype" here.
// [JS] This should also be 'readonly', right?
DOMString type;
* See http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#input-modalities:-the-inputmode-attribute
*/
// [JS] This should be 'readonly', right?
DOMString inputmode;
* See http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#htmlelement
*/
// [JS] This should be 'readonly', right?
DOMString lang;
Promise<DOMString> getText([optional] offset, [optional] length);
// The start and stop position of the selection. // [JS] Shouldn't this be an asynchronous function? I.e. something like // Promise<...> getSelection();? readonly attribute long selectionStart; readonly attribute long selectionEnd;
/*
* }
*/
// [JS] Can you describe how the cursor can be moved without the surrounding text
// also changing? Is that really something that can happen?
attribute SurroundingTextChangeEventHandler onsurroundingtextchange;
Confirm
716
edits

Navigation menu