Should the `dialog` element be considered interactive content?
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 3.2k
- PR merge metrics
- PR metrics pending
Description
Hello!
I submitted issue validator/validator#1514 on the Nu HTML validator repository about the validity of nesting a dialog element inside of an a element. @scottaohara was very helpful and observed that this would pose an accessibility problem for people using assistive technology. Here is a quote:
i wonder if this is a miss in the HTML specification, tbh. the details element and dialog elements are both considered interactive elements, but only the details element is listed under interactive content, per your linked reference. I find that puzzling. I'd submit the validator is correct here, but rather maybe the HTML spec needs to be adjusted to indicate that putting a dialog inside of a hyperlink is invalid - as it should be.
It would seem that the spec ought to be changed so that dialog is listed under interactive content, or maybe the spec could be changed in some other way to forbid the nesting of dialog boxes in hypertext anchors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the HTML Standard sections for the dialog element, interactive content, and the a element, then compare their nesting rules with validator/validator#1514. Determine whether dialog should be listed as interactive content or whether a different prohibition is needed; done means the specification has a decided, normative resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- accessibility, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100