Skip to content

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.
@remcohaszing remcohaszing force-pushed the svg-get-element-by-id branch from c7af0ce to 8bfc2b3 Compare October 9, 2023 08:39
@HolgerJeromin
Copy link
Contributor

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
Collaborator

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

@Bashamega
Copy link
Contributor

Hello @saschanaz
I think since your PR was merged, we can close this pr

@remcohaszing remcohaszing deleted the svg-get-element-by-id branch April 2, 2025 06:20
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.

4 participants