From f03e95dc5c96b9ac5c9d694036b95eb7f8540bef Mon Sep 17 00:00:00 2001 From: lrdj Date: Thu, 28 May 2026 23:05:14 +0100 Subject: [PATCH] use semantic landmarks for the comments widget and compose form client.ts: wrap injected iframe in `); +const container = script.nextElementSibling as HTMLElement; script.parentElement!.removeChild(script); // adjust the iframe's height when the height of it's content changes diff --git a/src/new-comment-component.ts b/src/new-comment-component.ts index daae9130..a010d4fc 100644 --- a/src/new-comment-component.ts +++ b/src/new-comment-component.ts @@ -30,7 +30,8 @@ export class NewCommentComponent { private user: User | null, private readonly submit: (markdown: string) => Promise ) { - this.element = document.createElement('article'); + this.element = document.createElement('section'); + this.element.setAttribute('aria-label', 'Write a comment'); this.element.classList.add('timeline-comment'); this.element.innerHTML = `