Skip to content

Commit d345143

Browse files
committed
Fix escape style of [[GetOwnProperty]] and similar internal methods
ReSpec and Bikeshed requires different escaping here...
1 parent 658ea86 commit d345143

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

index.bs

+24-24
Original file line numberDiff line numberDiff line change
@@ -339,27 +339,27 @@ In all other cases it must be true.
339339
<p>The result of <dfn lt="getting properties|getting the
340340
property|getting a property">getting a property</dfn> with argument <var>name</var> is
341341
defined as being the same as the result of calling
342-
<a>Object</a>.<a>[[\GetOwnProperty]]</a>(<var>name</var>).
342+
<a>Object</a>.<a>\[[GetOwnProperty]]</a>(<var>name</var>).
343343

344344
<p>The result of <dfn lt="getting the property with
345345
default|getting a property with default">getting a property with default</dfn> with
346346
arguments <var>name</var> and <var>default</var> is defined as being
347347
the same as the result of calling
348-
<a>Object</a>.<a>[[\GetOwnProperty]]</a>(<var>name</var>) if that
348+
<a>Object</a>.<a>\[[GetOwnProperty]]</a>(<var>name</var>) if that
349349
results in a value other than <code>undefined</code>
350350
and <var>default</var> otherwise.
351351

352352
<p><dfn lt='set a property'>Setting a property</dfn> with
353353
arguments <var>name</var> and <var>value</var> is defined as being
354354
the same as calling
355-
<a>Object</a>.<a>[[\Put]]</a>(<var>name</var>, <var>value</var>).
355+
<a>Object</a>.<a>\[[Put]]</a>(<var>name</var>, <var>value</var>).
356356

357357
<p>The result of <dfn>JSON serialization</dfn> with <var>object</var>
358358
of type JSON <a>Object</a> is defined as the result of
359-
calling <code>JSON.</code><a>[[\Stringify]]</a>(<var>object</var>).
359+
calling <code>JSON.</code><a>\[[Stringify]]</a>(<var>object</var>).
360360

361361
<p>The result of <dfn lt='parsing as json|JSON deserialization'>JSON deserialization</dfn> with <var>text</var> is defined as
362-
the result of calling <code>JSON.</code><a>[[\Parse]]</a>(<var>text</var>).
362+
the result of calling <code>JSON.</code><a>\[[Parse]]</a>(<var>text</var>).
363363
</section> <!-- /Algorithms -->
364364

365365

@@ -3431,7 +3431,7 @@ make the tab containing the <a>browsing context</a> the selected tab.
34313431
<li><p>Let <var>child window</var> be
34323432
the <a><code>WindowProxy</code></a> object obtained by
34333433
calling
3434-
<var>window</var>.<a lt='window.[[\getOwnProperty]]'><code>[[\GetOwnProperty]]</code></a>
3434+
<var>window</var>.<a lt='window.\[[getOwnProperty]]'><code>\[[GetOwnProperty]]</code></a>
34353435
(<var>id</var>).
34363436

34373437
<li><p>Set the <a>current browsing context</a> to
@@ -4916,7 +4916,7 @@ The <a>remote end steps</a> are:
49164916
with <a>url variable</a> <var>element id</var>.
49174917

49184918
<li><p>Let <var>property</var> be the result of calling
4919-
the <var>element</var>.<a>[[\GetProperty]]</a>(<var>name</var>).
4919+
the <var>element</var>.<a>\[[GetProperty]]</a>(<var>name</var>).
49204920

49214921
<li><p>Let <var>result</var> be the value of
49224922
<var>property</var> if not <a>undefined</a>, or <a><code>null</code></a>.
@@ -6206,7 +6206,7 @@ a <a>remote end</a> must run the following steps:
62066206

62076207
<p>If at any point during the algorithm a <a>user prompt</a> appears,
62086208
abort all subsequent substeps of this algorithm, and return
6209-
<a>Completion</a> { [[\Type]]: <code>normal</code>, [[\Value]]: <a><code>null</code></a>, [[\Target]]: <code>empty</code> }.
6209+
<a>Completion</a> { \[[Type]]: <code>normal</code>, \[[Value]]: <a><code>null</code></a>, \[[Target]]: <code>empty</code> }.
62106210

62116211
<ol>
62126212
<li><p>Let <var>window</var> be the <a>associated window</a>
@@ -6222,7 +6222,7 @@ a <a>remote end</a> must run the following steps:
62226222
<li><p>If <var>body</var> is not parsable as a <a>FunctionBody</a>
62236223
or if parsing detects an <a>early error</a>,
62246224
return
6225-
<a>Completion</a> { [[\Type]]: <code>normal</code>, [[\Value]]: <a><code>null</code></a>, [[\Target]]: <code>empty</code> }.
6225+
<a>Completion</a> { \[[Type]]: <code>normal</code>, \[[Value]]: <a><code>null</code></a>, \[[Target]]: <code>empty</code> }.
62266226

62276227
<li><p>If <var>body</var> begins with a <a>directive prologue</a>
62286228
that contains a <a>use strict directive</a>
@@ -6366,34 +6366,34 @@ The first argument provided to the function will be serialized to JSON and retur
63666366
<ol>
63676367
<li><p>Let <var>resolvingFunctions</var> be <a>CreateResolvingFunctions</a>(<var>promise</var>).
63686368

6369-
<li><p>Append <var>resolvingFunctions</var><code>.[[\Resolve]]</code> to
6369+
<li><p>Append <var>resolvingFunctions</var><code>.\[[Resolve]]</code> to
63706370
<var>arguments</var>.
63716371

63726372
<li><p>Let <var>result</var> be the result of calling
63736373
<a>execute a function body</a>, with arguments
63746374
<var>body</var> and <var>arguments</var>.
63756375

6376-
<li><p>If <var>scriptResult</var>.[[\Type]] is not <code>normal</code>, then <a>reject</a>
6377-
<var>promise</var> with value <var>scriptResult</var>.[[\Value]], and abort these steps.
6376+
<li><p>If <var>scriptResult</var>.\[[Type]] is not <code>normal</code>, then <a>reject</a>
6377+
<var>promise</var> with value <var>scriptResult</var>.\[[Value]], and abort these steps.
63786378

63796379
<p class=note>Prior revisions of this specification did not recognize the
63806380
return value of the provided script. In order to preserve legacy behavior,
63816381
the return value only influences the command if it is a "thenable" object or
63826382
if determining this produces an exception.
63836383

6384-
<li><p>If <a lt="ecmascript type">Type</a>(<var>scriptResult</var>.[[\Value]])
6384+
<li><p>If <a lt="ecmascript type">Type</a>(<var>scriptResult</var>.\[[Value]])
63856385
is not <a>Object</a>, then abort these steps.
63866386

6387-
<li><p>Let <var>then</var> be <a>Get</a>(<var>scriptResult</var>.[[\Value]], "then").
6387+
<li><p>Let <var>then</var> be <a>Get</a>(<var>scriptResult</var>.\[[Value]], "then").
63886388

6389-
<li><p>If <var>then</var>.[[\Type]] is not <code>normal</code>, then <a>reject</a>
6390-
<var>promise</var> with value <var>then</var>.[[\Value]], and abort these steps.
6389+
<li><p>If <var>then</var>.\[[Type]] is not <code>normal</code>, then <a>reject</a>
6390+
<var>promise</var> with value <var>then</var>.\[[Value]], and abort these steps.
63916391

6392-
<li><p>If <a>IsCallable</a>(<var>then</var>.[[\Type]]) is <code>false</code>,
6392+
<li><p>If <a>IsCallable</a>(<var>then</var>.\[[Type]]) is <code>false</code>,
63936393
then abort these steps.
63946394

63956395
<li><p>Let <var>scriptPromise</var> be <a>PromiseResolve</a>(<a>Promise</a>,
6396-
<var>scriptResult</var>.[[\Value]]).
6396+
<var>scriptResult</var>.\[[Value]]).
63976397

63986398
<li><p>Upon fulfillment of <var>scriptPromise</var> with value <var>v</var>,
63996399
<a>resolve</a> <var>promise</var> with value <var>v</var>.
@@ -9740,10 +9740,10 @@ to automatically sort each list alphabetically.
97409740
from the ECMAScript Language Specification:
97419741
<ul>
97429742
<!-- Call --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-13.2.1>Call</a></dfn>
9743-
<!-- GetOwnProperty --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.1>[[\GetOwnProperty]]</a></dfn>
9744-
<!-- GetProperty --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.2>[[\GetProperty]]</a></dfn>
9743+
<!-- GetOwnProperty --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.1>\[[GetOwnProperty]]</a></dfn>
9744+
<!-- GetProperty --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.2>\[[GetProperty]]</a></dfn>
97459745
<!-- Index of --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.7>Index of</a></dfn>
9746-
<!-- Put --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.5>[[\Put]]</a></dfn>
9746+
<!-- Put --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-8.12.5>\[[Put]]</a></dfn>
97479747
<!-- Substring --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.15>Substring</a></dfn>
97489748
</ul>
97499749

@@ -9758,9 +9758,9 @@ to automatically sort each list alphabetically.
97589758
<!-- null --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.11><code>null</code></a></dfn>
97599759
<!-- Number --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.19>Number</a></dfn>
97609760
<!-- Object --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.2.1>Object</a></dfn>
9761-
<!-- Parse --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.12.2>[[\Parse]]</a></dfn>
9761+
<!-- Parse --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.12.2>\[[Parse]]</a></dfn>
97629762
<!-- String --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.18>String</a></dfn>
9763-
<!-- Stringify --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.12.3>[[\Stringify]]</a></dfn>
9763+
<!-- Stringify --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-15.12.3>\[[Stringify]]</a></dfn>
97649764
<!-- ToInteger --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger>ToInteger</a></dfn>
97659765
<!-- undefined --> <li><dfn><a href=https://www.ecma-international.org/ecma-262/5.1/#sec-4.3.9>Undefined</a></dfn>
97669766
</ul>
@@ -9836,7 +9836,7 @@ to automatically sort each list alphabetically.
98369836
<!-- File upload state --> <li><dfn><a href="https://html.spec.whatwg.org/#file-upload-state-(type=file)">File upload state</a></dfn>
98379837
<!-- Focusing steps --> <li><dfn><a href="https://html.spec.whatwg.org/#focusing-steps">Focusing steps</a></dfn>
98389838
<!-- Fousable area --><li><dfn><a href=https://html.spec.whatwg.org/#focusable-area>Focusable area</a></dfn>
9839-
<!-- GetOwnProperty of a Window object --> <li><dfn lt="window.[[\getOwnProperty]]"><a href=https://html.spec.whatwg.org/#windowproxy-getownproperty><code>[[\GetOwnProperty]]</code> of a <code>Window</code> object</a></dfn>
9839+
<!-- GetOwnProperty of a Window object --> <li><dfn lt="window.\[[getOwnProperty]]"><a href=https://html.spec.whatwg.org/#windowproxy-getownproperty><code>\[[GetOwnProperty]]</code> of a <code>Window</code> object</a></dfn>
98409840
<!-- HTMLAllCollection --> <li><dfn><a href=https://html.spec.whatwg.org/#htmlallcollection><code>HTMLAllCollection</code></a></dfn>
98419841
<!-- HTMLFormControlCollection --> <li><dfn><a href=https://html.spec.whatwg.org/#htmlformcontrolscollection><code>HTMLFormControlsCollection</code></a></dfn>
98429842
<!-- HTMLOptionsCollection --> <li><dfn><a href=https://html.spec.whatwg.org/#htmloptionscollection><code>HTMLOptionsCollection</code></a></dfn>

0 commit comments

Comments
 (0)