forked from tc39/ecmarkup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautolinking.html
36 lines (34 loc) · 2.8 KB
/
autolinking.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<head><meta charset="utf-8"></head><body><div id="shortcuts-help">
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Jump to search box</span><code>/</code></li>
</ul></div><div id="spec-container">
<emu-clause id="sec-foo">
<h1><span class="secnum">1</span> Autolinking</h1>
<p>Type, type, <emu-xref aoid="Type"><a href="https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values">Type</a></emu-xref>(), type()</p>
<p><emu-xref href="#sec-array-constructor"><a href="https://tc39.es/ecma262/#sec-array-constructor">%Array%</a></emu-xref> and %ArrayPrototype% from ES6 should link (but not %Arrayprototype%).</p>
<p><dfn tabindex="-1">Lowercase</dfn></p>
<p><dfn tabindex="-1">strict mode</dfn></p>
<p><dfn tabindex="-1">%Percent%</dfn></p>
<p><dfn tabindex="-1">extra spaces</dfn></p>
<p><dfn tabindex="-1">Await</dfn></p>
<p><dfn id="variants" variants="vOne, vTwo" tabindex="-1">Variants</dfn></p>
<p><emu-eqn id="𝔽" aoid="𝔽" class="inline">𝔽(<var>x</var>)</emu-eqn></p>
</emu-clause>
<emu-clause id="sec-bar">
<h1><span class="secnum">2</span> Autolinking 2</h1>
<p>lowercase should not autolink. But <emu-xref href="#sec-foo" id="_ref_0"><a href="#sec-foo">Lowercase</a></emu-xref> should. But not LowerCase.</p>
<p><emu-xref href="#sec-foo" id="_ref_1"><a href="#sec-foo">Strict mode</a></emu-xref> shoud link. But Strict Mode should not. Also, <emu-xref href="#sec-foo" id="_ref_2"><a href="#sec-foo">strict
mode</a></emu-xref> can be wrapped across lines and contain extra whitespace.</p>
<p><emu-xref href="#sec-foo" id="_ref_3"><a href="#sec-foo">extra spaces</a></emu-xref> in a dfn should be narrowed to one space.</p>
<p><emu-xref href="#sec-foo" id="_ref_4"><a href="#sec-foo">%Percent%</a></emu-xref> should autolink.</p>
<p>Vars to dfns should be vars not dfns: <var>Lowercase</var>.</p>
<p>Also, no autolinks in <a href="#">anchors: Lowercase</a>.</p>
<p>Similarly, no autolinks for <sub>[Await]</sub>.</p>
<p><emu-xref href="#variants" id="_ref_5"><a href="#variants">Variants</a></emu-xref> like <emu-xref href="#variants" id="_ref_6"><a href="#variants">vOne</a></emu-xref> and <emu-xref href="#variants" id="_ref_7"><a href="#variants">vTwo</a></emu-xref> should autolink, including when capitalized as in <emu-xref href="#variants" id="_ref_8"><a href="#variants">VOne</a></emu-xref>.</p>
<emu-alg><ol><li>Non-word-chars AOs still link when invoked, like <emu-xref aoid="𝔽" id="_ref_9"><a href="#𝔽">𝔽</a></emu-xref>(<var>x</var>).</li></ol></emu-alg>
</emu-clause>
<p><emu-xref href="#sec-array-constructor"><a href="https://tc39.es/ecma262/#sec-array-constructor">%Array%</a></emu-xref> and %ArrayPrototype% outside of clauses is ok.</p>
</div></body>