{"version":"https://jsonfeed.org/version/1","title":"Aaron Gustafson: Content tagged ARIA","description":"The latest 20 posts and links tagged ARIA.","home_page_url":"https://www.aaron-gustafson.com","feed_url":"https://www.aaron-gustafson.com/feeds/aria.json","author":{"name":"Aaron Gustafson","url":"https://www.aaron-gustafson.com"},"icon":"https://www.aaron-gustafson.com/i/og-logo.png","favicon":"https://www.aaron-gustafson.com/favicon.png","expired":false,"items":[{"id":"https://www.aaron-gustafson.com/notebook/links/aria-live-timing/","title":"🔗 ARIA live timing","summary":"<p>Russ Weakley separates the browser’s delivery of live-region updates from a screen reader’s speech queue, helping explain why announcement timing varies.</p>","content_html":"<p>Worth keeping handy the next time a live-region announcement seems to arrive on its own timeline. Russ Weakley walks through two different parts of the journey: the browser exposing an update to assistive technology and the screen reader deciding when to speak it.</p>\n","social_text":"Updating a live region and hearing its contents aren’t the same event. Russ Weakley digs into what happens between the two.","url":"https://www.aaron-gustafson.com/notebook/links/aria-live-timing/","external_url":"https://www.maxdesign.com.au/articles/aria-live-timing.html","tags":["accessibility","ARIA","JavaScript"],"_social":{"title":"ARIA live timing","description":"Russ Weakley separates the browser’s delivery of live-region updates from a screen reader’s speech queue, helping explain why announcement timing varies.","image":"https://www.aaron-gustafson.com/i/share-cards/page-272e26c99bee0c91.jpg","image_alt":"A share card with a crocheted doll of Aaron Gustafson and the title “ARIA live timing”."},"date_published":"2026-10-29T20:03:21Z"},{"id":"https://www.aaron-gustafson.com/notebook/webmcp-should-prioritize-people-over-agents/","title":"✍🏻 WebMCP Should Prioritize People over Agents","excerpt":"<p>Apple’s WebKit team recently <a href=\"https://github.com/WebKit/standards-positions/issues/670#issuecomment-4608432694\">opposed the WebMCP proposal</a>, arguing that it creates a separate semantic layer for agents when we should instead improve the shared layers people, assistive technology, and agents already use. <a href=\"https://cloudfour.com/thinks/improvements-to-web-for-ai-should-benefit-all-users/\">Jason Grigsby’s post</a> led me to Apple’s comment, and I share the concerns raised in both. In fact, I’d made a similar case over email back in April, when I first learned about <a href=\"https://developer.chrome.com/docs/ai/webmcp\">WebMCP</a>.</p>","summary":"<p>Apple’s WebKit team recently <a href=\"https://github.com/WebKit/standards-positions/issues/670#issuecomment-4608432694\">opposed the WebMCP proposal</a>, arguing that it creates a separate semantic layer for agents when we should instead improve the shared layers people, assistive technology, and agents already use. <a href=\"https://cloudfour.com/thinks/improvements-to-web-for-ai-should-benefit-all-users/\">Jason Grigsby’s post</a> led me to Apple’s comment, and I share the concerns raised in both. In fact, I’d made a similar case over email back in April, when I first learned about <a href=\"https://developer.chrome.com/docs/ai/webmcp\">WebMCP</a>.</p>","content_html":"<p>Apple’s WebKit team recently <a href=\"https://github.com/WebKit/standards-positions/issues/670#issuecomment-4608432694\">opposed the WebMCP proposal</a>, arguing that it creates a separate semantic layer for agents when we should instead improve the shared layers people, assistive technology, and agents already use. <a href=\"https://cloudfour.com/thinks/improvements-to-web-for-ai-should-benefit-all-users/\">Jason Grigsby’s post</a> led me to Apple’s comment, and I share the concerns raised in both. In fact, I’d made a similar case over email back in April, when I first learned about <a href=\"https://developer.chrome.com/docs/ai/webmcp\">WebMCP</a>.</p>\n<p>Apple’s WebKit team put the heart of the issue plainly:</p>\n<blockquote cite=\"https://github.com/WebKit/standards-positions/issues/670#issuecomment-4608432694\">\n<p>Although browser-integrated agents could struggle to act on interfaces built for humans, we do not think a parallel agent-facing tool layer is the right solution. When a site’s actions are hard for an agent to use, that is a gap in the page’s own semantics, and the fix, in our opinion, is to close it in the platform’s shared layers (HTML and ARIA), where the user, assistive technology, and agents all benefit.</p>\n</blockquote>\n<p>That echoes what I proposed in April. Many of the declarative attributes being discussed for WebMCP duplicate info that’s already available in the markup. I suggested letting a developer opt a form in, then having the browser gather its labels, descriptions, and other details from what’s already there.</p>\n<p>Browsers already derive a great deal of useful info from a well-built interface: labels, descriptions, relationships, states, and more. If we’ve done the work to make a form understandable and operable for people—including people using assistive technology—exposing that form to an agent should build on that work, not require us to encode the same info a second time for a “new” audience. What happened to <a href=\"https://en.wikipedia.org/wiki/Don't_repeat_yourself\">the DRY principle</a>?</p>\n<p>What I’d like to see us do is…</p>\n<ol>\n<li>Write the labels, descriptions, and other semantics for the people using the interface.</li>\n<li>Let the browser draw from that existing info by default when exposing the UI to an agent.</li>\n<li>If the agent genuinely needs more specificity, provide a narrowly scoped, agent-specific override.</li>\n</ol>\n<p>That last bit matters because a label or description written for a person might not give an agent enough info to interact reliably. An override should be an option of last resort, but there needs to be a path for supplying agent-specific instructions when the human-facing ones don’t suffice. It should be an <em>enhancement</em>, though, not a requirement.</p>\n<p>Building on existing semantics would place less of a burden on authors and reinforce accessibility best practices. It would also reduce the likelihood that a control ends up with one description for people and another for agents—and that the two fall out of sync. The risk here is that a parallel semantic layer would lead some developers to lavish attention on agents while neglecting the people who also need to use their sites.</p>\n<p>We should push incentives in the other direction: Writing accessible HTML should light up as much agentic functionality as possible. That would reinforce accessible authoring rather than undermine it.</p>\n<p>There are broader opportunities here, too. I’m particularly interested in how agent capabilities could connect to web app technologies such as <a href=\"https://www.w3.org/TR/appmanifest/#shortcuts-member\">shortcuts</a> and <a href=\"https://w3c.github.io/web-share-target/\">share targets</a>. I’m also curious about the role <a href=\"https://github.com/webmachinelearning/webmcp/blob/main/docs/service-workers.md\">Service Workers</a> might play in this new era.</p>\n<p>Those opportunities come with broader risks, of course. WebKit is right to call out the importance of consent, security, and human oversight when agents can invoke tools that act within authenticated sessions—especially in the background, with no open tab and no person present. These web platform technologies may prove useful for agents, but we’ll need to approach them carefully.</p>\n<p>In his post, Jason connects WebKit’s position to the <a href=\"https://www.w3.org/TR/design-principles/#priority-of-constituencies\">W3C’s Priority of Constituencies</a>, which is the right way to frame this. <a href=\"https://cloudfour.com/thinks/improvements-to-web-for-ai-should-benefit-all-users/\">His discussion</a> is worth reading in full. Wherever agents eventually fit into that order, they shouldn’t leapfrog the people on whose behalf they’re meant to act.</p>\n","social_text":"If we improve the web for AI agents, we should begin with the semantics authors already provide for people—not create a parallel layer that can leave them behind.","url":"https://www.aaron-gustafson.com/notebook/webmcp-should-prioritize-people-over-agents/","tags":["accessibility","AI/ML","web standards","ARIA"],"image":"https://www.aaron-gustafson.com/i/share-cards/webmcp-should-prioritize-people-over-agents.jpg","_social":{"title":"WebMCP Should Prioritize People over Agents","description":"Apple’s WebKit team opposed a separate semantic layer for AI agents, echoing concerns I’d raised when I first learned about WebMCP.","image":"https://www.aaron-gustafson.com/i/share-cards/webmcp-should-prioritize-people-over-agents.jpg","image_alt":"A share card with a crocheted doll of Aaron Gustafson and the title “WebMCP Should Prioritize People over Agents”."},"date_published":"2026-10-09T16:44:38Z"},{"id":"https://www.aaron-gustafson.com/notebook/tabbed-interface-the-web-component/","title":"✍🏻 Tabbed Interface: The Web Component","excerpt":"<p>I keep coming back to tabbed interfaces.</p>","summary":"<p>I keep coming back to tabbed interfaces.</p>","content_html":"<p>I keep coming back to tabbed interfaces.</p>\n<p>Back in 2007, I built <a href=\"https://easy-designs.github.io/TabInterface.js/\"><code>TabInterface.js</code></a>. It used the document outline—a heading followed by some content, then another heading and more content—and turned those implicit sections into tabs. The only markup required was a single wrapper.</p>\n<p>I shared that work in my “Fundamental Progressive Enhancement” talk at Web Builder 2.0 in 2008, then wrote it up in a two-part article for <cite>NET Magazine</cite> in 2009 (<a href=\"https://www.aaron-gustafson.com/docs/create-a-tabbed-interface-part-1.pdf\">Part 1</a> and <a href=\"https://www.aaron-gustafson.com/docs/create-a-tabbed-interface-part-2.pdf\">Part 2</a>). When responsive design became a thing, I started recommending another step: only make the tabs when they fit; leave the content alone when the tabs wouldn’t.</p>\n<p>Nearly two decades on, I’ve built the idea yet again. <a href=\"https://github.com/aarongustafson/tabbed-interface\"><code>&lt;tabbed-interface&gt;</code></a> is the latest incarnation—as a custom element.</p>\n<h2 id=\"something-old%2C-something-new\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#something-old%2C-something-new\" aria-hidden=\"true\">#</a> Something old, something new</h2>\n<p>The markup requirement looks a lot like it did back in 2007; the only difference is that the <code>&lt;div&gt;</code> wrapper is now a <code>&lt;tabbed-interface&gt;</code> element:</p>\n<pre class=\"language-html\" tabindex=\"0\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>tabbed-interface</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h2</span> <span class=\"token attr-name\">id</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>overview<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>Overview<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h2</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>A summary of the service.<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span>\n\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h2</span> <span class=\"token attr-name\">id</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>requirements<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>Requirements<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h2</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>What you need before getting started.<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span>\n\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h2</span> <span class=\"token attr-name\">id</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>support<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>Support<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h2</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>Where to go when things get weird.<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>tabbed-interface</span><span class=\"token punctuation\">></span></span></code></pre>\n<p>As you can see, it’s still several implicit sections in a sensible reading order. The headings give each section a name, the <code>id</code> attributes provide link targets, and the content is available even if JavaScript fails or hasn’t loaded yet.</p>\n<p>When the component boots, it uses those headings to create the tab controls. The headings, paragraphs, form controls, and any other elements contained within remain in the light DOM. The component assigns them to slots, retaining their connections to other elements, events, and such—like you (as the author) intended.</p>\n<p>The component generates the necessary controls and wires everything up. Buttons with <code>role=&quot;tab&quot;</code> sit in a <code>role=&quot;tablist&quot;</code>, each button points to a <code>div[role=&quot;tabpanel&quot;]</code>, and <code>aria-selected</code> indicates which one is active. Arrow keys move focus among the tabs; <kbd>Home</kbd> and <kbd>End</kbd> jump to either end. All as you’d expect.</p>\n<p>By default, moving focus between the tabs doesn’t activate the associated panel. <kbd>Enter</kbd> and <kbd>Space</kbd> do that. You can override that default by adding the <code>auto-activate</code> attribute. With that attribute, moving focus changes the visible panel:</p>\n<pre class=\"language-html\" tabindex=\"0\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>tabbed-interface</span> <span class=\"token attr-name\">auto-activate</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token comment\">&lt;!-- headings and content --></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>tabbed-interface</span><span class=\"token punctuation\">></span></span></code></pre>\n<p>Neither choice is inherently better; they’re just options. If changing panels takes noticeable time—or simply causes a lot of visual commotion—I’d stick with manual activation.</p>\n<h2 id=\"anchors-aweigh!\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#anchors-aweigh!\" aria-hidden=\"true\">#</a> Anchors aweigh!</h2>\n<p>In 2026, adding <code>id</code> attributes to headings has become quite commonplace because they provide direct access to portions of the page through fragment identifiers. They also make super-stable targets for tabbed interfaces. One way I’ve leveraged them in this component is to set which tabpanel activates by default (if you don’t want it to be the first one):</p>\n<pre class=\"language-html\" tabindex=\"0\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>tabbed-interface</span> <span class=\"token attr-name\">default-tab</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>requirements<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h2</span> <span class=\"token attr-name\">id</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>overview<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>Overview<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h2</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>...<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span>\n\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h2</span> <span class=\"token attr-name\">id</span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=</span><span class=\"token punctuation\">\"</span>requirements<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>Requirements<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h2</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>p</span><span class=\"token punctuation\">></span></span>...<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>p</span><span class=\"token punctuation\">></span></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>tabbed-interface</span><span class=\"token punctuation\">></span></span></code></pre>\n<p>Here, the component opens “Requirements” initially. I’ve also enabled a tabpanel to be activated through the fragment identifier itself—a link to <code>#requirements</code> will activate that section when tabs are present; without tabs, the browser scrolls to the same heading as you’d expect.</p>\n<p>This is a perfect example of carrying forward the intent of a tool like a fragment identifier into an alternate display widget.</p>\n<h2 id=\"no-squeezing%2C-no-scrolling\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#no-squeezing%2C-no-scrolling\" aria-hidden=\"true\">#</a> No squeezing, no scrolling</h2>\n<p>My early responsive versions estimated whether tabs would fit based on the viewport width and character length, but that’s not reliable. A media query can only tell us so much and it can’t say how long a translated label will become, whether a web font has arrived, or how much room the component’s actual container provided. Container queries can help with that last bit, but only so much.</p>\n<p>In this latest incarnation, I’m measuring the fully styled tablist instead. The component builds a hidden measurement copy, applies the currently selected state, and checks whether the list can fit on one row inside the component. A <code>ResizeObserver</code> checks again when the container changes. Font loading, label changes, padding, borders, gaps, and custom styles all feed into the component’s measurement too.</p>\n<p>If the row fits, the component renders tabs. If it doesn’t, the content is displayed in a linear fashion instead. It helpfully records the display mode as either <code>data-layout=&quot;tabs&quot;</code> or <code>data-layout=&quot;linear&quot;</code>, should you need a layout-specific style.</p>\n<p>There’s no breakpoint to keep in sync with the component. You can resize the browser, adjust the font size, and rotate your device all you want—you’ll never be stuck with a bad layout. The script measures over and over, choosing between the two presentations as the available space changes.</p>\n<h3 id=\"if-you%E2%80%99re-dead-set-on-tabs%E2%80%A6\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#if-you%E2%80%99re-dead-set-on-tabs%E2%80%A6\" aria-hidden=\"true\">#</a> If you’re dead-set on tabs…</h3>\n<p>Just because I think it’s a good idea to toggle between the tabbed presentation and the linear one doesn’t mean you feel likewise. We don’t have to agree. You can opt out using the <code>fixed-tabs</code> attribute:</p>\n<pre class=\"language-html\" tabindex=\"0\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>tabbed-interface</span> <span class=\"token attr-name\">fixed-tabs</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token comment\">&lt;!-- headings and content --></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>tabbed-interface</span><span class=\"token punctuation\">></span></span></code></pre>\n<p><code>fixed-tabs</code> ensures tabs are always shown, whether they fit or not. If you decide to go this way, however, you’re assuming responsibility for making the tabs work at whatever dimensions someone happens to view your site. Be prepared to handle overflow—you own it. Side-scrolling tabs are an abomination in my opinion, but you may feel differently.</p>\n<h2 id=\"printable-tabs%3F-hell-yeah!\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#printable-tabs%3F-hell-yeah!\" aria-hidden=\"true\">#</a> Printable tabs? Hell yeah!</h2>\n<p>I don’t know about you, but I love it when sites think about the print experience. So few do. When I find a site where the author has clearly put time and effort into their print styles, I get chills. Yeah, I know I’m odd.</p>\n<p>Anyway, I hate it when widgets print like garbage, so I set this one up to print better than most: before the print dialog opens, the component switches to the linear layout so every heading and section appears on paper. Afterward, it measures again and brings back the tabs.</p>\n<p>No more missing content!</p>\n<h2 id=\"give-it-a-spin\" tabindex=\"-1\"><a class=\"header-anchor\" href=\"#give-it-a-spin\" aria-hidden=\"true\">#</a> Give it a spin</h2>\n<p>I put together a <a href=\"https://aarongustafson.github.io/tabbed-interface/demo/\">live demo</a> of the component so you can check it out.</p>\n<figure class=\"media-container\">\n<fullscreen-control class=\"talk__slides__embed video-embed__video\">\n<iframe src=\"https://aarongustafson.github.io/tabbed-interface/demo/\" class=\"talk__slides__embed video-embed__video\" frameborder=\"0\"></iframe>\n</fullscreen-control>\n</figure>\n<p>If it seems useful to you, head on over to <a href=\"https://github.com/aarongustafson/tabbed-interface\">the <code>&lt;tabbed-interface&gt;</code> project page</a> for the installation options and a complete list of features and options.</p>\n<p>And if you use it on your site, let me know. Happy tabbing!</p>\n","social_text":"I keep coming back to tabbed interfaces.","url":"https://www.aaron-gustafson.com/notebook/tabbed-interface-the-web-component/","tags":["web components","progressive enhancement","HTML","accessibility","ARIA"],"image":"https://www.aaron-gustafson.com/i/share-cards/tabbed-interface-the-web-component.jpg","_social":{"title":"Tabbed Interface: The Web Component","description":"I’ve been building tabbed interfaces from document headings since 2007. My new custom element carries that approach forward and now drops the tabs when they don’t fit.","image":"https://www.aaron-gustafson.com/i/share-cards/tabbed-interface-the-web-component.jpg","image_alt":"A tabbed interface with Getting Started, Features, and Installation tabs; Features is selected and its feature list is visible."},"date_published":"2026-10-07T04:04:09Z"}]}