这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 6279f53

Browse files
author
Marcos Cáceres
committed
Chore: ReSpec fixes + enable xref
1 parent 53b752d commit 6279f53

File tree

1 file changed

+14
-33
lines changed

1 file changed

+14
-33
lines changed

index.html

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
wgPublicList: "public-audio",
2929
wgPatentURI: "https://www.w3.org/2004/01/pp-impl/46884/status",
3030
previousPublishDate: "2013-11-26",
31-
previousMaturity: "WD"
31+
previousMaturity: "WD",
32+
xref: "web-platform",
3233
};
3334
</script>
3435
</head>
35-
<body>
36+
<body data-cite="hr-time">
3637
<section id="abstract">
3738
<p>
3839
Some user agents have music devices, such as synthesizers,
@@ -92,32 +93,12 @@ <h2>Introduction</h2>
9293

9394
<section>
9495
<h2>Terminology</h2>
95-
<p>
96-
The concepts <dfn data-cite="HTML/webappapis.html#queue-a-task">queue a
97-
task</dfn> and the terms <dfn data-cite="HTML/webappapis.html#event-handlers">
98-
event handler</dfn> and
99-
<dfn data-cite="HTML/webappapis.html#event-handler-event-type">
100-
event handler event types</dfn> and corresponding <code><dfn data-cite=
101-
"HTML/webappapis.html#eventhandler">EventHandler</dfn></code>, interface are defined in [[HTML]]. </p>
10296
<p>
10397
The <dfn id="WebAudio">Web Audio API</dfn> and its associated interfaces and concepts are defined in [[webaudio]].
10498
</p>
105-
<p>
106-
The <code><dfn data-cite="DOM#event">Event</dfn></code> interface and how to <dfn data-cite=
107-
"DOM#concept-event-fire">fire an event</dfn> are defined in [[DOM]].
108-
</p>
109-
<p>
110-
The <dfn data-cite="hr-time#dom-domhighrestimestamp">DOMHighResTimeStamp</dfn> interface is defined in [[hr-time]].
111-
</p>
11299
<p>
113100
The terms <dfn>MIDI</dfn>, <dfn>MIDI device</dfn>, <dfn>MIDI input port</dfn>, <dfn>MIDI output port</dfn>, <dfn>MIDI interface</dfn>, <dfn>MIDI message</dfn>, <dfn>MIDI System Real-Time message</dfn> and <dfn>system exclusive</dfn> are defined in [[MIDI]].
114-
<p>
115-
<code><dfn data-cite="ECMASCRIPT#sec-promise-objects">Promise</dfn></code> objects are defined in [[ECMASCRIPT]].
116-
</p>
117-
<p>
118-
The <code><dfn data-cite="WEBIDL#dfn-DOMException">DOMException</dfn></code> is defined in [[WEBIDL]].
119101
</p>
120-
<!-- FIXME: This list is not exhaustive. -->
121102
</section>
122103

123104
<section>
@@ -126,7 +107,7 @@ <h2>Obtaining Access to MIDI Devices</h2>
126107
<section>
127108
<h2>Feature Policy Integration</h2>
128109
<p>
129-
<a data-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is a <a data-cite="FEATURE-POLICY#policy-controlled-feature">policy-controlled feature</a>, as defined by <a data-cite="FEATURE-POLICY">Feature Policy</a>.
110+
<a data-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is a <a data-cite="FEATURE-POLICY#policy-controlled-feature">policy-controlled feature</a>, as defined by [[[Feature-Policy]]].
130111
</p>
131112
<p>
132113
The <a data-cite="FEATURE-POLICY#feature-name">feature name</a> for <a data-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is <dfn data-lt="midi-fp" data-lt-noDefault><code>midi</code></dfn>.
@@ -145,7 +126,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
145126
};
146127
</pre>
147128
<dl>
148-
<dt><dfn>requestMIDIAccess</dfn></dt>
129+
<dt><dfn>requestMIDIAccess()</dfn> method</dt>
149130
<dd>
150131
<p>
151132
When invoked, returns a Promise object representing a request for access to MIDI devices on the user's system.
@@ -165,11 +146,11 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
165146
(or not) based on whether system exclusive support is
166147
requested, as system exclusive access has greater privacy and
167148
security implications.</p>
168-
<p>If the user declines or the call is denied for any other reason, the Promise is rejected with a <a>DOMException</a> parameter.
149+
<p>If the user declines or the call is denied for any other reason, the Promise is rejected with a {{DOMException}} parameter.
169150
</p>
170-
<p>
151+
<p data-link-for="Navigator">
171152
When the
172-
<a data-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> method is called, the user
153+
{{requestMIDIAccess()}} method is called, the user
173154
agent MUST run the <dfn>algorithm to request MIDI Access</dfn>:
174155
</p>
175156

@@ -221,7 +202,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
221202
<li><p>Call <var>resolver</var>'s <code>accept(value)</code> method with <var>access</var> as value argument.</p></li>
222203
<li><p>Terminate these steps.</p></li>
223204

224-
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new <a>DOMException</a>.
205+
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new {{DOMException}}.
225206
This exception's .name should be <code>"SecurityError"</code> if the
226207
user or their security settings denied the application from creating a MIDIAccess instance with the requested options, or if the error is the result of <var>document</var> not being <a data-cite="!HTML#allowed-to-use">allowed to use</a> the feature, <code>"AbortError"</code> if the page is going to be closed for a user navigation, <code>"InvalidStateError"</code> if the underlying systems raise any errors, or otherwise it should be <code>"NotSupportedError"</code>.</p></li>
227208
<li><p>Call <var>resolver</var>'s <code>reject(value)</code> method with <var>error</var> as value argument.</p></li>
@@ -337,7 +318,7 @@ <h2 id="MIDIAccess"><dfn>MIDIAccess</dfn> Interface</h2>
337318
MUST be supported by all objects implementing the
338319
<a>MIDIAccess</a> interface.
339320
</p>
340-
<p class="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIAccess</a>, you should remove any <a data-lt="MIDIAccess.onstatechange">onstatechange</a> listeners.</p>
321+
<p class="note">It is important to understand that leaving an {{EventHandler}} attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIAccess</a>, you should remove any <a data-lt="MIDIAccess.onstatechange">onstatechange</a> listeners.</p>
341322
<p id="event-midiaccess-statechange">
342323
Whenever a previously unavailable MIDI port becomes available for use, or an existing port changes the state attribute,
343324
the user agent SHOULD run the following steps:</p>
@@ -429,7 +410,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
429410
MUST be supported by all objects implementing
430411
<a>MIDIPort</a> interface.
431412
</p>
432-
<p class="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIPort</a>, you should remove any <a data-lt="MIDIPort.onstatechange">onstatechange</a> listeners.</p>
413+
<p class="note">It is important to understand that leaving an {{EventHandler}} attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIPort</a>, you should remove any <a data-lt="MIDIPort.onstatechange">onstatechange</a> listeners.</p>
433414
</dd>
434415
<dt><dfn>open</dfn></dt>
435416
<dd>
@@ -525,7 +506,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
525506
<li><p>Terminate these steps.</p></li>
526507

527508
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new
528-
<a>DOMException</a>. This exception's .name should be
509+
{{DOMException}}. This exception's .name should be
529510
<code>"InvalidAccessError"</code> if the port is unavailable.</p></li>
530511

531512
<li><p>Call <var>resolver</var>'s <code>reject(value)</code> method
@@ -733,7 +714,7 @@ <h3 id="MIDIOutput"><dfn>MIDIOutput</dfn> Interface</h3>
733714
</dd>
734715
<dt>optional DOMHighResTimeStamp timestamp</dt>
735716
<dd>
736-
The time at which to begin sending the data to the port (as a <a>DOMHighResTimeStamp</a> - a number of milliseconds measured relative to the navigation start of the document). If <code>timestamp</code> is set to zero (or another time in the past), the data is to be sent as soon as possible.
717+
The time at which to begin sending the data to the port (as a {{DOMHighResTimeStamp}} - a number of milliseconds measured relative to the navigation start of the document). If <code>timestamp</code> is set to zero (or another time in the past), the data is to be sent as soon as possible.
737718
</dd>
738719
</dl>
739720
</dd>
@@ -811,7 +792,7 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
811792

812793
<section data-dfn-for="MIDIMessageEvent">
813794
<h2 id="MIDIMessageEvent"><dfn>MIDIMessageEvent</dfn> Interface</h2>
814-
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM <a>Event</a> <code>timeStamp</code> attribute is defined as a <a>DOMHighResTimeStamp</a>, and represents the high-resolution time of when the event was received or is to be sent.</p>
795+
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM {{Event}} <code>timeStamp</code> attribute is defined as a {{DOMHighResTimeStamp}}, and represents the high-resolution time of when the event was received or is to be sent.</p>
815796
<pre class="idl">
816797
[SecureContext, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
817798
interface MIDIMessageEvent : Event {

0 commit comments

Comments
 (0)