Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Document.execCommand #43

Closed
vegegoku opened this issue Mar 26, 2018 · 2 comments
Closed

Missing Document.execCommand #43

vegegoku opened this issue Mar 26, 2018 · 2 comments

Comments

@vegegoku
Copy link
Contributor

vegegoku commented Mar 26, 2018

Elemental2 version : 1.0.0-RC1
The document object provided by DomGloabl does not have the execCommand function property
as a workaround i extended the HTMLDocument type and added the function and it worked out

@jstype(isNative = true, namespace = JsPackage.GLOBAL)
public class MyDocument extends HTMLDocument {
public native boolean execCommand(String aCommandName, boolean aShowDefaultUI, String aValueArgument);
}

the function seems to exist for gecko_dom extern in closure compiler
https://github.com/google/closure-compiler/blob/41a4dcce5ec80df173e3b5f22f93eabb6ee525a3/externs/browser/gecko_dom.js#L497

other links
https://www.w3.org/TR/clipboard-apis/

https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand

vegegoku added a commit to vegegoku/closure-compiler that referenced this issue Mar 26, 2018
@jDramaix
Copy link
Member

I'll cleanup the extern files very soon and move standardized api to the related w3c_xyz.js files

@jDramaix
Copy link
Member

This will be fixed when #86 is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants