mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-04 09:25:22 +02:00
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8246
closes #8076
(cherry picked from commit 7ab27a7a7f
)
Co-authored-by: Bente Groh <mail@bentegroh.de>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8283
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
parent
ca07340093
commit
a4f6c07306
10 changed files with 67 additions and 59 deletions
|
@ -75,6 +75,10 @@ func Test_Sanitizer(t *testing.T) {
|
|||
// Emoji
|
||||
`<span class="emoji" aria-label="thumbs up" data-alias="+1">THUMBS UP</span>`, `<span class="emoji" aria-label="thumbs up" data-alias="+1">THUMBS UP</span>`,
|
||||
`<span class="emoji" aria-label="thumbs up" data-alias="(+!)">THUMBS UP</span>`, `<span class="emoji" aria-label="thumbs up">THUMBS UP</span>`,
|
||||
|
||||
// Images lazy loading
|
||||
`<img src="/image1" alt="image1" loading="lazy">`, `<img src="/image1" alt="image1" loading="lazy">`,
|
||||
`<img src="/image1" alt="image1" loading="eager">`, `<img src="/image1" alt="image1">`,
|
||||
}
|
||||
|
||||
for i := 0; i < len(testCases); i += 2 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue