-
Notifications
You must be signed in to change notification settings - Fork 23
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
Missing getClientRects method and other stuff #21
Comments
A lot of these are defined in https://github.com/purescript-web/purescript-web-html The DOM API applies to XML, SVG, etc. and the HTML API extends it. See the READMEs of the respective libraries for links to the relevant specs 🙂 |
I don't find the |
Ah yeah, some of them, like There are definitely things from your list that already exist elsewhere though, a random selection:
It's not uncommon for people to request things from the MDN listings, but we don't go from those listings - they cut across multiple specifications, and not everything listed is even specified - some of the properties and functions are experimental/deprecated/from obsolete proposals. The goal of the |
@garyb what are the steps to add Should it go here? https://github.com/purescript-web/purescript-web-cssom What's the "living standard?". MDN is not a standard, but it's an authority in the field though. btw i already left out the deprecated and obsolute items. |
I made my own purescript-web-geometry for
These packages are not fully tested yet - I'd like to get some kind of approval before spending more time on it. What's the process of getting these packages reviewed, added to |
@keijokapp you can ping myself and @garyb to review your library, and I can take care of transferring the library into |
This should also be done with the next round of breaking changes. |
I want to implement this code here https://stackoverflow.com/a/3028037/1833322
which has the line
For that i need
getClientRects
. This method is not available in the documentationhttps://pursuit.purescript.org/packages/purescript-web-dom/4.0.1/docs/Web.DOM.Element
I also saw a bunch of other properties, methods and event handlers that don't seem to be implemented
From: https://developer.mozilla.org/en-US/docs/Web/API/Element
properties
Element.computedName
Element.computedRole
Element.innerHTML
Element.outerHTML
Element.part
NonDocumentTypeChildNode.nextElementSibling
NonDocumentTypeChildNode.previousElementSibling
Element.shadowRoot
Element.slot
Element.undoManager
Element.undoScope
Slotable.assignedSlot
event handlers
Element.onfullscreenchange
Element.onfullscreenerror
methods
EventTarget.addEventListener()
Element.attachShadow()
Element.animate()
Element.closest()
Element.createShadowRoot()
Element.computedStyleMap()
EventTarget.dispatchEvent()
Element.getAnimations()
Element.getAttributeNames()
Element.getAttributeNS()
Element.getBoundingClientRect()
Element.getClientRects()
Element.hasAttributeNS()
Element.hasPointerCapture()
Element.insertAdjacentElement()
Element.insertAdjacentHTML()
Element.insertAdjacentText()
Element.matches()
Element.pseudo()
Element.querySelector()
Element.querySelectorAll()
Element.releasePointerCapture()
ChildNode.remove()
Element.removeAttributeNS()
Element.removeAttributeNode()
EventTarget.removeEventListener()
Element.requestFullscreen()
Element.requestPointerLock()
Element.scroll()
Element.scrollBy()
Element.scrollIntoView()
Element.scrollTo()
Element.setAttributeNS()
Element.setPointerCapture()
Element.toggleAttribute()
The text was updated successfully, but these errors were encountered: