diff options
Diffstat (limited to 'www/docs/B0-js.md')
-rw-r--r-- | www/docs/B0-js.md | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/www/docs/B0-js.md b/www/docs/B0-js.md index ffc81aa..a7bbcf2 100644 --- a/www/docs/B0-js.md +++ b/www/docs/B0-js.md @@ -98,23 +98,21 @@ _See [ARIA § feed](/docs/aria/#feed)_ ~~~ html <script type="module" src="https://unpkg.com/missing.css@{{ version }}/dist/js/feed.js"> + <aria-feed> + <article class="box" aria-labelledby="article-1-label"> + <h2 id="article-1-label">Article Title 1</h2> + <p>Article content</p> + </article> + <article class="box" aria-labelledby="article-2-label"> + <h2 id="article-2-label">Article Title 2</h2> + <p>Article content</p> + </article> + </aria-feed> ~~~ </figure> -or - -<figure> - - ~~~js - import { feed } from "https://unpkg.com/missing.css@{{ version }}/dist/js/feed.js"; - ~~~ - -</figure> - -All notes above about initializing dynamic content apply here. - - +The `<aria-feed>` custom element utilizes `MutationObserver`, so dynamic content should "just work." ## Expand/collapse navbar |