Ticket #2531097 (closed defect)

Reporter


Stuart Colville
Opened: 09/15/11
Last modified: 05/10/12
Status: closed
Type: defect
Resolution: fixed

Owner


Matt Sweeney
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Finding elements by attribute selector when set as a boolean fails in IE 6/7
Description:

To set a boolean value via Node.setAttribute it's necessary to coerce it to a string to then be able to find it with attribute selectors in IE.

Node.getAttribute explicitly uses a flag which ensures IE will return the attr value as a string. This same flag is not used in the selector lookup which means that using something like
Node.setAttribute("aria-disabled", false) and then Y.one('[aria-disabled="false"]) will fail in IE 6 and 7 but Node.getAttribute will return the string "false".

Type: defect Observed in Version: 3.4.0
Component: Node Severity: S3 (normal)
Assigned To: Matt Sweeney Target Release: 3.5.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: IE 6.x,IE 7.x
URL:
Test Information:

Here's a test case detailing the issue:

http://jsfiddle.net/muffinresearch/HPwxW/15/

Change History

Jenny Donnelly

YUI Developer

Posted: 09/15/11
  • component changed from None to Node
  • location changed to Library Code
  • owner changed from Jenny Donnelly to Matt Sweeney
  • priority changed to P3 (normal)
  • status changed from new to assigned

Matt Sweeney

YUI Developer

Posted: 11/7/11
  • milestone changed to 3.5.0
  • status changed from assigned to accepted

Matt Sweeney

YUI Developer

Posted: 02/1/12
  • estimated changed from 0 to 0.5
  • remaining changed from 0 to 0.5
  • sprint changed to sprint 3

Matt Sweeney

YUI Developer

Posted: 02/29/12
  • completed changed from 0 to 0.5
  • remaining changed from 0.5 to 0
  • status changed from accepted to checkedin

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • resolution changed to fixed
  • status changed from checkedin to closed

checkedin -> closed