Skip to content

Commit

Permalink
Editorial: rely more on Shepherd for cross-references
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Aug 29, 2016
1 parent 8906b74 commit ec8e1d3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
28 changes: 12 additions & 16 deletions dom.bs
Expand Up @@ -31,8 +31,6 @@ urlPrefix: https://encoding.spec.whatwg.org/
type: dfn;
text: ascii whitespace
text: utf-8
text: encoding
text: name
urlPrefix: https://www.w3.org/TR/xml/#NT-
type: type
text: Name; url: Name
Expand All @@ -43,7 +41,6 @@ urlPrefix: https://www.w3.org/TR/xml-names/#NT-
text: QName; url: QName
urlPrefix: https://heycam.github.io/webidl/
type: dfn; urlPrefix: #dfn-
text: identifier
text: code unit
urlPrefix: https://html.spec.whatwg.org/multipage/
type: dfn
Expand Down Expand Up @@ -72,11 +69,10 @@ type: interface
url: https://www.w3.org/TR/touch-events/#touchevent-interface
text: TouchEvent
urlPrefix: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#
type: interface; text: ServiceWorkerGlobalScope; url: service-worker-global-scope-interface
type: dfn; urlPrefix: dfn-
text: service worker
text: script resource
text: has ever been evaluated flag
text: script resource; for: service worker
text: has ever been evaluated flag; for: service worker
urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
text: Construct; url: sec-construct; type: abstract-op
</pre>
Expand Down Expand Up @@ -947,10 +943,10 @@ invoked, these steps must be run:

<li><p>Initialize the {{Event/type}} attribute to the <var>type</var> argument.

<li><p>If there is an <var>eventInitDict</var> argument, then for each
<a>dictionary member</a> present, find the attribute on <a>event</a> whose
<a>identifier</a> matches the key of the <a>dictionary member</a> and then set the
attribute to the value of that <a>dictionary member</a>.
<li><p>If there is an <var>eventInitDict</var> argument, then for each <a>dictionary member</a>
present, find the attribute on <a>event</a> whose <a spec=webidl>identifier</a> matches the key of
the <a>dictionary member</a> and then set the attribute to the value of that
<a>dictionary member</a>.

<li><p>Return the <a>event</a>.
</ol>
Expand Down Expand Up @@ -1100,8 +1096,8 @@ method, when invoked, must run these steps:
<ol>
<li>
<p>If <a>context object</a>'s <a>relevant global object</a> is a {{ServiceWorkerGlobalScope}}
object and its associated <a>service worker</a>'s <a>script resource</a>'s
<a>has ever been evaluated flag</a> is set, then <a>throw</a> a <code>TypeError</code>.
object and its associated <a>service worker</a>'s <a for="service worker">script resource</a>'s
<a for="service worker">has ever been evaluated flag</a> is set, then <a>throw</a> a <code>TypeError</code>.
[[!SERVICE-WORKERS]]

<p class="note no-backref">To optimize storing the event types allowed for the service worker and
Expand All @@ -1126,9 +1122,9 @@ method, when invoked, must, run these steps

<ol>
<li><p>If <a>context object</a>'s <a>relevant global object</a> is a {{ServiceWorkerGlobalScope}}
object and its associated <a>service worker</a>'s <a>script resource</a>'s
<a>has ever been evaluated flag</a> is set, then <a>throw</a> a <code>TypeError</code>.
[[!SERVICE-WORKERS]]
object and its associated <a>service worker</a>'s <a for="service worker">script resource</a>'s
<a for="service worker">has ever been evaluated flag</a> is set, then <a>throw</a> a
<code>TypeError</code>. [[!SERVICE-WORKERS]]

<li><p>Let <var>capture</var> be the result of <a>flattening</a> <var>options</var>.

Expand Down Expand Up @@ -4620,7 +4616,7 @@ return "<code>BackCompat</code>" if <a>context object</a>'s <a for=Document>mode
The <dfn attribute for=Document><code>characterSet</code></dfn> attribute's getter,
<dfn attribute for=Document><code>charset</code></dfn> attribute's getter, and
<dfn attribute for=Document><code>inputEncoding</code></dfn> attribute's getter, must return
<a>context object</a>'s <a for=Document>encoding</a>'s <a for=/>name</a>.
<a>context object</a>'s <a for=Document>encoding</a>'s <a for=encoding>name</a>.

The <dfn attribute for=Document><code>contentType</code></dfn> attribute's getter must return the
<a for=Document>content type</a>.
Expand Down
16 changes: 14 additions & 2 deletions dom.html
Expand Up @@ -716,8 +716,8 @@ <h3 class="heading settled" data-level="3.4" id="constructing-events"><span clas
<li>
<p>Initialize the <code class="idl"><a data-link-type="idl" href="#dom-event-type">type</a></code> attribute to the <var>type</var> argument. </p>
<li>
<p>If there is an <var>eventInitDict</var> argument, then for each <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> present, find the attribute on <a data-link-type="dfn" href="#concept-event">event</a> whose <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-identifier">identifier</a> matches the key of the <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> and then set the
attribute to the value of that <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a>. </p>
<p>If there is an <var>eventInitDict</var> argument, then for each <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> present, find the attribute on <a data-link-type="dfn" href="#concept-event">event</a> whose <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-identifier">identifier</a> matches the key of
the <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> and then set the attribute to the value of that <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a>. </p>
<li>
<p>Return the <a data-link-type="dfn" href="#concept-event">event</a>. </p>
</ol>
Expand Down Expand Up @@ -6464,6 +6464,12 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://drafts.csswg.org/cssom-view-1/#dom-range-getboundingclientrect">getBoundingClientRect()</a>
<li><a href="https://drafts.csswg.org/cssom-view-1/#dom-range-getclientrects">getClientRects()</a>
</ul>
<li>
<a data-link-type="biblio">[ENCODING]</a> defines the following terms:
<ul>
<li><a href="https://encoding.spec.whatwg.org/#encoding">encoding</a>
<li><a href="https://encoding.spec.whatwg.org/#name">name</a>
</ul>
<li>
<a data-link-type="biblio">[HTML]</a> defines the following terms:
<ul>
Expand Down Expand Up @@ -6519,6 +6525,11 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://drafts.csswg.org/selectors-4/#parse-a-selector">parse a selector</a>
<li><a href="https://drafts.csswg.org/selectors-4/#scoping-root">scoping root</a>
</ul>
<li>
<a data-link-type="biblio">[SERVICE-WORKERS]</a> defines the following terms:
<ul>
<li><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope-interface">ServiceWorkerGlobalScope</a>
</ul>
<li>
<a data-link-type="biblio">[SVG]</a> defines the following terms:
<ul>
Expand Down Expand Up @@ -6557,6 +6568,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://heycam.github.io/webidl/#call-a-user-objects-operation">call a user object's operation</a>
<li><a href="https://heycam.github.io/webidl/#dfn-callback-this-value">callback this value</a>
<li><a href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary members</a>
<li><a href="https://heycam.github.io/webidl/#dfn-identifier">identifier</a>
<li><a href="https://heycam.github.io/webidl/#invoke-a-callback-function">invoke</a>
<li><a href="https://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a>
<li><a href="https://heycam.github.io/webidl/#dfn-supported-property-names">supported property names</a>
Expand Down

0 comments on commit ec8e1d3

Please sign in to comment.