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 6625705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:48:21+00:00 2026-05-25T21:48:21+00:00

There is a HTML5 conformance test suite with a test for prototype for HTMLCanvasElement

  • 0

There is a HTML5 conformance test suite with a test for prototype for HTMLCanvasElement.

This test fails for Safari, Firefox but passes for Opera on Windows 7.

The test has a script which tries to delete the getContext property of the HTMLCanvasElement, and further trying to read getContext should give undefined.

delete window.HTMLCanvasElement.prototype.getContext;
_assertSame(window.HTMLCanvasElement.prototype.getContext, undefined, "window.HTMLCanvasElement.prototype.getContext", "undefined");

This test fails for WebKit (Safari) because the getContext property has DontDelete attribute and so it does not allow the script to delete this property.

Is there any description in the HTML5 specification which says deletion of getContext property by script is valid?

  • 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-25T21:48:21+00:00Added an answer on May 25, 2026 at 9:48 pm

    From what I understand, the configurability ([[DontDelete]] in ES3, [[Configurable]] in ES5) of getContext method is described in WebIDL — as any other CanvasRenderingContext2D methods.

    Take a look at "Interface Prototype Object" section, which says:

    There must exist an interface prototype object for every interface defined, regardless of whether the interface was declared with the [NoInterfaceObject] extended attribute. The interface prototype object for a particular interface has properties that correspond to the attributes and operations defined on that interface. These properties are described in more detail in sections 4.5.5 and 4.5.6 below.

    And in 4.5.6, you can see:

    For each unique identifier of an operation defined on the interface, there must be a corresponding property on the interface prototype object (if it is a regular operation) or the interface object (if it is a static operation), unless the effective overload set for that identifier and operation and with an argument count of 0 (for the ECMAScript language binding) has no entries.

    The characteristics of such a corresponding property are as follows:

    The name of the property is the identifier.

    The property has attributes { [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true }.

    Note the "[[Configurable]]: true" bit (emphasis mine).

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

Sidebar

Related Questions

Google shows that there are already few generic HTML5 canvas-based libraries available. But no
Is there any defined behaviour if I have an HTML5 VIDEO tag but include
Is there a way to emulate video transition effects in HTML5 like this: http://www.flash-filter.net/mask-transition-effect.phtml
In HTML5 there is a new input type, 'search'. On most browser it's just
Is there any HTML5 support in IE8? Is it on the IE8 roadmap?
What's the best solution for authoring HTML5 in Emacs? Is there a mode that
I am currently developing a little sketching application based on HTML5 Canvas element. There
I know there are HTML entities for 1/2, 1/4, and 3/4, but are there
Somehow, there are really little tutorials out there for html5 video and audio playback.
I'm already using the HTML5 Doctype in all my pages. Are there any other

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.