All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----org.w3c.css.values.CssValue
|
+----org.w3c.css.values.CssURL
A Uniform Resource Locator (URL) is identified with a functional notation:
BODY { background: url(http://www.bg.com/pinkish.gif) }
The format of a URL value is 'url(' followed by optional white space followed by an optional single quote (') or double quote (") character followed by the URL itself (as defined in [11]) followed by an optional single quote (') or double quote (") character followed by optional whitespace followed by ')'. Quote characters that are not part of the URL itself must be balanced.
Parentheses, commas, whitespace characters, single quotes (') and double quotes (") appearing in a URL must be escaped with a backslash: '\(', '\)', '\,'.
Partial URLs are interpreted relative to the source of the style sheet, not relative to the document:
BODY { background: url(yellow) }
See also
[11] T Berners-Lee, L Masinter, M McCahill: "Uniform Resource Locators (URL)", RFC 1738, CERN, Xerox Corporation, University of Minnesota, December 1994
public CssURL()
public void set(String s,
Frame frame) throws InvalidParamException
public void set(String s,
Frame frame,
URL base) throws InvalidParamException
public Object get()
public URL getURL() throws MalformedURLException
public String toString()
public boolean equals(Object url)
All Packages Class Hierarchy This Package Previous Next Index