Skip to main content

Bug Tracker

Side navigation

#1513 closed bug (duplicate)

Opened August 17, 2007 04:30PM UTC

Closed August 24, 2007 11:43PM UTC

$('<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.

Attachments (0)
Change History (4)

Changed August 23, 2007 03:31PM UTC by arrix comment:1

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

works fine but

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

fails with "This command is unsupported" error.

Changed August 24, 2007 06:00AM UTC by arrix comment:2

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?

Changed August 24, 2007 11:41PM UTC by shameister comment:3

Same problem like

jQuery will not fix this. Documentation available at:

Changed August 24, 2007 11:43PM UTC by john comment:4

resolution: → duplicate
status: newclosed