Skip to content
Advertisement

Tag: jsdom

Finding position of dom node in the document source

Context I’m building a set of ‘extractor’ functions whose purpose is to extract what looks like components from a page (using jsdom and nodejs). The final result should be these ‘component’ objects ordered by where they originally appeared in the page. Problem The last part of this process is a bit problematic. As far as I can see, there’s no

Advertisement