scala-js-dom
scala-js-dom copied to clipboard
Statically typed DOM API for Scala.js
[Navigator class](https://github.com/scala-js/scala-js-dom/blob/7d0508cac24b4f2657c3525797fe633feb4849bc/dom/src/main/scala/org/scalajs/dom/Navigator.scala#L19) is missing the api for webgpu as described in the specs [here](https://gpuweb.github.io/gpuweb/#navigator-gpu)
Currently, `DOMParser`'s `parseFromString` method returns a `Document` type when using MIME type `"text/xml"`. We should instead return an `XMLDocument`. It doesn't look like the `XMLDocument` type exists, so that should...
Improves and replaces https://github.com/scala-js/scala-js-dom/pull/741
Our current list is quite small: https://github.com/scala-js/scala-js-dom/blob/21d6badf500435b66f645e2114d9f623afc9415f/dom/src/main/scala-3/org/scalajs/dom/MIMEType.scala#L5-L15 For common MIME types I've found this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
It seems that the native interface is actually called [WritableStream](https://streams.spec.whatwg.org/#writablestream), however Scala trait name has an extra `e` character in it. I'm not familiar with this API, the trait is...
`Element#id` can return undefined, which can throw at times. Neither the spec, nor TypeScript prescribe anything. https://dom.spec.whatwg.org/#ref-for-dom-element-id%E2%91%A0 Is the current situation enough, or do we want to return a `UndefOr[String]`?
MediaQueryList has an `addListener` function that takes a non-implementable (js.native) `MediaQueryListListener` instance. Instead it should take `js.Function1[MediaQueryList, Any]` ```scala trait MediaQueryList extends js.Object { /** Adds a new listener to...
Just realized that I could not instantiate the PositionOptions.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale