-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Update html-aam/roles-contextual.html with <summary> tests #43859
base: master
Are you sure you want to change the base?
Conversation
html-aam/roles-contextual.html
Outdated
<li>x</li> | ||
<li>x</li> | ||
</ol> | ||
<summary data-testname="el-summary-not-first-child-of-details" class="ex-generic">x</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wouldn't be a generic, because it's the first summary that is a child of the details element.
so
<details>
whatever text content or other non-summary HTML elements can go here
<div>
<summary> this is not a child of the details, so it is a generic </summary>
</div>
<summary> this is not a generic because it's the first child summary of the details parent</summary>
<summary> this is a generic because it's the second child summary of the details parent </summary>
</details>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed (I had mixed up the requirement for <summary>
to be the first child of <details>
which throws a parsing error).
Since there are some special rules for Summary, I think it should be its own file rather than split between roles.html and roles-contextual.html. Another test that is probably missing (and may need spec clarification:
|
@cookiecrook if i understand your comment, there is no author defined summary as a direct child of the details, then browsers auto inject a summary as the first child. so per the following:
the the above |
@scottaohara @cookiecrook May we add this as an agenda item for a future meeting? Happy to take this forward although I have several questions now 🙂 |
Okay I think @scottaohara explained sufficiently that the other non-child descendants are error-handled by some logic defined in the HTML spec, so the tests are fine, but instead of (or in addition too) this note in HTML-AAM:
…Add a link to this section of the HTML spec defining that behavior: |
So I don’t need to meet Rahim (seems this is resolving), but you can add any issue to the meeting agenda by adding the Agenda label. |
html-aam/roles-contextual.html
Outdated
<li>x</li> | ||
<li>x</li> | ||
</ol> | ||
<summary>x</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not test this, the only semantic summary example?
html-aam/roles-contextual.html
Outdated
<li>x</li> | ||
</ol> | ||
<summary>x</summary> | ||
<summary data-testname="el-summary-not-first-summary-child-of-details" class="ex-generic">x</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why this one fails in WebKit with the following?
FAIL message: promise_test: Unhandled rejection with value: "error: Action get_computed_role failed"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's due to an unused AriaUtils.verifyRolesBySelector(".ex")
in the <script>
block since we're only testing generic stuff. I've removed it in 333c3df, re-running CI tests now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there's not an issue in Gecko/Chromium (perhaps WebKit is not exposing the <summary>
in this context as an accessible object)?
…s.html and ./roles-contextual.html
@scottaohara @cookiecrook Thank you both, this PR is ready for another review. I've created a new html-aam/summary.html file (and updated roles.html/roles-contextual.html with a documentation link referencing the new file). |
Co-authored-by: Scott O'Hara <[email protected]>
@scottaohara @cookiecrook One more question about the HTML-AAM "If the element is the first child of its type within a parent details element: I'm not certain what |
there is no direct ARIA role for a does that help, or did i misunderstand your question? |
This PR adds additional tests for
<summary>
role calculation per html-aam<summary>
mapping guidance: