Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#120 closed bug (invalid)

.attr() not working in Internet Explorer

Reported by: kkaefer Owned by:
Priority: major Milestone: 1.0
Component: core Version: 1.0
Keywords: attr Cc:
Blocked by: Blocking:

Description

The function jQuery.attr() doesn't work in Internet Explorer (I tested 6 and 7) anymore.

A test case is here: http://dump.kkaefer.com/jquery-testcase/01-attr.html

The input field should change to a button. Internet Explorer however, shows this error message (translated from German): "The 'type' property could not be found. This command isn't supported." on line 1081.

Change History (2)

comment:1 Changed 17 years ago by dave.methvin

Remove all jQuery code and insert this code, the same thing happens in IE--the text field does not change to a button.

window.onload = function() {
 document.getElementsByTagName('input')[0].type = 'button';
 document.getElementsByTagName('input')[0].value = 'Click Me';
};

In the past, were you able to get IE to change text fields to buttons, or is this something you are trying for the first time? The Microsoft documentation for input[@type=text] says this: "As of Microsoft Internet Explorer 5, the type property is read/write-once, but only when an input element is created with the createElement method and before it is added to the document."

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/input.asp

comment:2 Changed 17 years ago by anonymous

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.