1. /*
  2. * Copyright (c) 2000 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. See W3C License http://www.w3.org/Consortium/Legal/ for more
  10. * details.
  11. */
  12. package org.w3c.dom.html;
  13. import org.w3c.dom.Element;
  14. /**
  15. * All HTML element interfaces derive from this class. Elements that only
  16. * expose the HTML core attributes are represented by the base
  17. * <code>HTMLElement</code> interface. These elements are as follows: HEAD
  18. * special: SUB, SUP, SPAN, BDO font: TT, I, B, U, S, STRIKE, BIG, SMALL
  19. * phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR list:
  20. * DD, DT NOFRAMES, NOSCRIPT ADDRESS, CENTER The <code>style</code> attribute
  21. * of an HTML element is accessible through the
  22. * <code>ElementCSSInlineStyle</code> interface which is defined in the .
  23. * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
  24. */
  25. public interface HTMLElement extends Element {
  26. /**
  27. * The element's identifier. See the id attribute definition in HTML 4.0.
  28. */
  29. public String getId();
  30. public void setId(String id);
  31. /**
  32. * The element's advisory title. See the title attribute definition in
  33. * HTML 4.0.
  34. */
  35. public String getTitle();
  36. public void setTitle(String title);
  37. /**
  38. * Language code defined in RFC 1766. See the lang attribute definition
  39. * in HTML 4.0.
  40. */
  41. public String getLang();
  42. public void setLang(String lang);
  43. /**
  44. * Specifies the base direction of directionally neutral text and the
  45. * directionality of tables. See the dir attribute definition in HTML
  46. * 4.0.
  47. */
  48. public String getDir();
  49. public void setDir(String dir);
  50. /**
  51. * The class attribute of the element. This attribute has been renamed
  52. * due to conflicts with the "class" keyword exposed by many languages.
  53. * See the class attribute definition in HTML 4.0.
  54. */
  55. public String getClassName();
  56. public void setClassName(String className);
  57. }