Frames | No Frames |
1: /* 2: * Copyright (c) 2003 World Wide Web Consortium, 3: * (Massachusetts Institute of Technology, Institut National de 4: * Recherche en Informatique et en Automatique, Keio University). All 5: * Rights Reserved. This program is distributed under the W3C's Software 6: * Intellectual Property License. This program is distributed in the 7: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 8: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 9: * PURPOSE. 10: * See W3C License http://www.w3.org/Consortium/Legal/ for more details. 11: */ 12: 13: package org.w3c.dom.html2; 14: 15: import org.w3c.dom.Element; 16: 17: /** 18: * All HTML element interfaces derive from this class. Elements that only 19: * expose the HTML core attributes are represented by the base 20: * <code>HTMLElement</code> interface. These elements are as follows: 21: * special: SUB, SUP, SPAN, BDOfont: TT, I, B, U, S, STRIKE, BIG, SMALL 22: * phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBRlist: 23: * DD, DTNOFRAMES, NOSCRIPTADDRESS, CENTERThe <code>style</code> attribute 24: * of an HTML element is accessible through the 25: * <code>ElementCSSInlineStyle</code> interface which is defined in the CSS 26: * module [<a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>DOM Level 2 Style Sheets and CSS</a>]. 27: * <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>. 28: */ 29: public interface HTMLElement extends Element { 30: /** 31: * The element's identifier. See the id attribute definition in HTML 4.01. 32: */ 33: public String getId(); 34: /** 35: * The element's identifier. See the id attribute definition in HTML 4.01. 36: */ 37: public void setId(String id); 38: 39: /** 40: * The element's advisory title. See the title attribute definition in 41: * HTML 4.01. 42: */ 43: public String getTitle(); 44: /** 45: * The element's advisory title. See the title attribute definition in 46: * HTML 4.01. 47: */ 48: public void setTitle(String title); 49: 50: /** 51: * Language code defined in RFC 1766. See the lang attribute definition in 52: * HTML 4.01. 53: */ 54: public String getLang(); 55: /** 56: * Language code defined in RFC 1766. See the lang attribute definition in 57: * HTML 4.01. 58: */ 59: public void setLang(String lang); 60: 61: /** 62: * Specifies the base direction of directionally neutral text and the 63: * directionality of tables. See the dir attribute definition in HTML 64: * 4.01. 65: */ 66: public String getDir(); 67: /** 68: * Specifies the base direction of directionally neutral text and the 69: * directionality of tables. See the dir attribute definition in HTML 70: * 4.01. 71: */ 72: public void setDir(String dir); 73: 74: /** 75: * The class attribute of the element. This attribute has been renamed due 76: * to conflicts with the "class" keyword exposed by many languages. See 77: * the class attribute definition in HTML 4.01. 78: */ 79: public String getClassName(); 80: /** 81: * The class attribute of the element. This attribute has been renamed due 82: * to conflicts with the "class" keyword exposed by many languages. See 83: * the class attribute definition in HTML 4.01. 84: */ 85: public void setClassName(String className); 86: 87: }