Skip to content

Commit 458d0bb

Browse files
committed
Fix up links identified as being dead or incorrect
In some cases, this means that we've also had to futz with the spec text, but the logical meaning should be identical. The W3C link validtor does not correctly check links into PDF documents, however loading these in Chrome show that they are valid. I've removed the test about showModalDialog since this method has been removed from modern browsers and is no longer supported. This does not fix the broken link in the execute script section
1 parent 0b7e938 commit 458d0bb

File tree

1 file changed

+28
-32
lines changed

1 file changed

+28
-32
lines changed

webdriver-spec.html

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ <h3>Dependencies</h3>
279279
<!-- Code entry-point --> <li><dfn><a href=https://html.spec.whatwg.org/#code-entry-point>Code entry-point</a></dfn>
280280
<!-- Cookie-averse Document object --> <li><dfn><a href=https://html.spec.whatwg.org/#cookie-averse-document-object>Cookie-averse <code>Document</code> object</a></dfn>
281281
<!-- Current entry --> <li><dfn><a href=https://html.spec.whatwg.org/#current-entry>Current entry</a></dfn>
282-
<!-- Determine the value of an indexed property --> <li><dfn data-lt="determining the value of an indexed property"><a href=https://html.spec.whatwg.org/#dom-window-item>Determine the value of an indexed property</a></dfn> of a <a><code>Window</code></a> object
283282
<!-- Disabled --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-fe-disabled>Disabled</a></dfn>
284283
<!-- Document address --> <li><dfn data-lt=address><a href=https://dom.spec.whatwg.org/#concept-document-url>Document address</a></dfn>
285284
<!-- Document readiness --> <li><dfn><a href=https://html.spec.whatwg.org/#current-document-readiness>Document readiness</a></dfn>
@@ -292,7 +291,8 @@ <h3>Dependencies</h3>
292291
<!-- File upload state --> <li><dfn><a href="https://html.spec.whatwg.org/#file-upload-state-(type=file)">File upload state</a></dfn>
293292
<!-- Focusing steps --> <li><dfn><a href="https://html.spec.whatwg.org/#focusing-steps">Focusing steps</a></dfn>
294293
<!-- Fousable area --><li><dfn><a href=https://html.spec.whatwg.org/#focusable-area>Focusable area</a></dfn>
295-
<!-- Getting innerText --> <li><dfn><a href=http://rocallahan.github.io/innerText-spec/index.html#setting-innertext>Getting <code>innerText</code></a></dfn>
294+
<!-- GetOwnProperty of a Window object --> <li><dfn><a href=https://html.spec.whatwg.org/#windowproxy-getownproperty><code>[[\GetOwnProperty]]</code> of a <code>Window</code> object</a></dfn>
295+
<!-- Getting innerText --> <li><dfn><a href=https://html.spec.whatwg.org/#the-innertext-idl-attribute>Getting <code>innerText</code></a></dfn>
296296
<!-- Hidden --> <li><dfn><a href="https://html.spec.whatwg.org/#hidden-state-%28type=hidden%29">Hidden</a></dfn> state
297297
<!-- Image Button --> <li><dfn><a href="https://html.spec.whatwg.org/#image-button-state-%28type=image%29">Image Button</a></dfn> state
298298
<!-- In parallel --> <li><dfn><a href="https://html.spec.whatwg.org/#in-parallel">In parallel</a></dfn>
@@ -314,14 +314,13 @@ <h3>Dependencies</h3>
314314
<!-- Replacement enabled --> <li><dfn><a href=https://html.spec.whatwg.org/#replacement-enabled>Replacement enabled</a></dfn>
315315
<!-- Reset algorithm --><li><dfn><a href=https://html.spec.whatwg.org/#concept-form-reset-control>Reset algorithm</a></dfn>
316316
<!-- Reset Button --> <li><dfn><a href="https://html.spec.whatwg.org/#reset-button-state-%28type=reset%29">Reset Button</a></dfn> state
317-
<!-- Script execution environment --> <li><dfn><a href=https://html.spec.whatwg.org/#script-execution-environment>Script execution environment</a></dfn>
317+
<!-- Script execution environment --> <li><dfn><a href=https://html.spec.whatwg.org/#environment>Script execution environment</a></dfn>
318318
<!-- Script --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-script>Script</a></dfn>
319319
<!-- Selectedness --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-option-selectedness>Selectedness</a></dfn>
320320
<!-- Session history --> <li><dfn><a href=https://html.spec.whatwg.org/#session-history>Session history</a></dfn>
321321
<!-- setSelectionRange --> <li><dfn data-lt="set selection range"><a href=https://html.spec.whatwg.org/#dom-textarea/input-setselectionrange><code>setSelectionRange</code></a></dfn>
322322
<!-- Settings object --> <li><dfn><a href=https://html.spec.whatwg.org/#settings-object>Settings object</a></dfn>
323323
<!-- Simple dialogs --> <li><dfn data-lt="simple dialog"><a href=https://html.spec.whatwg.org/#simple-dialogs>Simple dialogs</a></dfn>
324-
<!-- Strip leading and trailing white space --><li><dfn data-lt="stripping leading and trailing whitespace"><a href="https://html.spec.whatwg.org/#strip-leading-and-trailing-whitespace">Strip leading and trailing whitespace</a></dfn>
325324
<!-- Submit Button --> <li><dfn><a href="https://html.spec.whatwg.org/#submit-button-state-%28type=submit%29">Submit Button</a></dfn> state
326325
<!-- Submittable elements --> <li><dfn data-lt="submittable element"><a href=https://html.spec.whatwg.org/#category-submit>Submittable elements</a></dfn>
327326
<!-- Top-level browsing context --> <li><dfn data-lt="top-level browsing contexts"><a href=https://html.spec.whatwg.org/#top-level-browsing-context>Top-level browsing context</a></dfn>
@@ -360,7 +359,6 @@ <h3>Dependencies</h3>
360359
<!-- Window object --> <li><dfn><a href=https://html.spec.whatwg.org/#the-window-object><code>Window</code></a></dfn> object
361360
<!-- WindowProxy exotic object --> <li><dfn><a href=https://html.spec.whatwg.org/#windowproxy><code>WindowProxy</code></a></dfn> exotic object
362361
<!-- readOnly attribute --> <li><dfn><a href=https://html.spec.whatwg.org/#the-readonly-attribute><code>readOnly</code> attribute</a></dfn>
363-
<!-- showModalDialog --> <li><dfn><a href=https://html.spec.whatwg.org/#dom-showmodaldialog><code>showModalDialog()</code></a></dfn>
364362
<!-- type attribute --> <li><dfn><a href=https://html.spec.whatwg.org/#attr-input-type><code>type</code> attribute</a></dfn>
365363
<!-- window confirm --> <li><dfn>window.<a href=https://html.spec.whatwg.org/#dom-confirm><code>confirm</code></a></dfn>
366364
<!-- window.alert --> <li><dfn>window.<a href=https://html.spec.whatwg.org/#dom-alert><code>alert</code></a></dfn>
@@ -440,7 +438,7 @@ <h3>Dependencies</h3>
440438
<dd>The following properties are defined in
441439
the CSS Basic Box Model Level 3 specification: [[!CSS3-BOX]]
442440
<ul>
443-
<!-- Visibility property --> <li>The <dfn><a href=https://drafts.csswg.org/css-box/#visibility><code>visibility</code></a></dfn> property
441+
<!-- Visibility property --> <li>The <dfn><a href=https://drafts.csswg.org/css-box/#visibility-prop><code>visibility</code></a></dfn> property
444442
</ul>
445443

446444
<dd>The following terms are defined in
@@ -518,6 +516,12 @@ <h3>Dependencies</h3>
518516
<!-- Breaking text into extended grapheme clusters --><li><dfn data-lt="breaking text into extended grapheme clusters"><a href=http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries>Grapheme cluster boundaries</a></dfn>
519517
</ul>
520518

519+
<dt>Unicode Standard Annex #44
520+
<dd>The following terms are defined in the standard: [[!UAX44]]
521+
<ul>
522+
<!-- Unicode character property --> <li><dfn><a href=http://unicode.org/reports/tr44/#Properties>Unicode character property</a></dfn>
523+
</ul>
524+
521525
<dt>URLs
522526
<dd>The following terms are defined in the WHATWG URL standard: [[!URL]]
523527
<ul>
@@ -3598,9 +3602,11 @@ <h3>Switch To Frame</h3>
35983602
return <a>error</a> with <a>error code</a> <a>no such frame</a>.
35993603

36003604
<li><p>Let <var>child window</var> be
3601-
the <a><code>WindowProxy</code></a> object
3602-
obtained by <a>determining the value of an indexed property</a>
3603-
of <var>window</var> with index <var>id</var>.
3605+
the <a><code>WindowProxy</code></a> object obtained by
3606+
calling <a><code>[[\GetOwnProperty]]</code> of
3607+
a <code>Window</code> object</a> <var>window</var> with
3608+
argument <var>id</var>.
3609+
36043610

36053611
<li><p>Set the <a>current browsing context</a> to
36063612
<var>new window</var>’s browsing context.</li>
@@ -4395,9 +4401,9 @@ <h4>Link Text</h4>
43954401
returned via a call to <a>Get Element Text</a>
43964402
for <var>element</var>.
43974403

4398-
<li><p>Let <var>trimmed text</var> be the result of
4399-
<a>stripping leading and trailing whitespace</a>
4400-
from <var>rendered text</var>.
4404+
<li><p>Let <var>trimmed text</var> be the result of removing
4405+
all <a>whitespace</a> from the start and end of the
4406+
string <var>rendered text</var>.
44014407

44024408
<li><p>If <var>trimmed text</var> equals <var>selector</var>,
44034409
append <var>element</var> to <var>result</var>.
@@ -4953,24 +4959,16 @@ <h3>Get Element Text</h3>
49534959
</tr>
49544960
</table>
49554961

4956-
<p>The <dfn>Get Element Text</dfn> <a>command</a>
4957-
intends to return an <a>element</a>’s text “as rendered”.
4958-
This is equivalent to calling <code>element.innerText</code>.
4959-
An <a>element</a>’s rendered text is also used
4960-
for locating <a><code>a</code> elements</a> by their
4962+
<p>The <dfn>Get Element Text</dfn> <a>command</a> intends to return
4963+
an <a>element</a>’s text “as rendered”. This is approximately
4964+
equivalent to calling <code>element.innerText</code>.
4965+
An <a>element</a>’s rendered text is also used for
4966+
locating <a><code>a</code> elements</a> by their
49614967
<a>link text</a> and <a>partial link text</a>.
49624968

4963-
<p class=note>For historical reasons,
4964-
all user agents appear to have implemented
4965-
different sets of heuristics
4966-
for approximating what is considered rendered text.
4967-
WebDriver relies on the unofficial draft of
4968-
the <a href=http://rocallahan.github.io/innerText-spec/index.html><code>innerText</code> specification</a>,
4969-
but please be aware that there may be
4970-
compliance issues between different user agents
4971-
for this command.
4972-
It is expected that <code>innerText</code>
4973-
will <a href=https://github.com/whatwg/html/issues/465>land soon in HTML</a>.
4969+
<p>When processing text, <dfn>whitespace</dfn> is defined as
4970+
characters from the Unicode Character Database ([[UAX44]]) with the
4971+
<a>Unicode character property</a> <code>"WSpace=Y"</code>.
49744972

49754973
<p>The <a>remote end steps</a> are:
49764974

@@ -8280,10 +8278,8 @@ <h2>User Prompts</h2>
82808278
</table>
82818279

82828280
<p>The <dfn>current user prompt</dfn> is said to be the active <a>user prompt</a>,
8283-
which can be one of the entries on the <a>table of simple dialogs</a>,
8284-
the <a>window.<code>print</code></a> dialog,
8285-
or a dialog spawned by <a><code>showModalDialog()</code></a>
8286-
should this be supported by the user agent.
8281+
which can be one of the entries on the <a>table of simple dialogs</a>, or
8282+
the <a>window.<code>print</code></a> dialog.
82878283

82888284
<p>To <dfn data-lt="dismissed|dismisses">dismiss</dfn>
82898285
the <a>current user prompt</a>,

0 commit comments

Comments
 (0)