Ticket #2529933 (checkedin defect)
Reporter Jeff Craig |
Opened: 02/3/11 Last modified: 02/3/11 Status: checkedin Type: defect |
Owner Matt Sweeney |
Target Release: Priority: P3 (normal) |
|---|---|---|---|
| Summary: | nodelist-array imported methods fail with non-truthy arguments values | ||
| Description: | Line 67 of src/node/js/nodelist-array.js reads as follows: while (arg = arguments[i++])) {
This conditional is truthy or falsy based on the truthiness or falsiness of the argument in question, which can cause subtle bugs. For instance the following code: anyNodeList.slice(0, 3) will return the entire NodeList, because anyNodeList._nodes.slice is called with no arguments, since the value 0 is falsy. |
||
| Type: | defect | Observed in Version: | development master |
| Component: | NodeList | Severity: | S3 (normal) |
| Assigned To: | Matt Sweeney | Target Release: | |
| Location: | Priority: | P3 (normal) | |
| Tags: | nodelist,array | Relates To: | #2529934 |
| Browsers: | All | ||
| URL: | |||
| Test Information: | |||