lychee/fixtures
Paweł Romanowski cd00fa643e
Fix HTML parsing for non-closed elements like <link> (#92)
* Fix HTML parsing for non-closed elements like <link>

The XML parser we use requires all tags to be closed by default,
and if they aren't (like HTML5 <link> elements), it simply gives up
on further parsing.  This change makes it ignore such issues.

Also uncover a bug with the current parser (it simply won't parse
elements like `<script defer src="..."></script>`) -- e.g. elements
with no attribute values.

The XML parser is an XML parser and will have to be replaced with
HTML aware parser in the future.

* Add check for empty elements

* Update extract.rs

Co-authored-by: Matthias <matthias-endler@gmx.net>
2021-01-03 17:32:13 +01:00
..
TEST.html feat: Support relative URLs (#15) 2020-10-21 01:31:06 +02:00
TEST.md Add (machine-readable) output file support (fixes #53) 2020-12-14 01:15:14 +01:00
TEST_ALL_PRIVATE.md feat: Support relative URLs (#15) 2020-10-21 01:31:06 +02:00
TEST_GITHUB.md Make GITHUB_TOKEN optional (#22) 2020-10-26 23:31:31 +01:00
TEST_GITHUB_404.md Make GITHUB_TOKEN optional (#22) 2020-10-26 23:31:31 +01:00
TEST_HTML5.html Fix HTML parsing for non-closed elements like <link> (#92) 2021-01-03 17:32:13 +01:00