confluence
confluence copied to clipboard
document.execCommand is not a Firefox-specific API
It's claimed to be such by confluence, but it exists in all browsers and is needed for web compat.
And same thing for getElementsByName....
And probably most if not all of the queryCommand* bits.
The problem is that execCommand and getElementsByName is on HTMLDocument in Gecko, and on Document everywhere else. In other words, part of this mess: https://github.com/whatwg/dom/issues/221
This is the sort of thing that would be nice to be able to "annotate API bindings" with. Unfortunately, we don't have the resources to even roadmap that feature at this point :crying_cat_face:
@mdittmer, do you mean the ability to add comments to APIs, or some merging of prototypes in this case?