|
|
|
|
|
by nadabu
4685 days ago
|
|
1) i can reliably assume HTML.find('#foo') is a node, and HTML.find('.foo') must use each(). These things get even easier as web components and shadow DOM become widely available. I'm aiming at the future here, not the past. 2) elements.each('readDom').each('writeDom', 'value') 3) HTML.find('li ul').each('parentNode.classList.add', 'has-children') |
|