Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems DOM Element (in org.scalajs.dom.raw) misses the remove method.
Element
It can be replaced by e.parentNode.removeChild(e), but I think there is probably no reason not to add it.
e.parentNode.removeChild(e)
The text was updated successfully, but these errors were encountered:
Many more elementary DOM operations are missing (all of them very well supported in the browsers):
@js.native trait ElementExt extends HTMLElement { def remove(): Unit = js.native def before(nodes: Node*): Unit = js.native def after(nodes: Node*): Unit = js.native def replaceChildren(nodes: Node*): Unit = js.native def prepend(nodes: Node*): Unit = js.native def append(nodes: Node*): Unit = js.native }
Sorry, something went wrong.
@strelec would you mind opening a PR with those additions please? Would be much much appreciated!
Add remove and other missing Element methods
a423492
Fixes #447
Successfully merging a pull request may close this issue.
It seems DOM
Element
(in org.scalajs.dom.raw) misses the remove method.It can be replaced by
e.parentNode.removeChild(e)
, but I think there is probably no reason not to add it.The text was updated successfully, but these errors were encountered: