mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
[Annotation] Add an aria role comment for FreeText annotations
This commit is contained in:
parent
6b4c2464ad
commit
2916910ea1
1 changed files with 1 additions and 0 deletions
|
@ -1944,6 +1944,7 @@ class FreeTextAnnotationElement extends AnnotationElement {
|
||||||
if (this.textContent) {
|
if (this.textContent) {
|
||||||
const content = document.createElement("div");
|
const content = document.createElement("div");
|
||||||
content.className = "annotationTextContent";
|
content.className = "annotationTextContent";
|
||||||
|
content.setAttribute("role", "comment");
|
||||||
for (const line of this.textContent) {
|
for (const line of this.textContent) {
|
||||||
const lineSpan = document.createElement("span");
|
const lineSpan = document.createElement("span");
|
||||||
lineSpan.textContent = line;
|
lineSpan.textContent = line;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue