-
Notifications
You must be signed in to change notification settings - Fork 3.6k
NameFrom: Heading... WG preferred DFS over IDS/IDDFS search #50507
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
Merged
cookiecrook
merged 2 commits into
web-platform-tests:master
from
cookiecrook:namefrom-heading2
Mar 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>Name Comp: Name From Heading</title> | ||
| <meta charset="utf-8"> | ||
| <script src="/resources/testharness.js"></script> | ||
| <script src="/resources/testharnessreport.js"></script> | ||
| <script src="/resources/testdriver.js"></script> | ||
| <script src="/resources/testdriver-vendor.js"></script> | ||
| <script src="/resources/testdriver-actions.js"></script> | ||
| <script src="/wai-aria/scripts/aria-utils.js"></script> | ||
| </head> | ||
| <body> | ||
|
|
||
| <p>Tests the <a href="https://w3c.github.io/accname/#comp_name_from_heading">#comp_name_from_heading</a> portions of the AccName <em>Name Computation</em> algorithm.</p> | ||
| <p>Includes <a href="https://github.com/w3c/aria/pull/1860">tentative "name from heading" diff</a>.</p> | ||
|
|
||
| <!-- ARIA roles. --> | ||
| <div role="alertdialog" data-expectedlabel="alertdialog role heading contents" data-testname="alertdialog role, name from heading" class="ex-label"> | ||
| <h2>alertdialog role heading contents</h2> | ||
| <p>More alertdialog content.</p> | ||
| </div> | ||
|
|
||
| <div role="article" data-expectedlabel="article role heading contents" data-testname="article role, name from heading" class="ex-label"> | ||
| <h2>article role heading contents</h2> | ||
| <p>More article content.</p> | ||
| </div> | ||
|
|
||
| <div role="dialog" data-expectedlabel="dialog role heading contents" data-testname="dialog role, name from heading" class="ex-label"> | ||
| <h2>dialog role heading contents</h2> | ||
| <p>More dialog content.</p> | ||
| </div> | ||
|
|
||
| <div role="group" data-expectedlabel="" data-testname="group role, verify name is NOT from heading" class="ex-label"> | ||
| <div role="group"> | ||
| <h3>Not this one</h3> | ||
| </div> | ||
| <h2>nor this one</h2> | ||
| <p>Nor this content.</p> | ||
| </div> | ||
|
|
||
| <!-- Native HTML elements. --> | ||
| <dialog open data-expectedlabel="dialog heading contents" data-testname="dialog, name from heading" class="ex-label"> | ||
| <h2>dialog heading contents</h2> | ||
| <p>More dialog content.</p> | ||
| </dialog> | ||
|
|
||
|
|
||
| <!-- Depth first search (DFS) tests (standard DFS rather than iterative-deepening depth-first search IDDFS/IDS) --> | ||
| <!-- Note: The WG wanted change this from the initially proposed IDS to DFS, but IDS is more performant, so we'll need multiple implementor buy-in for the selection. --> | ||
|
Comment on lines
+49
to
+50
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reviewers... This test is the only substantive change since last year's approved PR... I updated to match the WG's preference for a depth-first-search rather than the alternative IDS/IDDFS. |
||
| <div role="article" data-expectedlabel="article role simple DFS" data-testname="article role, name from DFS heading" class="ex-label"> | ||
| <div role="group"> | ||
| <h3>article role simple DFS</h3> | ||
| </div> | ||
| <h2>Not this one</h2> | ||
| <p>More article content.</p> | ||
| </div> | ||
|
|
||
|
|
||
| <script> | ||
| AriaUtils.verifyLabelsBySelector(".ex-label"); | ||
| </script> | ||
| </body> | ||
| </html> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.