Don't needlessly wrap the marked content id-attribute in a string

When the marked content `id` is defined it'll always be a string, hence wrapping it in a string when setting the attribute is pointless; note e148b154cd/src/core/evaluator.js (L3529-L3531)
This commit is contained in:
Jonas Jenwald 2026-07-05 18:20:19 +02:00
parent e148b154cd
commit cde4f9a7ed

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;