-
Notifications
You must be signed in to change notification settings - Fork 162
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
Use XMLDocument
type when parsing XML string in DOMParser
#771
Comments
XMLDocument
type when parsing XML string in DOMParser
Hmm, I just took a proper look at this and I'm not sure if we can make an improvement here. We should definitely add However, it is difficult to refine the return type of In the future if we dropped support for Scala 2 (or split sources across Scala 2/3) we could possibly do something interesting with literal types. That is tracked in this issue: |
Is |
For example see: |
Currently,
DOMParser
'sparseFromString
method returns aDocument
type when using MIME type"text/xml"
. We should instead return anXMLDocument
. It doesn't look like theXMLDocument
type exists, so that should be created as well.The text was updated successfully, but these errors were encountered: