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 /**
016 * Script statements. See the SCRIPT element definition in HTML 4.01.
017 * <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>.
018 */
019 public interface HTMLScriptElement extends HTMLElement {
020 /**
021 * The script content of the element.
022 */
023 public String getText();
024 /**
025 * The script content of the element.
026 */
027 public void setText(String text);
028
029 /**
030 * Reserved for future use.
031 */
032 public String getHtmlFor();
033 /**
034 * Reserved for future use.
035 */
036 public void setHtmlFor(String htmlFor);
037
038 /**
039 * Reserved for future use.
040 */
041 public String getEvent();
042 /**
043 * Reserved for future use.
044 */
045 public void setEvent(String event);
046
047 /**
048 * The character encoding of the linked resource. See the charset
049 * attribute definition in HTML 4.01.
050 */
051 public String getCharset();
052 /**
053 * The character encoding of the linked resource. See the charset
054 * attribute definition in HTML 4.01.
055 */
056 public void setCharset(String charset);
057
058 /**
059 * Indicates that the user agent can defer processing of the script. See
060 * the defer attribute definition in HTML 4.01.
061 */
062 public boolean getDefer();
063 /**
064 * Indicates that the user agent can defer processing of the script. See
065 * the defer attribute definition in HTML 4.01.
066 */
067 public void setDefer(boolean defer);
068
069 /**
070 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating an external script. See the src attribute definition
071 * in HTML 4.01.
072 */
073 public String getSrc();
074 /**
075 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating an external script. See the src attribute definition
076 * in HTML 4.01.
077 */
078 public void setSrc(String src);
079
080 /**
081 * The content type of the script language. See the type attribute
082 * definition in HTML 4.01.
083 */
084 public String getType();
085 /**
086 * The content type of the script language. See the type attribute
087 * definition in HTML 4.01.
088 */
089 public void setType(String type);
090
091 }