Skip to content

Add DOMParser #237

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

Merged
merged 1 commit into from
Jul 24, 2016
Merged

Add DOMParser #237

merged 1 commit into from
Jul 24, 2016

Conversation

soc
Copy link
Contributor

@soc soc commented Jul 24, 2016

No description provided.

*
* MDN
*/
def parseFromString(string: String, supportedType: SupportedType): Document | HTMLDocument = js.native
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since HTMLDocument extends Document, the union type in the result type is not helping. It's better to just have Document, if you're not going to use phantom types to refine it.

@sjrd
Copy link
Member

sjrd commented Jul 24, 2016

That's all.

@soc
Copy link
Contributor Author

soc commented Jul 24, 2016

Done!

@sjrd
Copy link
Member

sjrd commented Jul 24, 2016

LGTM

@sjrd sjrd merged commit 4188364 into scala-js:master Jul 24, 2016
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.

2 participants