Right now I'm using BeautifulSoup to find all the scripts and replace them with their contents but it would be good to achieve that without re-serializing all the HTML.
(note this doesn't really affect my own goal of researching DOM APIs, but will be useful for those interested in HTML)
Right now I'm using BeautifulSoup to find all the scripts and replace them with their contents but it would be good to achieve that without re-serializing all the HTML.
(note this doesn't really affect my own goal of researching DOM APIs, but will be useful for those interested in HTML)