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
https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore reads:
referenceNode The node before which newNode is inserted. If this is null, then newNode is inserted at the end of node's child nodes.
referenceNode
newNode
null
but Node.insertBefore requires a reference node to be provided.
Node.insertBefore
Possible workaround:
case referenceNode of Just r -> Node.insertBefore newNode r this Nothing -> Node.appendChild newNode this
The text was updated successfully, but these errors were encountered:
Yeah I think that workaround is preferable to matching the API exactly in this case, explicit is better than implicit.
Sorry, something went wrong.
No branches or pull requests
https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore reads:
but
Node.insertBefore
requires a reference node to be provided.Possible workaround:
The text was updated successfully, but these errors were encountered: