Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00a6484

Browse files
Script execution: Add error handling for invalid reference argument (#1931)
1 parent a101f0a commit 00a6484

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎index.html‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,6 +3391,9 @@ <h2>Contexts</h2>
33913391
the <a>web frame identifier</a> property
33923392
from <var>object</var>.
33933393

3394+
<li><p>If <var>reference</var> is not a <a>String</a>,
3395+
return an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
3396+
33943397
<li><p>Let <var>browsing context</var> be the <a>browsing context</a> whose
33953398
<a>window handle</a> is <var>reference</var>, or null if no such
33963399
<a>browsing context</a> exists.
@@ -3414,6 +3417,9 @@ <h2>Contexts</h2>
34143417
the <a>web window identifier</a> property
34153418
from <var>object</var>.
34163419

3420+
<li><p>If <var>reference</var> is not a <a>String</a>,
3421+
return an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
3422+
34173423
<li>
34183424
<p>Let <var>browsing context</var> be the <a>browsing context</a> whose
34193425
<a>window handle</a> is <var>reference</var>, or null if no such
@@ -4475,6 +4481,9 @@ <h2>Elements</h2>
44754481
<a data-lt="getting a property">getting</a> the <a>web element
44764482
identifier</a> property from <var>object</var>.
44774483

4484+
<li><p>If <var>reference</var> is not a <a>String</a>,
4485+
return an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
4486+
44784487
<li><p>Let <var>element</var> be the result
44794488
of <a>trying</a> to <a>get a known element</a>
44804489
with <var>session</var> and <var>reference</var>.
@@ -4785,6 +4794,9 @@ <h3 id=shadow-root>Shadow Roots</h3>
47854794
the <a>shadow root identifier</a> property
47864795
from <var>object</var>.
47874796

4797+
<li><p>If <var>reference</var> is not a <a>String</a>,
4798+
return an <a>error</a> with <a>error code</a> <a>invalid argument</a>.
4799+
47884800
<li><p>Let <var>shadow</var> be the result
47894801
of <a>trying</a> to <a>get a known shadow root</a>
47904802
with <var>session</var> and <var>reference</var>.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /