YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528644 (closed defect)

Reporter


Ian Henshaw
Opened: 02/21/10
Last modified: 03/31/10
Status: closed
Type: defect
Resolution: fixed

Owner


Matt Sweeney
Target Release: 3.1.0
Priority: P3 (normal)
Summary: Passing an array of Y.Node objects to Y.all to create a Y.NodeList doesn't work as expected.
Description:

When passing an array of nodes to Y.all to create a NodeList, if the nodes are native DOM nodes, all seems fine. However, if the nodes are Y.Node instances, a NodeList is created, but it doesn't
function as it should.

Type: defect Observed in Version: 3.0.0
Component: NodeList Severity: S3 (normal)
Assigned To: Matt Sweeney Target Release: 3.1.0
Location: Library Code Priority: P3 (normal)
Tags: all, nodelist, node Relates To:
Browsers: Firefox 3.x - All,IE 8.x
URL: http://fizix.net/rnd/yui3/bugs/y.all/
Test Information:

The example at the URL attached to this ticket shows that applying a filter to the resultant NodeList does not return the DIV it should. However, if you change the arr.push( node ); to arr.push(
node._node ); it functions fine. Please be advised I have only tried this in Firefox 3 and IE8, but due to the nature of the problem, I expect it to occur for all browsers.

Change History

Matt Sweeney

YUI Developer

Posted: 03/3/10
  • location changed to Library Code
  • milestone changed to 3.1.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Matt Sweeney

YUI Developer

Posted: 03/13/10
  • status changed from accepted to checkedin

George

YUI Developer

Posted: 03/30/10
  • resolution changed to fixed

George

YUI Developer

Posted: 03/31/10
  • status changed from checkedin to closed