Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving beforeinput & getTargetRanges to release notes #2939

Merged
merged 4 commits into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 0 additions & 80 deletions files/en-us/mozilla/firefox/experimental_features/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -830,86 +830,6 @@ <h4 id="WebGPU_API">WebGPU API</h4>

<h3 id="HTML_DOM_API">HTML DOM API</h3>

<h4 id="Global_event_beforeinput">Global event: beforeinput</h4>

<p>The global {{domxref("HTMLElement.beforeinput_event", "beforeinput")}} event is sent to an {{HTMLElement("input")}} element—or any element whose {{htmlattrxref("contenteditable")}} attribute is enabled—immediately before the element's value changes.</p>

<table class="standard-table" style="max-width: 42rem;">
<thead>
<tr>
<th scope="col" style="vertical-align: bottom;">Release channel</th>
<th scope="col" style="vertical-align: bottom;">Version added</th>
<th scope="col" style="vertical-align: bottom;">Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Nightly</th>
<td>74</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Developer Edition</th>
<td>74</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Beta</th>
<td>74</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Release</th>
<td>74</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Preference name</th>
<th colspan="2"><code>dom.input_events.beforeinput.enabled</code></th>
</tr>
</tbody>
</table>

<h4 id="InputEvent.getTargetRanges">InputEvent.getTargetRanges()</h4>

<p>The {{domxref('InputEvent.getTargetRanges()', 'getTargetRanges()')}} method of the {{domxref("InputEvent")}} interface returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.</p>

<table class="standard-table" style="max-width: 42rem;">
<thead>
<tr>
<th scope="col" style="vertical-align: bottom;">Release channel</th>
<th scope="col" style="vertical-align: bottom;">Version added</th>
<th scope="col" style="vertical-align: bottom;">Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Nightly</th>
<td>83</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Developer Edition</th>
<td>83</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Beta</th>
<td>83</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Release</th>
<td>83</td>
<td>No</td>
</tr>
<tr>
<th scope="row">Preference name</th>
<th colspan="2"><code>dom.input_events.beforeinput.enabled</code></th>
</tr>
</tbody>
</table>

<h4 id="HTMLMediaElement_method_setSinkId">HTMLMediaElement method: setSinkId()</h4>

<p>{{domxref("HTMLMediaElement.setSinkId()")}} allows you to set the sink ID of an audio output device on an {{domxref("HTMLMediaElement")}}, thereby changing where the audio is being output. See {{bug(934425)}} for more details.</p>
Expand Down
4 changes: 4 additions & 0 deletions files/en-us/mozilla/firefox/releases/87/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ <h3 id="APIs">APIs</h3>

<h4 id="DOM">DOM</h4>

<ul>
<li>The {{domxref("HTMLElement.beforeinput_event", "beforeinput")}} event and {{domxref('InputEvent.getTargetRanges()', 'getTargetRanges()')}} method are now enabled by default. They allow web apps to override text edit behavior before the browser modifies the DOM tree, and provide more control over input events to improve performance. The global {{domxref("HTMLElement.beforeinput_event", "beforeinput")}} event is sent to an {{HTMLElement("input")}} element — or any element whose {{htmlattrxref("contenteditable")}} attribute is enabled — immediately before the element's value changes. The {{domxref('InputEvent.getTargetRanges()', 'getTargetRanges()')}} method of the {{domxref("InputEvent")}} interface returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.</li>
</ul>

<h4 id="Media_WebRTC_and_Web_Audio">Media, WebRTC, and Web Audio</h4>

<h4 id="Removals_7">Removals</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

<p>The DOM <strong><code>beforeinput</code></strong> event fires when the value of an {{HTMLElement("input")}}, {{HTMLElement("select")}}, or {{HTMLElement("textarea")}} element is about to be modified. The event also applies to elements with {{domxref("HTMLElement.contentEditable", "contenteditable")}} enabled, and to any element when {{domxref("Document.designMode", "designMode")}} is turned on.</p>

<p>This allows web apps to override text edit behavior before the browser modifies the DOM tree, and provides more control over input events to improve performance.</p>

<p>In the case of <code>contenteditable</code> and <code>designMode</code>, the event target is the <strong>editing host</strong>. If these properties apply to multiple elements, the editing host is the nearest ancestor element whose parent isn't editable.</p>

<table class="properties">
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/inputevent/gettargetranges/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
---
<p>{{APIRef("DOM Events")}}</p>

<p>The <strong><code>getTargetRanges()</code></strong> method of the
{{domxref("InputEvent")}} interface returns an array of static ranges that will be
affected by a change to the DOM if the input event is not canceled.</p>
<p>The <strong><code>getTargetRanges()</code></strong> method of the {{domxref("InputEvent")}} interface returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.</p>

<p>This allows web apps to override text edit behavior before the browser modifies the DOM tree, and provides more control over input events to improve performance.</p>

<h2 id="Syntax">Syntax</h2>

Expand Down