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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:04:02+00:00 2026-05-13T02:04:02+00:00

I am actually debugging an application for IE8 (after IE6, IE7 now IE8). I

  • 0

I am actually debugging an application for IE8 (after IE6, IE7 now IE8). I went received a bug in one of my interface when we were doing an action on a dropdown and I wondered why it wasn’t happening before. I finally found out that a drop down (or a select) calling a method named “role()” directly wasn’t supported.

Does anyone know why?

Here’s an example of the bug:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function rolea(dropdown){
    alert("value");
    //role();
}

function role(){
    alert("value");
}
</script>
</head>
<body>

<select onchange="role()" name="select1">
    <option>a</option>
    <option>b</option>
</select>
</body>
</html>

If we call “role()” it does not work and I receive the error :
Line: 18
Error: Object doesn’t support this action

When I call “rolea()” it works and the JavaScript alert shows up. And also if I try to call “role()” from “rolea()” it also works.

  • 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-13T02:04:02+00:00Added an answer on May 13, 2026 at 2:04 am

    IE8 supports assistive technology, which defines the accessibility features through “role” and “aria” attribute at the nodes. Role is reserved word in IE, inside the DOM scope.

    If you do <select onchange="alert(typeof(role))" name="select1"> you will see that this is a string. Trying to execute string as a function causes error. (To get the alert work, remove your role function declaration and see it in action).

    You can read here more http://dev.w3.org/html5/spec/Overview.html#annotations-for-assistive-technology-products-aria

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

Sidebar

Related Questions

I'm considering creating a simple remote debugging application for Javascript. Actually, I want to
I get the error changes not allowed when unmanaged debugging is enabled Actually I
While debugging an F# application, I would like to be able to invoke an
I've enabled iterator debugging in an application by defining _HAS_ITERATOR_DEBUGGING = 1 I was
While debugging an application earlier, I noticed in Web Inspector that it appears a
I'm debugging a jnlp application, and I used to be able to remote debug
I'm debugging my rails application when the user enters a new file Uload_image to
Is it possible in a DirectX11 application in VisualStudio2010 while debugging to step through
As in title: to be sure, I was debugging my application, and so in
I am debugging an issue in a legacy PHP application where a certain column

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.