diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-09-27 16:15:26 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-03 14:16:24 +0200 |
| commit | 30cabfd215f374b855f6d6473b00a55c3511c3e2 (patch) | |
| tree | a0808301f08cc30635f2db5d733cc5d2aee50b3c /src/test/rustdoc-ui | |
| parent | b2321bb8da18c753fe3b9b71937a368ae42b8c4b (diff) | |
| download | rust-30cabfd215f374b855f6d6473b00a55c3511c3e2.tar.gz rust-30cabfd215f374b855f6d6473b00a55c3511c3e2.zip | |
Don't warn if the tag is nested inside a <script> or inside a <style>
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/invalid-html-tags.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/invalid-html-tags.rs b/src/test/rustdoc-ui/invalid-html-tags.rs index 51bbae2a0b6..0dc2002bd39 100644 --- a/src/test/rustdoc-ui/invalid-html-tags.rs +++ b/src/test/rustdoc-ui/invalid-html-tags.rs @@ -39,3 +39,25 @@ pub fn b() {} /// <h3> //~^ ERROR unclosed HTML tag `h3` pub fn c() {} + +// Unclosed tags shouldn't warn if they are nested inside a <script> elem. +/// <script> +/// <h3><div> +/// </script> +/// <script> +/// <div> +/// <p> +/// </div> +/// </script> +pub fn d() {} + +// Unclosed tags shouldn't warn if they are nested inside a <style> elem. +/// <style> +/// <h3><div> +/// </style> +/// <style> +/// <div> +/// <p> +/// </div> +/// </style> +pub fn e() {} |
