Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 891067 of DOMErrorHandler

  • Revision slug: Web/API/DOMErrorHandler
  • Revision title: DOMErrorHandler
  • Revision id: 891067
  • Created:
  • Creator: fscholz
  • Is current revision? Yes
  • Comment

Revision Content

{{APIRef("DOM")}}{{Obsolete_header}}

NOTE: This is not implemented in Mozilla. For DOMException, see DOMException

Set as "error-handler" parameter in DOMConfiguration.setParameter . Implementation may provide a default handler. DOMError.relatedData will contain closest node to where error occurred or contain the Document node if it is unable to be determined. Document mutations from within the error handler result in implementation-dependent behavior. If there are to be multiple errors, the sequence and numbers of the errors passed to the error handler are also implementation dependent. The application using the DOM implementation implements this interface:

Properties

This interface neither implements, nor inherits, any property.

Methods

{{domxref("DOMErrorHandler.handleError()")}}
If returns false, DOM implementation should stop processing; if true, may continue depending on {{domxref("DOMError.severity")}}.

Specifications

Specification Status Comment
{{SpecName('DOM3 Core', 'core.html#ERROR-Interfaces-DOMErrorHandler', 'DOMErrorHandler')}} {{Spec2('DOM3 Core')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

Revision Source

<p>{{APIRef("DOM")}}{{Obsolete_header}}</p>

<div class="warning">
<p>NOTE:&nbsp;This is not implemented in Mozilla. For DOMException, see <a href="/En/DOM/DOMException" title="En/DOM/DOMException">DOMException</a></p>
</div>

<p>Set as "error-handler"&nbsp;parameter in <a class="internal" href="/En/DOM/DOMConfiguration.setParameter" title="En/DOM/DOMConfiguration.setParameter"><code>DOMConfiguration.setParameter</code></a> . Implementation may provide a default handler. <a class="internal" href="/En/DOM/DOMError.relatedData" title="En/DOM/DOMError.relatedData"><code>DOMError.relatedData</code></a> will contain closest node to where error occurred or contain the Document node if it is unable to be determined. Document mutations from within the error handler result in implementation-dependent behavior. If there are to be multiple errors, the sequence and numbers of the errors passed to the error handler are also implementation dependent. The application using the DOM&nbsp;implementation implements this interface:</p>

<h2 id="Properties">Properties</h2>

<p><em>This interface neither implements, nor inherits, any property. </em></p>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("DOMErrorHandler.handleError()")}}</dt>
 <dd>If returns <code>false</code>, DOM&nbsp;implementation should stop processing; if true, may continue depending on {{domxref("DOMError.severity")}}.</dd>
</dl>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('DOM3 Core', 'core.html#ERROR-Interfaces-DOMErrorHandler', 'DOMErrorHandler')}}</td>
   <td>{{Spec2('DOM3 Core')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision