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

Override SVGSVGElement method getElementById #1634

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

remcohaszing
Copy link

This method may return null, but not according to the current type definitions.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

This method may return null, but not according to the current type
definitions.
@HolgerJeromin
Copy link

HolgerJeromin commented Oct 9, 2023

Perhaps on this svg level this could/should return SVGElement | null because <foreignObject> should be rare enough.

@remcohaszing
Copy link
Author

I don’t think it’s a good idea to use anything other than Element | null, because that would be technically incorrect. I also doubt this would bring any benefits.

@saschanaz
Copy link
Contributor

This is a spec issue, I just filed one. Thanks! w3c/svgwg#923

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

Successfully merging this pull request may close these issues.

None yet

3 participants