w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
145 stars 52 forks source link

Specify the arguments of initCompositionEvent() #134

Open foolip opened 7 years ago

foolip commented 7 years ago

initCompositionEvent() is supported in Blink, EdgeHTML, Gecko and WebKit. Usage is very low but it's still not a good use of time trying to remove it from all engines.

Instead, specify it like this:

void initCompositionEvent(DOMString type,
                          optional boolean bubbles = false,
                          optional boolean cancelable = false,
                          optional Window? view = null,
                          optional DOMString data = "");

See also https://github.com/whatwg/dom/issues/387

foolip commented 7 years ago

@smaug----, do you have a plan for Gecko's locale member/argument? I didn't include it here.

smaug---- commented 7 years ago

Hmm, I don't now remember why we have .locale. @masayuki-nakano might.

foolip commented 7 years ago

@garykac, might you find time to work on this?

masayuki-nakano commented 7 years ago

I have no idea how to implement "locale" attribute for representing native events because it's difficult to map each OS's locale and locale attribute value. If we cannot standardize the mapping solidly in the spec, same IME's locale may be different between browsers and OSes.

garykac commented 7 years ago

Basically what @masayuki-nakano said.

We wanted to do locale, because we feel it would be useful, but we know that it will be a lot of work to specify it properly and we don't have the time to devote to it right now.

foolip commented 7 years ago

OK, for the purposes of this issue we can pretend that locale doesn't exist, just wanted to make sure omitting it wouldn't be a problem.