James-LG / Skyscraper

Rust library for scraping HTML using XPath expressions
MIT License
30 stars 3 forks source link

Site has custom !DOCTYPE #32

Closed DioxusGrow closed 3 weeks ago

DioxusGrow commented 3 weeks ago

How to fix Err` value: MissingTagCloseAfterDoctype?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" >

</html>
James-LG commented 3 weeks ago

Hi, looks like this is actually a supported declaration used by older documents, so I will fix this.

https://www.w3schools.com/tags/tag_doctype.asp

James-LG commented 3 weeks ago

Fixed in v0.6.4