Skip to content

Instantly share code, notes, and snippets.

@sidvishnoi
Last active November 25, 2020 10:16
Show Gist options
  • Save sidvishnoi/a7a406861be71cf7f6873d78c7e3e8c6 to your computer and use it in GitHub Desktop.
Save sidvishnoi/a7a406861be71cf7f6873d78c7e3e8c6 to your computer and use it in GitHub Desktop.
ReSpec external definitions without xref
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
Replace me with a real title
</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" async class=
"remove"></script>
<script class="remove">
var respecConfig = {
specStatus: "ED",
subtitle: "Subtitle",
shortName: "shortname-api",
editors: [{ name: "Your Name" }],
github: "https://github.com/w3c/some-API/",
testSuiteURI: "https://w3c-test.org/some-API/",
implementationReportURI: "https://w3c.github.io/test-results/some-API",
};
</script>
</head>
<body>
<section id="abstract">
<p>This is required.</p>
</section>
<section id="sotd">
<p>This is required.</p>
</section>
<section>
<h2>Some interface</h2>
<pre class="idl">
[Exposed=Window]
interface Foo {
};
</pre>
</section>
<section class="normative">
<h2>Terminology</h2>
<section>
<h2>Not recommended</h2>
<p>
Instead of: <dfn>JavaScript realm</dfn> is used as <a href=
"https://tc39.es/ecma262/#sec-code-realms" title=
"Definition of JavaScript realm in ECMAScript">defined in
ECMAScript</a> [[!ECMASCRIPT]].
</p>
<p>
[=JavaScript realm=] will link to local definition.
</p>
</section>
<section>
<h2>Recommended</h2>
<p>
Try: The term <dfn data-cite="ECMASCRIPT#current-realm">current
realm</dfn> is defined in [[ECMASCRIPT]].
</p>
<p>
[= current realm =] will link to right external definition.
</p>
</section>
</section>
<section id="index"></section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment