dom/interfaces/core/nsIDOMNodeList.idl
author Boris Zbarsky <bzbarsky@mit.edu>
Mon, 13 Nov 2017 10:41:47 -0500
changeset 436042 01a5361e9460683fb43c05a3c267eec4bbef081d
parent 191063 c590fcb23c3c1c1bb3a41979b04fdc3031953130
child 454210 65c41f6478ab7c7fedd1d9591cf6464ada2c0372
permissions -rw-r--r--
Bug 1416139. Make nsIDOMNodeList non-scriptable. r=mystor The old reasons for having it be scriptable are no longer relevant since bug 120684 was fixed. MozReview-Commit-ID: DOGuhKJRWOn

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "domstubs.idl"

/**
 * The nsIDOMNodeList interface provides the abstraction of an ordered 
 * collection of nodes, without defining or constraining how this collection 
 * is implemented.
 * The items in the list are accessible via an integral index, starting from 0.
 *
 * For more information on this interface please see 
 * http://www.w3.org/TR/DOM-Level-2-Core/
 */

[uuid(450cf0ba-de90-4f86-85bf-e10cc8b8713f)]
interface nsIDOMNodeList : nsISupports
{
  nsIDOMNode    item(in unsigned long index);
  readonly attribute unsigned long          length;
};