From 26329413bf1a66dca75838f23895af8fe0982a54 Mon Sep 17 00:00:00 2001 From: Dmitry Kuzin Date: Tue, 31 Oct 2023 13:38:49 +0400 Subject: [PATCH] Return "for" attribute in markup snapshots --- tests/markup/helper.ts | 1 - tests/markup/snapshots/file-2-png.snap.html | 2 +- tests/markup/snapshots/file-2-zip-png-file-navigator.snap.html | 2 +- tests/markup/snapshots/file-2-zip-png-ro.snap.html | 2 +- tests/markup/snapshots/file-2-zip-png.snap.html | 2 +- tests/markup/snapshots/file-2-zip.snap.html | 2 +- tests/markup/snapshots/file-2.snap.html | 2 +- tests/markup/snapshots/file-camera.snap.html | 2 +- tests/markup/snapshots/file-image-size.snap.html | 2 +- tests/markup/snapshots/file-mob2-png.snap.html | 2 +- tests/markup/snapshots/file-mob2-zip-png-ro.snap.html | 2 +- tests/markup/snapshots/file-mob2-zip-png.snap.html | 2 +- tests/markup/snapshots/file-mob2-zip.snap.html | 2 +- tests/markup/snapshots/file-mob2.snap.html | 2 +- tests/markup/snapshots/file-mode-both.snap.html | 2 +- tests/markup/snapshots/file-mode-camera.snap.html | 2 +- tests/markup/snapshots/file-modern-png.snap.html | 2 +- tests/markup/snapshots/file-modern-zip-png.snap.html | 2 +- tests/markup/snapshots/file-modern-zip.snap.html | 2 +- tests/markup/snapshots/file-modern.snap.html | 2 +- tests/markup/snapshots/file-png.snap.html | 2 +- tests/markup/snapshots/file-zip-png.snap.html | 2 +- tests/markup/snapshots/file-zip.snap.html | 2 +- tests/markup/snapshots/file.snap.html | 2 +- 24 files changed, 23 insertions(+), 24 deletions(-) diff --git a/tests/markup/helper.ts b/tests/markup/helper.ts index 7af12d727a..46a33dd90d 100644 --- a/tests/markup/helper.ts +++ b/tests/markup/helper.ts @@ -296,7 +296,6 @@ function clearAttributes(el: Element, removeIds = false) { el.removeAttribute("id"); } //el.removeAttribute("aria-describedby"); - el.removeAttribute("for"); //if(el.getAttribute("list")) el.removeAttribute("list"); el.removeAttribute("fragment"); if(el.getAttribute("style") === "") { diff --git a/tests/markup/snapshots/file-2-png.snap.html b/tests/markup/snapshots/file-2-png.snap.html index e1bf92c957..7021d7af3b 100644 --- a/tests/markup/snapshots/file-2-png.snap.html +++ b/tests/markup/snapshots/file-2-png.snap.html @@ -9,7 +9,7 @@
-