org.kde.koala
public class HTMLDocument extends Document
HTMLDocument
is the root of the HTML hierarchy
and holds the entire content. Beside providing access to the
hierarchy, it also provides some convenience methods for accessing
certain sets of information from the document.
The following properties have been deprecated in favor of the
corresponding ones for the BODY element:
\li alinkColor
\li background
\li bgColor
\li fgColor
\li linkColor
\li vlinkColor
UNKNOWN: An HTMLDocument
is the root of the HTML hierarchy and holds the entire content.
Constructor Summary | |
---|---|
protected | HTMLDocument(Class dummy) |
HTMLDocument() | |
HTMLDocument(KHTMLView parent)
The parent is the widget the document should render itself in.
| |
HTMLDocument(HTMLDocument other) | |
HTMLDocument(Node other) |
Method Summary | |
---|---|
HTMLCollection | all()
Not part of the DOM
A collection of all the IMG , OBJECT ,
AREA , A , forms and anchor elements of
a document. |
HTMLCollection | anchors()
A collection of all the anchor ( A ) elements in
a document with a value for the name attribute.
|
HTMLCollection | applets()
A collection of all the OBJECT elements that
include applets and APPLET ( deprecated )
elements in a document. |
HTMLElement | body()
The element that contains the content for the document. |
void | close()
Closes a document stream opened by open () and
forces rendering. |
String | completeURL(String url)
not part of the DOM
converts the given (potentially relative) URL in a
full-qualified one, using the baseURL / document URL for
the missing parts. |
String | cookie()
The cookies associated with this document. |
String | domain()
The domain name of the server that served the document, or a
null string if the server cannot be identified by a domain
name. |
HTMLCollection | forms()
A collection of all the forms of a document. |
ArrayList | getElementsByName(String elementName)
Returns the (possibly empty) collection of elements whose
name value is given by elementName . |
HTMLCollection | images()
A collection of all the IMG elements in a
document. |
String | lastModified()
Not part of the DOM
The date the document was last modified. |
HTMLCollection | layers()
A collection of all the layers of a document. |
HTMLCollection | links()
A collection of all AREA elements and anchor (
A ) elements in a document with a value for the
href attribute. |
void | open()
Note. |
String | referrer()
Returns the URI of the page that linked to this page. |
void | setBody(HTMLElement arg1)
see body |
void | setCookie(String arg1)
see cookie |
void | setTitle(String arg1)
see title |
String | title()
The title of a document as specified by the TITLE
element in the head of the document. |
String | URL()
The absolute URI of the document. |
void | write(String text)
Write a string of text to a document stream opened by
open () . |
void | writeln(String text)
Write a string of text followed by a newline character to a
document stream opened by open () . |
UNKNOWN: The parent is the widget the document should render itself in.
IMG
, OBJECT
,
AREA
, A
, forms and anchor elements of
a document.UNKNOWN: Not part of the DOM
A
) elements in
a document with a value for the name
attribute.
Note. For reasons of backwards compatibility, the returned set
of anchors only contains those anchors created with the
name
attribute, not those created with the id
attribute.UNKNOWN: A collection of all the anchor ( A
) elements in a document with a value for the name
attribute.
OBJECT
elements that
include applets and APPLET
( deprecated )
elements in a document.UNKNOWN: A collection of all the OBJECT
elements that include applets and APPLET
( deprecated ) elements in a document.
BODY
contents, returns the
BODY
element, and in frameset documents, this returns
the outermost FRAMESET
element.UNKNOWN: The element that contains the content for the document.
open
() and
forces rendering.UNKNOWN: Closes a document stream opened by open
() and forces rendering.
UNKNOWN: not part of the DOM
name
=value;expires=date .UNKNOWN: The cookies associated with this document.
UNKNOWN: The domain name of the server that served the document, or a null string if the server cannot be identified by a domain name.
UNKNOWN: A collection of all the forms of a document.
name
value is given by elementName
.Parameters: elementName The name
attribute value for
an element.
Returns: The matching elements.
UNKNOWN: Returns the (possibly empty) collection of elements whose name
value is given by elementName
.
IMG
elements in a
document. The behavior is limited to IMG
elements for backwards compatibility.UNKNOWN: A collection of all the IMG
elements in a document.
UNKNOWN: Not part of the DOM
UNKNOWN: A collection of all the layers of a document.
AREA
elements and anchor (
A
) elements in a document with a value for the
href
attribute.UNKNOWN: A collection of all AREA
elements and anchor ( A
) elements in a document with a value for the href
attribute.
UNKNOWN: Note.
UNKNOWN: Returns the URI of the page that linked to this page.
UNKNOWN: see body
UNKNOWN: see cookie
UNKNOWN: see title
TITLE
element in the head of the document.UNKNOWN: The title of a document as specified by the TITLE
element in the head of the document.
UNKNOWN: The absolute URI of the document.
open
() . The text is parsed into the document's
structure model.Parameters: text The string to be parsed into some structure in the document structure model.
UNKNOWN: Write a string of text to a document stream opened by open
() .
open
() . The text is
parsed into the document's structure model.Parameters: text The string to be parsed into some structure in the document structure model.
UNKNOWN: Write a string of text followed by a newline character to a document stream opened by open
() .