|
22 | 22 | ] |
23 | 23 | }, |
24 | 24 | { |
25 | | - "html": "<span id=\"step2B\"></span><em>LabelledBy:</em> Otherwise, if the <code>current node</code> has an\n <code>aria-labelledby</code> <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a> that contains at least one valid IDREF, and the <code>current node</code> is not already part of an ongoing <code>aria-labelledby</code> or\n <code>aria-describedby</code> traversal, process its IDREFs in the order they occur:", |
| 25 | + "html": "<span id=\"step2B\"></span><em>LabelledBy:</em> Otherwise, if the <code>current node</code> has an\n <code>aria-labelledby</code> <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a> that contains at least one valid IDREF, and the <code>current node</code> is not already part of an ongoing <code>aria-labelledby</code> or\n <code>aria-describedby</code> traversal, process its IDREFs in the order they occur:", |
26 | 26 | "rationale": "set", |
27 | 27 | "steps": [ |
28 | 28 | { |
|
76 | 76 | ] |
77 | 77 | }, |
78 | 78 | { |
79 | | - "html": "<span id=\"step2D\"></span><em>AriaLabel:</em> Otherwise, if the <code>current node</code> has an <code>aria-label</code> <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a>\n whose value is not undefined, not the empty string, nor, when trimmed of <a data-link-type=\"dfn|abstract-op\" data-lt=\"ascii whitespace\" data-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ascii-whitespace\">whitespace</a>, is not the empty string:", |
| 79 | + "html": "<span id=\"step2D\"></span><em>AriaLabel:</em> Otherwise, if the <code>current node</code> has an <code>aria-label</code> <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a>\n whose value is not undefined, not the empty string, nor, when trimmed of <a data-link-type=\"dfn\" data-lt=\"ascii whitespace\" href=\"https://infra.spec.whatwg.org/#ascii-whitespace\">whitespace</a>, is not the empty string:", |
80 | 80 | "rationale": "if", |
81 | 81 | "steps": [ |
82 | 82 | { |
|
88 | 88 | ] |
89 | 89 | }, |
90 | 90 | { |
91 | | - "html": "<span id=\"step2E\"></span><em>Host Language Label:</em> Otherwise, if the <code>current node</code>'s native markup provides an\n <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a> (e.g. <code>alt</code>) or <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> (e.g. <abbr title=\"Hypertext Markup Language\">HTML</abbr> <code>label</code> or <abbr title=\"Scalable Vector Graphics\">SVG</abbr> <code>title</code>) that defines a text alternative, return that alternative in the form of\n a <code>flat string</code> as defined by the host language, unless the element is marked as presentational (<code>role=\"presentation\"</code> or <code>role=\"none\"</code>)." |
| 91 | + "html": "<span id=\"step2E\"></span><em>Host Language Label:</em> Otherwise, if the <code>current node</code>'s native markup provides an\n <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-attribute\">attribute</a> (e.g. <code>alt</code>) or <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> (e.g. <abbr title=\"Hypertext Markup Language\">HTML</abbr> <code>label</code> or <abbr title=\"Scalable Vector Graphics\">SVG</abbr> <code>title</code>) that defines a text alternative, return that alternative in the form of\n a <code>flat string</code> as defined by the host language, unless the element is marked as presentational (<code>role=\"presentation\"</code> or <code>role=\"none\"</code>)." |
92 | 92 | }, |
93 | 93 | { |
94 | | - "html": "<span id=\"step2F\"></span><em>Name From Content:</em> Otherwise, if the <code>current node's</code> allows\n <a class=\"specref\" href=\"https://w3c.github.io/aria/#namefromcontent\">name from content</a>, or if the <code>current node</code> is referenced by <code>aria-labelledby</code>, <code>aria-describedby</code>, or\n is a native host language text alternative <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> (e.g. <code>label</code> in <abbr title=\"Hypertext Markup Language\">HTML</abbr>), or is a descendant of a native host language text alternative <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a>:", |
| 94 | + "html": "<span id=\"step2F\"></span><em>Name From Content:</em> Otherwise, if the <code>current node's</code> allows\n <a class=\"specref\" href=\"https://w3c.github.io/aria/#namefromcontent\">name from content</a>, or if the <code>current node</code> is referenced by <code>aria-labelledby</code>, <code>aria-describedby</code>, or\n is a native host language text alternative <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> (e.g. <code>label</code> in <abbr title=\"Hypertext Markup Language\">HTML</abbr>), or is a descendant of a native host language text alternative <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a>:", |
95 | 95 | "rationale": "for", |
96 | 96 | "steps": [ |
97 | 97 | { |
98 | 98 | "html": "<span id=\"step2F.i\"></span><em>Name From Content Reset:</em> Set the <code>accumulated text</code> to the empty string." |
99 | 99 | }, |
100 | 100 | { |
101 | | - "html": "<span id=\"step2F.ii\"></span><em>Name From Generated Content:</em> Check for\n <abbr title=\"Cascading Style Sheets\">CSS</abbr> generated textual content associated with the <code>current node</code> and include it in the <code>accumulated text</code>. The\n <abbr title=\"Cascading Style Sheets\">CSS</abbr> <a href=\"https://www.w3.org/TR/CSS2/generate.html#before-after-content\"><code>::before</code> and <code>::after</code></a> pseudo\n elements [<cite><a class=\"bibref\" data-link-type=\"biblio\" href=\"https://w3c.github.io/accname/#bib-css2\" title=\"Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification\">CSS2</a></cite>] can provide textual content for <a data-link-type=\"dfn|abstract-op\" data-lt=\"element\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">elements</a> that have a content model.", |
| 101 | + "html": "<span id=\"step2F.ii\"></span><em>Name From Generated Content:</em> Check for\n <abbr title=\"Cascading Style Sheets\">CSS</abbr> generated textual content associated with the <code>current node</code> and include it in the <code>accumulated text</code>. The\n <abbr title=\"Cascading Style Sheets\">CSS</abbr> <a href=\"https://www.w3.org/TR/CSS2/generate.html#before-after-content\"><code>::before</code> and <code>::after</code></a> pseudo\n elements [<cite><a class=\"bibref\" data-link-type=\"biblio\" href=\"https://w3c.github.io/accname/#bib-css2\" title=\"Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification\">CSS2</a></cite>] can provide textual content for <a data-link-type=\"dfn\" data-lt=\"element\" href=\"https://dom.spec.whatwg.org/#concept-element\">elements</a> that have a content model.", |
102 | 102 | "rationale": "for", |
103 | 103 | "steps": [ |
104 | 104 | { |
|
114 | 114 | "rationale": "if", |
115 | 115 | "steps": [ |
116 | 116 | { |
117 | | - "html": "If the <code>current node</code> has an attached <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\">shadow root</a>, set the <code>rendered child nodes</code> to be the child nodes of the <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\">shadow root</a>." |
| 117 | + "html": "If the <code>current node</code> has an attached <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\">shadow root</a>, set the <code>rendered child nodes</code> to be the child nodes of the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-shadow-root\">shadow root</a>." |
118 | 118 | }, |
119 | 119 | { |
120 | | - "html": "Otherwise, if the <code>current node</code> is a <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-slot\">slot</a> with <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#slot-assigned-nodes\">assigned nodes</a>, set the <code>rendered child nodes</code> to be the <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#slot-assigned-nodes\">assigned nodes</a> of the\n <code>current node</code>." |
| 120 | + "html": "Otherwise, if the <code>current node</code> is a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-slot\">slot</a> with <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#slot-assigned-nodes\">assigned nodes</a>, set the <code>rendered child nodes</code> to be the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#slot-assigned-nodes\">assigned nodes</a> of the\n <code>current node</code>." |
121 | 121 | }, |
122 | 122 | { |
123 | 123 | "html": "Otherwise, set the <code>rendered child nodes</code> to be the child nodes of the <code>current node</code>." |
|
145 | 145 | ] |
146 | 146 | }, |
147 | 147 | { |
148 | | - "html": "<span id=\"step2G\"></span><em>Text Node:</em> Otherwise, if the <code>current node</code> is a Text <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node\">Node</a>, return its textual\n contents." |
| 148 | + "html": "<span id=\"step2G\"></span><em>Text Node:</em> Otherwise, if the <code>current node</code> is a Text <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-node\">Node</a>, return its textual\n contents." |
149 | 149 | }, |
150 | 150 | { |
151 | 151 | "html": "<span id=\"step2H\"></span><em>Recursive Name From Content:</em> Otherwise, if the <code>current node</code> is a descendant of an\n element whose or is being computed, and contains descendants, proceed to\n <a href=\"https://w3c.github.io/accname/#comp_name_from_content_reset\">Name From Content Reset</a>." |
|
159 | 159 | ] |
160 | 160 | }, |
161 | 161 | { |
162 | | - "html": "After all steps are completed, the <code>total accumulated text</code> is used as the or of the\n <a data-link-type=\"dfn|abstract-op\" data-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> that initiated the computation." |
| 162 | + "html": "After all steps are completed, the <code>total accumulated text</code> is used as the or of the\n <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\">element</a> that initiated the computation." |
163 | 163 | } |
164 | 164 | ] |
165 | 165 | } |
|
0 commit comments