Home | History | Annotate | Download | only in html
      1 /*
      2  * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
      3  * Copyright (C) 2006 Samuel Weinig <sam.weinig (at) 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 
     21 module html {
     22 
     23     interface HTMLAnchorElement : HTMLElement {
     24         attribute [ConvertNullToNullString, Reflect=accesskey] DOMString accessKey;
     25         attribute [ConvertNullToNullString, Reflect] DOMString charset;
     26         attribute [ConvertNullToNullString, Reflect] DOMString coords;
     27         attribute [ConvertNullToNullString, ReflectURL] DOMString href;
     28         attribute [ConvertNullToNullString, Reflect] DOMString hreflang;
     29         attribute [ConvertNullToNullString, Reflect] DOMString name;
     30         attribute [ConvertNullToNullString, Reflect] DOMString rel;
     31         attribute [ConvertNullToNullString, Reflect] DOMString rev;
     32         attribute [ConvertNullToNullString, Reflect] DOMString shape;
     33         attribute [ConvertNullToNullString, Reflect] DOMString target;
     34         attribute [ConvertNullToNullString, Reflect] DOMString type;
     35 
     36 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     37         readonly attribute DOMString hash;
     38         readonly attribute DOMString host;
     39         readonly attribute DOMString hostname;
     40         readonly attribute DOMString pathname;
     41         readonly attribute DOMString port;
     42         readonly attribute DOMString protocol;
     43         readonly attribute DOMString search;
     44 #else
     45         attribute [ConvertNullToNullString] DOMString hash;
     46         attribute [ConvertNullToNullString] DOMString host;
     47         attribute [ConvertNullToNullString] DOMString hostname;
     48         attribute [ConvertNullToNullString] DOMString pathname;
     49         attribute [ConvertNullToNullString] DOMString port;
     50         attribute [ConvertNullToNullString] DOMString protocol;
     51         attribute [ConvertNullToNullString] DOMString search;
     52 #endif
     53 
     54         readonly attribute DOMString text;
     55 
     56 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
     57         [DontEnum] DOMString toString();
     58 #endif
     59 
     60 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     61         // Objective-C extension:
     62         readonly attribute URL absoluteLinkURL;
     63 #endif
     64     };
     65 
     66 }
     67