/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//----------------------------------------------------------------------------- var BUGNUMBER = 310351; var summary = 'Convert host "list" objects to arrays'; var actual = ''; var expect = '';
printBugNumber(BUGNUMBER);
printStatus (summary);
var nodeList = []; if (typeof document != 'undefined')
{
nodeList = document.getElementsByTagName('*');
} else
{
printStatus('test using dummy array since no document available');
}
var array = Array.prototype.slice.call(nodeList, 0);
expect = 'Array';
actual = array.constructor.name;
// nodeList is live and may change var saveLength = nodeList.length;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.