Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13558 closed bug (cantfix)

jQuery 1.9.1 prop() in IE8

Reported by: epicsign@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

<textarea required=""></textarea>

$('textarea').prop('required', true); => <textarea required="true"></textarea>

$('textarea').prop('required', false); => <textarea required="false"></textarea>

$('textarea').prop('required', null); => <textarea required="null"></textarea>

:(

Change History (2)

comment:1 Changed 7 years ago by anonymous

also IE6, IE7, IE8, IE9(maybe)

comment:2 Changed 7 years ago by timmywil

Resolution: cantfix
Status: newclosed

IE8 treats attributes and properties as the same thing. What you're seeing is an issue with IE8, not jQuery. Also, keep in mind that required is a boolean property with only two valid values: true and false, which is not related to the value of the attribute required.

Note: See TracTickets for help on using tickets.