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
HTMLOrSVGElement does not extend Element #41529
Comments
This is correct; Element lacks some things that are in both HTMLElement and SVGElement |
Thank you for answer, @RyanCavanaugh! |
The interface describes the common properties between If you have |
@RyanCavanaugh I believe you are confused because playground link is incorrect example. With your example of |
I don't disagree, but the example provided attempts to assign an |
Yes, I am very sorry :) I have meant to show this: https://www.typescriptlang.org/play?ts=4.2.0-dev.20201112#code/DYUwLgBAhgXBASAVAsgGQPICcDKA1A4gKKgC2IAdmANwBQokARnMSGZbTQxALzRVA |
The current behaviour is correct, because interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
attribute DOMString nonce; // intentionally no [CEReactions]
[CEReactions] attribute boolean autofocus;
[CEReactions] attribute long tabIndex;
undefined focus(optional FocusOptions options = {});
undefined blur();
}; |
TypeScript Version: any
Expected behavior:
HTMLOrSVGElement extends Element
Actual behavior:
it does not
Playground Link: https://www.typescriptlang.org/play?ts=4.2.0-dev.20201112#code/DYUwLgBAhgXBASAVAsgGQPICcDKA1A4gKKgC2IAdmANwBQokARnMSGZbTQxALzRVA
The text was updated successfully, but these errors were encountered: