mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-06 15:15:47 +02:00
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:
parent
e148b154cd
commit
cde4f9a7ed
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user