Merge pull request #21545 from Snuffleupagus/TextLayer-setAttribute-id-string

Don't needlessly wrap the marked content `id`-attribute in a string
This commit is contained in:
Tim van der Meij 2026-07-05 19:19:09 +02:00 committed by GitHub
commit d008aba0b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -303,7 +303,7 @@ class TextLayer {
this.#container = document.createElement("span");
this.#container.classList.add("markedContent");
if (item.id) {
this.#container.setAttribute("id", `${item.id}`);
this.#container.setAttribute("id", item.id);
}
if (item.tag === "Artifact") {
this.#container.ariaHidden = true;