Andrea Giammarchi
Andrea Giammarchi
> Neither are the same as a single method name requiring a single argument that does everything for you without any custom logic how is my 20 LOC polyfill inferior...
The method takes a single argument as input, is a borrowed method, you can attach it to a prototype and be done with it? All I’m saying is that this...
> they do require extensive boilerplate is that true though? ```js function* getNodesByType(node, nodeType) { const iterator = document.createTreeWalker(node, nodeType); while (node = iterator.nextNode()) yield node; } ``` You can...
@prettydiff I am not sure I understand your "*solution*" though ... > your example still requires a working knowledge of TreeWalker's internal API make it a module? > your use...
Live collections are discouraged these days though, so getElementsByClassName is a bad example, as querySelectorAll is what modern code should use, but GitHub doesn’t tell you how deprecated are those...
why wouldn't a `` within a declared Shadow DOM implicitly be used/adopted as style for such Shadow DOM?
@emilio like I've said, it's an implementation detail, the only concern for vendors is to *not* dispatch mutation events, or custom elements callbacks, if the `parentNode` during the process, is...
@emilio if needed, I've just created from scratch [a diffing algorithm that fits in less than 100 LOC](https://github.com/WebReflection/udomdiff/blob/master/esm/index.js) and it could be spec'd too. The `get` function, in specs case,...
@annevk apparently [the entirety of the Web](https://rawgit.com/krausest/js-framework-benchmark/master/webdriver-ts-results/table.html) uses home made code to diff nodes in lists or any sort of layout. This would be like the most welcome helper of...
@annevk you are right, I've answered something else ... the thing with listeners is that Custom Elements / components might do expensive operations in the `disconnectedCallback` or `connectedCallback`, and there's...