Skip to content

Commit 3ff0cb9

Browse files
committed
Rename [LenientThis] to [LegacyLenientThis]
Part of #350.
1 parent f28d2b2 commit 3ff0cb9

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

index.bs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ are applicable to regular and static attributes:
19691969
The following [=extended attributes=]
19701970
are applicable only to regular attributes:
19711971
[{{LegacyLenientSetter}}],
1972-
[{{LenientThis}}],
1972+
[{{LegacyLenientThis}}],
19731973
[{{PutForwards}}],
19741974
[{{Replaceable}}],
19751975
[{{Unforgeable}}].
@@ -9836,18 +9836,18 @@ See the <a href="#es-attributes">Attributes</a> section for how
98369836
</div>
98379837

98389838

9839-
<h4 id="LenientThis" extended-attribute lt="LenientThis">[LenientThis]</h4>
9839+
<h4 id="LegacyLenientThis" extended-attribute lt="LegacyLenientThis" oldids="LenientThis">[LegacyLenientThis]</h4>
98409840

98419841
<div class="advisement">
98429842

9843-
Specifications should not use [{{LenientThis}}]
9843+
Specifications should not use [{{LegacyLenientThis}}]
98449844
unless required for compatibility reasons.
98459845
Editors who wish to use this feature are strongly advised to discuss this
9846-
by <a href="https://github.com/heycam/webidl/issues/new?title=Intent%20to%20use%20[LenientThis]">filing an issue</a>
9846+
by <a href="https://github.com/heycam/webidl/issues/new?title=Intent%20to%20use%20[LegacyLenientThis]">filing an issue</a>
98479847
before proceeding.
98489848

98499849
<small class="non-normative">
9850-
The [{{LenientThis}}] [=extended attribute=] appears on
9850+
The [{{LegacyLenientThis}}] [=extended attribute=] appears on
98519851
the {{Document/onreadystatechange}},
98529852
{{Document/onmouseenter}}, and
98539853
{{Document/onmouseleave}} [=attributes=]
@@ -9856,37 +9856,37 @@ See the <a href="#es-attributes">Attributes</a> section for how
98569856

98579857
</div>
98589858

9859-
If the [{{LenientThis}}]
9859+
If the [{{LegacyLenientThis}}]
98609860
[=extended attribute=]
98619861
appears on a [=regular attribute=],
98629862
it indicates that invocations of the attribute’s getter or setter
98639863
with a <emu-val>this</emu-val> value that is not an
98649864
object that [=implements=] the [=interface=]
98659865
on which the attribute appears will be ignored.
98669866

9867-
The [{{LenientThis}}] extended attribute
9867+
The [{{LegacyLenientThis}}] extended attribute
98689868
must
98699869
[=takes no arguments|take no arguments=].
98709870
It must not be used on a
98719871
[=static attribute=].
98729872

9873-
The [{{LenientThis}}] extended attribute must not be used on an attribute declared on a
9873+
The [{{LegacyLenientThis}}] extended attribute must not be used on an attribute declared on a
98749874
[=namespace=].
98759875

98769876
See the <a href="#es-attributes">Attributes</a> section for how
9877-
[{{LenientThis}}]
9877+
[{{LegacyLenientThis}}]
98789878
is to be implemented.
98799879

98809880
<div class="example">
98819881

98829882
The following IDL fragment defines an interface that uses the
9883-
[{{LenientThis}}] extended
9883+
[{{LegacyLenientThis}}] extended
98849884
attribute.
98859885

98869886
<pre highlight="webidl">
98879887
[Exposed=Window]
98889888
interface Example {
9889-
[LenientThis] attribute DOMString x;
9889+
[LegacyLenientThis] attribute DOMString x;
98909890
attribute DOMString y;
98919891
};
98929892
</pre>
@@ -9903,10 +9903,10 @@ is to be implemented.
99039903
// Fine.
99049904
example.x;
99059905

9906-
// Ignored, since the this value is not an Example object and [LenientThis] is used.
9906+
// Ignored, since the this value is not an Example object and [LegacyLenientThis] is used.
99079907
Object.getOwnPropertyDescriptor(Example.prototype, "x").get.call(obj);
99089908

9909-
// Also ignored, since Example.prototype is not an Example object and [LenientThis] is used.
9909+
// Also ignored, since Example.prototype is not an Example object and [LegacyLenientThis] is used.
99109910
Example.prototype.x;
99119911

99129912
// Throws a TypeError, since Example.prototype is not an Example object.
@@ -11740,13 +11740,13 @@ in which case they are exposed on every object that [=implements=] the interface
1174011740
<emu-val>null</emu-val> or <emu-val>undefined</emu-val>, or |realm|'s
1174111741
[=Realm/global object=] otherwise.
1174211742
(This will subsequently cause a {{ECMAScript/TypeError}} in a few steps, if
11743-
the global object does not implement |target| and [{{LenientThis}}] is not
11743+
the global object does not implement |target| and [{{LegacyLenientThis}}] is not
1174411744
specified.)
1174511745
<!-- https://www.w3.org/Bugs/Public/show_bug.cgi?id=18547#c9 -->
1174611746
1. If |esValue| [=is a platform object=], then [=perform a security check=],
1174711747
passing |esValue|, |attribute|'s [=identifier=], and "getter".
1174811748
1. If |esValue| does not [=implement=] |target|, then:
11749-
1. If |attribute| was specified with the [{{LenientThis}}]
11749+
1. If |attribute| was specified with the [{{LegacyLenientThis}}]
1175011750
[=extended attribute=], then return <emu-val>undefined</emu-val>.
1175111751
1. Otherwise, [=ECMAScript/throw=] a {{ECMAScript/TypeError}}.
1175211752
1. If |attribute|'s type is an [=observable array type=], then return |esValue|'s
@@ -11793,13 +11793,13 @@ in which case they are exposed on every object that [=implements=] the interface
1179311793
<emu-val>null</emu-val> or <emu-val>undefined</emu-val>, or |realm|'s
1179411794
[=Realm/global object=] otherwise.
1179511795
(This will subsequently cause a {{ECMAScript/TypeError}} in a few steps, if
11796-
the global object does not implement |target| and [{{LenientThis}}] is not
11796+
the global object does not implement |target| and [{{LegacyLenientThis}}] is not
1179711797
specified.)
1179811798
<!-- https://www.w3.org/Bugs/Public/show_bug.cgi?id=18547#c9 -->
1179911799
1. If |esValue| [=is a platform object=], then [=perform a security check=], passing
1180011800
|esValue|, |id|, and "setter".
1180111801
1. Let |validThis| be true if |esValue| [=implements=] |target|, or false otherwise.
11802-
1. If |validThis| is false and |attribute| was not specified with the [{{LenientThis}}]
11802+
1. If |validThis| is false and |attribute| was not specified with the [{{LegacyLenientThis}}]
1180311803
[=extended attribute=], then [=ECMAScript/throw=] a {{ECMAScript/TypeError}}.
1180411804
1. If |attribute| is declared with the [{{Replaceable}}] extended attribute, then:
1180511805
1. Perform [=?=] <a abstract-op>CreateDataProperty</a>(|esValue|, |id|, |V|).
@@ -11935,7 +11935,7 @@ in which case they are exposed on every object that [=implements=] the interface
1193511935
<emu-val>null</emu-val> or <emu-val>undefined</emu-val>, or |realm|'s
1193611936
[=Realm/global object=] otherwise.
1193711937
(This will subsequently cause a {{ECMAScript/TypeError}} in a few steps, if
11938-
the global object does not implement |target| and [{{LenientThis}}] is not
11938+
the global object does not implement |target| and [{{LegacyLenientThis}}] is not
1193911939
specified.)
1194011940
<!-- https://www.w3.org/Bugs/Public/show_bug.cgi?id=18547#c9 -->
1194111941
1. If |esValue| [=is a platform object=], then [=perform a security check=],

0 commit comments

Comments
 (0)