Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7405145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:21:31+00:00 2026-05-29T05:21:31+00:00

Introduction DOMError is an interface defined by the DOM. I would like to check

  • 0

Introduction

DOMError is an interface defined by the DOM.

I would like to check whether a browser supports it. A naive check is

window.DOMError !== undefined

A better check would be to use an action that throws a DOMError and check that

err instanceof DOMError === true

Question

What actions throw DOMErrors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:21:31+00:00Added an answer on May 29, 2026 at 5:21 am

    A DOMError is a non-exception-based error condition. It will never be thrown, except in as much as an object that implements both DOMError and DOMException might be thrown as a DOMException.

    It is expected that the concrete class implementing DOMError and DOMException may be the same in many DOM implementations, but they are separated in the spec for the benefit of languages with bindings to DOMException that would make it hard to re-use the existing implementation. For example languages without native exceptions may have an out-of-band error-signalling channel that can’t really be dumped as an object onto a property like a DOMError can.

    DOMError as drafted in DOM4 is a trivial placeholder, holding only a name string. It is expected that any specs that build on it will add some properties to encapsulate more useful information.

    Currently it is used by the W3 File API for errors in FileReader, which, being an asynchronous interface, doesn’t have anywhere useful to throw exceptions. The File API doesn’t add any extra properties to DOMError or a subinterface as yet, but both it and the DOM4 spec are likely to undergo changes before they get near Recommendation status.

    DOMError as originally introduced in DOM Level 3 Core provided an extended error interface with more in-depth information on where in the document the error occurred. It was intended for the serialiser and parser processes in DOM Level 3 LS, but is included in Core for the use of the document.normalizeDocument method, which also simulates a serialise/parse cycle.

    Today’s browsers don’t have a DOMError because they don’t support any of DOM 4, DOM Level 3 LS , or normalizeDocument. But other non-browser DOM implementations may; pxdom for one has the DOM 3 interfaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

with the introduction of iPad 2, I would like to use the Wikitude API
Introduction: Now I know this question could be very broad and it would be
Introduction elem.hidden is a new property that allows to hide elements and detect whether
Introduction I am planning to create a widget much like, Facebook provides for likes
In A Brief Introduction to Rvalue References , forward is defined as follows: template
I'm following this introduction to Haskell , and this particular place (user defined types
Before the introduction to generics to the Java language I would have written classes
Introduction I've always been searching for a way to make Visual Studio draw a
Introduction In my current organisation, we have many desktop and web applications all feeding
Introduction I have been so annoyed by applications that have a startup dialog which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.