1/* 2 * Copyright (C) 2006, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public License 16 * along with this library; see the file COPYING.LIB. If not, write to 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21interface HTMLBodyElement : HTMLElement { 22 [Reflect] attribute DOMString aLink; 23 [Reflect] attribute DOMString background; 24 [Reflect] attribute DOMString bgColor; 25 [Reflect] attribute DOMString link; 26 [Reflect] attribute DOMString text; 27 [Reflect] attribute DOMString vLink; 28 29#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C 30 // Event handler attributes 31 [NotEnumerable, JSWindowEventListener] attribute EventListener onbeforeunload; 32 [NotEnumerable, JSWindowEventListener] attribute EventListener onhashchange; 33 [NotEnumerable, JSWindowEventListener] attribute EventListener onmessage; 34 [NotEnumerable, JSWindowEventListener] attribute EventListener onoffline; 35 [NotEnumerable, JSWindowEventListener] attribute EventListener ononline; 36 [NotEnumerable, JSWindowEventListener] attribute EventListener onpopstate; 37 [NotEnumerable, JSWindowEventListener] attribute EventListener onresize; 38 [NotEnumerable, JSWindowEventListener] attribute EventListener onstorage; 39 [NotEnumerable, JSWindowEventListener] attribute EventListener onunload; 40 41 [Conditional=ORIENTATION_EVENTS, NotEnumerable, JSWindowEventListener] attribute EventListener onorientationchange; 42 43 // Overrides of Element attributes (with different implementation in bindings). 44 [NotEnumerable, JSWindowEventListener] attribute EventListener onblur; 45 [NotEnumerable, JSWindowEventListener] attribute EventListener onerror; 46 [NotEnumerable, JSWindowEventListener] attribute EventListener onfocus; 47 [NotEnumerable, JSWindowEventListener] attribute EventListener onload; 48 49 // Not implemented yet. 50 // [NotEnumerable, JSWindowEventListener] attribute EventListener onafterprint; 51 // [NotEnumerable, JSWindowEventListener] attribute EventListener onbeforeprint; 52 // [NotEnumerable, JSWindowEventListener] attribute EventListener onredo; 53 // [NotEnumerable, JSWindowEventListener] attribute EventListener onundo; 54#endif 55}; 56 57