001 /*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013 package org.w3c.dom.html2;
014
015 import org.w3c.dom.Element;
016
017 /**
018 * All HTML element interfaces derive from this class. Elements that only
019 * expose the HTML core attributes are represented by the base
020 * <code>HTMLElement</code> interface. These elements are as follows:
021 * special: SUB, SUP, SPAN, BDOfont: TT, I, B, U, S, STRIKE, BIG, SMALL
022 * phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBRlist:
023 * DD, DTNOFRAMES, NOSCRIPTADDRESS, CENTERThe <code>style</code> attribute
024 * of an HTML element is accessible through the
025 * <code>ElementCSSInlineStyle</code> interface which is defined in the CSS
026 * module [<a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>DOM Level 2 Style Sheets and CSS</a>].
027 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
028 */
029 public interface HTMLElement extends Element {
030 /**
031 * The element's identifier. See the id attribute definition in HTML 4.01.
032 */
033 public String getId();
034 /**
035 * The element's identifier. See the id attribute definition in HTML 4.01.
036 */
037 public void setId(String id);
038
039 /**
040 * The element's advisory title. See the title attribute definition in
041 * HTML 4.01.
042 */
043 public String getTitle();
044 /**
045 * The element's advisory title. See the title attribute definition in
046 * HTML 4.01.
047 */
048 public void setTitle(String title);
049
050 /**
051 * Language code defined in RFC 1766. See the lang attribute definition in
052 * HTML 4.01.
053 */
054 public String getLang();
055 /**
056 * Language code defined in RFC 1766. See the lang attribute definition in
057 * HTML 4.01.
058 */
059 public void setLang(String lang);
060
061 /**
062 * Specifies the base direction of directionally neutral text and the
063 * directionality of tables. See the dir attribute definition in HTML
064 * 4.01.
065 */
066 public String getDir();
067 /**
068 * Specifies the base direction of directionally neutral text and the
069 * directionality of tables. See the dir attribute definition in HTML
070 * 4.01.
071 */
072 public void setDir(String dir);
073
074 /**
075 * The class attribute of the element. This attribute has been renamed due
076 * to conflicts with the "class" keyword exposed by many languages. See
077 * the class attribute definition in HTML 4.01.
078 */
079 public String getClassName();
080 /**
081 * The class attribute of the element. This attribute has been renamed due
082 * to conflicts with the "class" keyword exposed by many languages. See
083 * the class attribute definition in HTML 4.01.
084 */
085 public void setClassName(String className);
086
087 }