1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2/* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6// http://dev.w3.org/csswg/cssom/#the-medialist-interface 7 8interface MediaList { 9 // Bug 824857: no support for stringifier attributes yet. 10 // [TreatNullAs=EmptyString] 11 // stringifier attribute DOMString mediaText; 12 13 // Bug 824857 should remove this. 14 stringifier; 15 16 [TreatNullAs=EmptyString] 17 attribute DOMString mediaText; 18 19 readonly attribute unsigned long length; 20 getter DOMString? item(unsigned long index); 21 [Throws] 22 undefined deleteMedium(DOMString oldMedium); 23 [Throws] 24 undefined appendMedium(DOMString newMedium); 25}; 26