prettydiff/getNodesByType
View on GitHub ↗ ★ 19 JavaScript
a custom DOM method to get nodes by node type
4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2017-10-24 · latest 2019-01-14
20082026
-
https://github.com/prettydiff/getNodesByType
comment by austincheney · 2019-01-14 · in Ask HN: What's the most important piece of code you've written? -
…as a node type you break this functionality. You can use this little utility I wrote as a proof: https://github.com/prettydiff/getNodesByType/blob/master/get... Browser vendors are extremely shy about adopting new technology that makes for…
comment by austincheney · 2017-12-14 · in HTML 5.2 Recommendation -
…1. First go get and run this code, which allows immediate gathering of all text nodes from the DOM: https://github.com/prettydiff/getNodesByType/blob/master/get... 2. Extract the text content from the text nodes and ignore nodes that…
comment by austincheney · 2017-11-14 · in Ask HN: What are best tools for web scraping? -
…1. First go get and run this code, which allows immediate gathering of all text nodes from the DOM: https://github.com/prettydiff/getNodesByType/blob/master/get... 2. Extract the text content from the text nodes and ignore nodes that…
comment by austincheney · 2017-10-24 · in Introduction to web scraping with Python