Bug Tracker

Modify

Ticket #6139 (closed bug: invalid)

Opened 3 years ago

Last modified 2 years ago

Issue with removing size attribute with IE.

Reported by: gnucki Owned by:
Priority: Milestone: 1.4.2
Component: attributes Version: 1.4.1
Keywords: remove size internet explorer IE Cc: gnucki@…
Blocking: Blocked by:

Description

jqObject.attr('size', '1');

alert(jqObject.attr('size')); You can see "1". Everything is ok.

This 2 next lines are ok on Firefox, Safari, Opera and Chrome but fail on IE. jqObject.attr('size', ); jqObject.removeAttr('size');

I replaced with: for (i=0; i < jqObject.get(0).attributes.length; i++) {

if (jqObject.get(0).attributes[i].nodeName == 'size')

jqObject.get(0).attributes[i].nodeValue = ;

} No problem, it's working.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Can you reopen with a complete test case? What element does jqObject refer to?

comment:2 Changed 2 years ago by anonymous

This fiddle could demonstrate the issue:  http://jsfiddle.net/greenlaw110/9rdXs/

Please open the fiddle in IE (any version start from 6 to 9beta)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.