dom
dom copied to clipboard
DOM Standard
### What problem are you trying to solve? Developers often need to limit the frequency with which event handlers are being executed, both to improve **performance** and for **behavioral reasons**....
### What problem are you trying to solve? It's quite common to want to bind to event listeners on global objects, or parent objects to take advantages of delegate event...
### What problem are you trying to solve? When we need to frequently read some values from DOM Element, the browser will perform reflow, which is a very large performance...
### What is the issue with the DOM Standard? There are a bunch of methods on [ChildNode](https://dom.spec.whatwg.org/#interface-childnode) and [ParentNode](https://dom.spec.whatwg.org/#interface-parentnode) that take a `(Node or DOMString)... nodes` argument. The specification text...
### What is the issue with the DOM Standard? Currently, to access the `class` attribute of an element in Javascript, you need to use `element.className` instead of just `element.class`. This...
This adds class as an alias for className to be more consistent and intuitive. This is now possible since 'class' is no longer a globally reserved word in Javascript. fixes...
### What problem are you trying to solve? While we have `ResizeObserver` which has been a great solution for a while now, I found one area where it's lacking; _non-pixel...
### What problem are you trying to solve? https://github.com/w3c/webdriver/issues/1903 There is no reason we don't support `getElementsByTagName(tag)` for `DocumentFragment`, as it already supports `querySelector`, `getElementById` etc. Right now this causes...
### What is the issue with the DOM Standard? Although it seems to happen in WebKit and Chromium anyway. https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E.%0A%3Cscript%3E%0Adoc%20%3D%20document.cloneNode(document)%3B%0Adoc.write(%27%3Cdiv%3E%3Ctemplate%20shadowrootmode%3Dopen%3Etest%3C%2Ftemplate%3E%3C%2Fdiv%3E%27)%3B%0Aw(doc.body.firstChild.shadowRoot)%3B%0A%3C%2Fscript%3E Given that we copy other state this should probably be...
### What problem are you trying to solve? https://github.com/whatwg/dom/issues/1038 proposes a method to create a promise that gets resolved once a given event is fired. For example (ignore the name,...