Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Post] HOWTO: Ajax with ARIA-LIVE #1533

Open
3 tasks done
paulmcfe opened this issue Mar 22, 2023 · 3 comments
Open
3 tasks done

[Post] HOWTO: Ajax with ARIA-LIVE #1533

paulmcfe opened this issue Mar 22, 2023 · 3 comments
Labels
claimed Work is being done on an issue. post Article submissions and edits.

Comments

@paulmcfe
Copy link

Thank you for your interest in writing a post! Please fill out the following information:

Your idea

A short(ish) article on setting up an element with ARIA-LIVE to alert ATs when the element gets content dynamically from an Ajax call.

Outline (optional)

How Assistive Technologies Handle Dynamic Content
The Need for ARIA-LIVE
Understanding the ARIA-LIVE Values
Configuring ARIA Live Regions

Additional information (optional)

N/A

Terms

@paulmcfe paulmcfe added the post Article submissions and edits. label Mar 22, 2023
@ericwbailey
Copy link
Member

Sounds great! Looking forward to it 🎉

@ericwbailey ericwbailey added the claimed Work is being done on an issue. label Mar 26, 2023
@paulmcfe
Copy link
Author

I'm having a lot of trouble with the tooling here. I've got the website running, I created a branch, and I'm able to commit a markdown file to src/posts. However, Eleventy has a problem with the file (error message below). Any idea what's wrong?

[Browsersync] Serving files from: ./dist/
[11ty] File added: src/posts/ajax-with-aria-live.md
[11ty] Unhandled rejection in promise: (more in DEBUG output)
[11ty] > Tried to use templateContent too early (./src/posts/ajax-with-aria-live.md)

`TemplateContentPrematureUseError` was thrown:
[11ty]     TemplateContentPrematureUseError: Tried to use templateContent too early (./src/posts/ajax-with-aria-live.md)
        at get templateContent [as templateContent] (/Users/paul/Documents/Writing/a11yproject.com/node_modules/@11ty/eleventy/src/Template.js:697:23)
        at Object.memberLookup (/Users/paul/Documents/Writing/a11yproject.com/node_modules/nunjucks/src/runtime.js:251:17)
        at eval (eval at _compile (/Users/paul/Documents/Writing/a11yproject.com/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:62:59)
        at iterCallback (/Users/paul/Documents/Writing/a11yproject.com/node_modules/nunjucks/src/runtime.js:293:11)
        at next (/Users/paul/Documents/Writing/a11yproject.com/node_modules/nunjucks/src/lib.js:328:7)
        at eval (eval at _compile (/Users/paul/Documents/Writing/a11yproject.com/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:66:1)
        at /Users/paul/Documents/Writing/a11yproject.com/node_modules/@11ty/eleventy-plugin-rss/.eleventy.js:28:7
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@ericwbailey
Copy link
Member

Thank you for reporting this.

This is odd. I am able to reproduce the issue in a Codespace by creating a new Markdown file in ./src/posts/, like what you are describing. I'll need some more time to investigate, but wanted to confirm your finding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimed Work is being done on an issue. post Article submissions and edits.
Projects
None yet
Development

No branches or pull requests

2 participants