Bug 14573 - NodeList not exposed ?
Summary: NodeList not exposed ?
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 07:48 PDT by Derk-Jan Hartman
Modified: 2007-07-10 08:03 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derk-Jan Hartman 2007-07-10 07:48:56 PDT
function getChecked( nodelist ) {
	if( !( nodelist instanceof NodeList ) ) {
		throw nodelist + " not instance of NodeList";
	}
	var result = [];
	for(var i=0; i<nodelist.length; i++ ) {
		if( nodelist[i].checked ) {
			result.push( nodelist[i].value );
		}
	}
	return result;
}


//Can't find variable: NodeList
//http://en.wikipedia.org/w/index.php?title=User%3AAzaToth%2Ftwinklearv.js&action=raw&ctype=text/javascript

Line 40 == if( !( nodelist instanceof NodeList ) ) {
On Safari 3.0.2
Issue confirmed by bdash
Comment 1 Mark Rowe (bdash) 2007-07-10 08:03:48 PDT
This was recently fixed in ToT.  I was doing my testing on a less-than-current WebKit build.