Suppose elem is the article, elem.querySelector('h3, h4') return null, but elem.querySelectorAll('h3, h4') return array with that h4. Also, on native browser, elem.querySelector('h3, h4') return h4.
So I guess node-html-parser need to do same, just return the first element in array?
Suppose elem is the article,
elem.querySelector('h3, h4')
return null, butelem.querySelectorAll('h3, h4')
return array with that h4. Also, on native browser,elem.querySelector('h3, h4')
return h4.So I guess node-html-parser need to do same, just return the first element in array?