lychee/fixtures
Matthias Endler 55797071b0
Fix nested URL extraction in verbatim elements (#988)
Skipping URLs in verbatim elements didn't take nested
elements into consideration, which were not verbatim.

For instance, the following HTML snippet would yield
`https://example.com` in non-verbatim mode, even if
it is nested inside a verbatim `<pre>` element:

```html
<pre><a href="https://example.com">link</a></pre>
```

This commit fixes the behavior for both `html5gum` and
`html5ever`.

Note that nested verbatim elements of the same kind
still are not handled correctly.

For instance,  the following HTML snippet would still yield
`https://example.com`:

```html
<pre>
  <pre></pre>
  <a href="https://example.com">link</a>
</pre>
```

The reason is that we currently only keep track of a single
verbatim element and not a stack of elements, which we
would need to unwind and resolve the situation.

Fixes https://github.com/lycheeverse/lychee/issues/986.
2023-03-11 15:18:25 +01:00
..
bench Extract more status information from reqwest (#577) 2022-04-02 14:37:03 +02:00
cache Fix deserialize of lycheecache status codes (#685) 2022-07-15 22:45:24 +02:00
cache_accept_custom_status_codes Put lycheecache tests into separate subfolders to avoid race 2023-03-03 12:13:09 +01:00
configs Ignore config smoketest output report file 2023-03-03 12:13:09 +01:00
exclude-path Add support for excluding paths from link checking (#623) 2022-05-29 17:27:09 +02:00
ignore Add support for comments in .lycheeignore (#616) 2022-05-13 18:51:58 +02:00
offline Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST.html Add new SVG-based screencast (#693) 2022-08-10 17:35:50 +02:00
TEST.md Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_ALL_PRIVATE.md feat: Support relative URLs (#15) 2020-10-21 01:31:06 +02:00
TEST_CODE_BLOCKS.md Implement excluding code blocks (#523) 2022-03-26 10:42:56 +01:00
TEST_DATA_URIS.html Add different verbosity levels (#824) 2022-11-28 23:25:33 +01:00
TEST_DUMP_EXCLUDE.txt Also dump excluded links (#615) 2022-05-13 18:53:16 +02:00
TEST_EMAIL.md Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_EMAIL_QUERY_PARAMS.html Fix parsing error of email addresses with query params (#809) 2022-11-05 23:40:33 +01:00
TEST_EMAIL_QUERY_PARAMS.md Fix parsing error of email addresses with query params (#809) 2022-11-05 23:40:33 +01:00
TEST_EXAMPLE_DOMAINS.md Don't check example mail addresses by default (#815) 2022-11-08 23:46:32 +01:00
TEST_EXCLUDE_1.txt Added support for --exclude-file. 2021-09-03 16:29:57 +02:00
TEST_EXCLUDE_2.txt Added support for --exclude-file. 2021-09-03 16:29:57 +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 Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_CUSTOM_ELEMENTS.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_LOWERCASE_DOCTYPE.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_MALFORMED_LINKS.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_MINIFIED.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTTP.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_REPETITION_1.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_REPETITION_2.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_SCHEMES.md Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_SCHEMES.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_VERBATIM.html Fix nested URL extraction in verbatim elements (#988) 2023-03-11 15:18:25 +01:00