Bug Tracker

Opened 16 years ago

Closed 16 years ago

#1513 closed bug (duplicate)

$('<input/>').attr() failure in IE6

Reported by: uence Owned by:
Priority: minor Milestone: 1.1.2
Component: core Version: 1.1.4
Keywords: ie6 Cc:
Blocked by: Blocking:


The code below fails in IE6 with the error:

"This command is unsupported."

at line 562 of jquery-latest.js v.

            value:'Start over',

The issue seems to be with adding attributes using the method above to the INPUT element.

Change History (4)

comment:1 Changed 16 years ago by arrix

$(document.createElement('input'))[0].type = 'submit';

works fine but

$('<input/>')[0].type = 'submit';

fails with "This command is unsupported" error.

comment:2 Changed 16 years ago by arrix

In IE, we can change the type attribute of an <input> created by document.createElement, but not one created by wrapper.innerHTML = '<input/>'.

This is an odd in IE. Should jQuery fix it?

comment:3 Changed 16 years ago by shameister

Same problem like http://dev.jquery.com/ticket/1359

jQuery will not fix this. Documentation available at: http://docs.jquery.com/Core#.24.28_html_.29

comment:4 Changed 16 years ago by john

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