HTMLLinkElement Class Reference
from PyKDE4.khtml import *
Inherits: DOM.HTMLElement
Namespace: DOM
Detailed Description
The LINK element specifies a link to an external
resource, and defines this document's relationship to that resource
(or vice versa). See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-LINK">
LINK element definition in HTML 4.0.
Methods |
| __init__ (self) |
| __init__ (self, DOM.HTMLLinkElement other) |
| __init__ (self, DOM.Node other) |
| __init__ (self, HTMLLinkElementImpl impl) |
DOM.DOMString | charset (self) |
bool | disabled (self) |
DOM.DOMString | href (self) |
DOM.DOMString | hreflang (self) |
DOM.DOMString | media (self) |
DOM.DOMString | rel (self) |
DOM.DOMString | rev (self) |
| setCharset (self, DOM.DOMString a0) |
| setDisabled (self, bool a0) |
| setHref (self, DOM.DOMString a0) |
| setHreflang (self, DOM.DOMString a0) |
| setMedia (self, DOM.DOMString a0) |
| setRel (self, DOM.DOMString a0) |
| setRev (self, DOM.DOMString a0) |
| setTarget (self, DOM.DOMString a0) |
| setType (self, DOM.DOMString a0) |
DOM.StyleSheet | sheet (self) |
DOM.DOMString | target (self) |
DOM.DOMString | type (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
HTMLLinkElementImpl |
impl |
|
) |
|
|
|
The character encoding of the resource being linked to. See the
<a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-charset">
charset attribute definition in HTML 4.0.
Enables/disables the link. This is currently only used for
style sheet links, and may be used to activate or deactivate
style sheets.
The URI of the linked resource. See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-href">
href attribute definition in HTML 4.0.
Language code of the linked resource. See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-hreflang">
hreflang attribute definition in HTML 4.0.
Designed for use with one or more target media. See the <a
href="http://www.w3.org/TR/REC-html40/present/styles.html#adef-media">
media attribute definition in HTML 4.0.
Forward link type. See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rel">
rel attribute definition in HTML 4.0.
Reverse link type. See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-rev">
rev attribute definition in HTML 4.0.
setDisabled |
( |
self, |
|
|
|
bool |
a0 |
|
) |
|
|
|
Introduced in DOM Level 2
This method is from the LinkStyle interface
The style sheet.
Frame to render the resource in. See the <a
href="http://www.w3.org/TR/REC-html40/present/frames.html#adef-target">
target attribute definition in HTML 4.0.
Advisory content type. See the <a
href="http://www.w3.org/TR/REC-html40/struct/links.html#adef-type-A">
type attribute definition in HTML 4.0.