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:
Description

The code below fails in IE6 with the error:

"This command is unsupported."

''at line 562 of jquery-latest.js v.1.1.3.1''


$('<input/>')
      .attr({
            type:'submit',
            name:'cancel',
            value:'Start over',
            className:'button',
            autocomplete:'off'})

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 http://dev.jquery.com/ticket/1359

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

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

milestone: 1.1.41.1.2
resolution: → duplicate
status: newclosed
version: 1.1.31.1.4