mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-06 17:40:57 +00:00
Add negative test case for loading atrribute
This commit is contained in:
parent
1f8f7f20c0
commit
f0ea59f3a2
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ func Test_Sanitizer(t *testing.T) {
|
||||||
|
|
||||||
// Images lazy loading
|
// Images lazy loading
|
||||||
`<img src="/image1" alt="image1" loading="lazy">`, `<img src="/image1" alt="image1" loading="lazy">`,
|
`<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 {
|
for i := 0; i < len(testCases); i += 2 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue