/*
 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

module html {

    interface [GenerateConstructor, CustomPutFunction, CustomGetOwnPropertySlot, CustomCall, HasOverridingNameGetter] HTMLAppletElement : HTMLElement {
                 attribute [ConvertNullToNullString] DOMString align;
                 attribute [ConvertNullToNullString] DOMString alt;
                 attribute [ConvertNullToNullString] DOMString archive;
                 attribute [ConvertNullToNullString] DOMString code;
                 attribute [ConvertNullToNullString] DOMString codeBase;
                 attribute [ConvertNullToNullString] DOMString height;
#if defined(LANGUAGE_OBJECTIVE_C)
                 attribute [ConvertFromString] long hspace;
#else
                 attribute [ConvertNullToNullString] DOMString hspace;
#endif
                 attribute [ConvertNullToNullString] DOMString name;
                 attribute [ConvertNullToNullString] DOMString object;
#if defined(LANGUAGE_OBJECTIVE_C)
                 attribute [ConvertFromString] long vspace;
#else
                 attribute [ConvertNullToNullString] DOMString vspace;
#endif
                 attribute [ConvertNullToNullString] DOMString width;
    };

}
