1/*
2 * Copyright (C) 2006, 2007, 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 HTMLAnchorElement : HTMLElement {
22    [Reflect] attribute DOMString charset;
23    [Reflect] attribute DOMString coords;
24    [Conditional=DOWNLOAD_ATTRIBUTE, Reflect] attribute DOMString download;
25    [Reflect, URL] attribute DOMString href;
26    [Reflect] attribute DOMString hreflang;
27    [Reflect] attribute DOMString name;
28    [Reflect] attribute DOMString ping;
29    [Reflect] attribute DOMString rel;
30    [Reflect] attribute DOMString rev;
31    [Reflect] attribute DOMString shape;
32    [Reflect] attribute DOMString target;
33    [Reflect] attribute DOMString type;
34
35#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
36    [Reflect] attribute DOMString accessKey;
37#endif
38
39#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
40    readonly attribute DOMString hash;
41    readonly attribute DOMString host;
42    readonly attribute DOMString hostname;
43    readonly attribute DOMString pathname;
44    readonly attribute DOMString port;
45    readonly attribute DOMString protocol;
46    readonly attribute DOMString search;
47#else
48    [TreatNullAs=NullString] attribute DOMString hash;
49    [TreatNullAs=NullString] attribute DOMString host;
50    [TreatNullAs=NullString] attribute DOMString hostname;
51    [TreatNullAs=NullString] attribute DOMString pathname;
52    [TreatNullAs=NullString] attribute DOMString port;
53    [TreatNullAs=NullString] attribute DOMString protocol;
54    [TreatNullAs=NullString] attribute DOMString search;
55
56    [TreatNullAs=NullString] readonly attribute DOMString origin;
57#endif
58
59    readonly attribute DOMString text;
60
61#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
62    [NotEnumerable] DOMString toString();
63#endif
64
65#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
66    // Objective-C extension:
67    readonly attribute URL absoluteLinkURL;
68#endif
69};
70
71