NICE FAQ Script

PHP FAQ / Knowledgebase / Articles Script

FAQ HomeLink popularity Submit Link Glossary |  My Favorites | Site Map
  
Resolving relative URIs

User agents must calculate the base URI for resolving relative URIs according to [RFC1808], section 3. The following describes how [RFC1808] applies specifically to HTML.

User agents must calculate the base URI according to the following precedences (highest priority to lowest):

  1. The base URI is set by the BASE element.
  2. The base URI is given by meta data discovered during a protocol interaction, such as an HTTP header (see [RFC2616]).
  3. By default, the base URI is that of the current document. Not all HTML documents have a base URI (e.g., a valid HTML document may appear in an email and may not be designated by a URI). Such HTML documents are considered erroneous if they contain relative URIs and rely on a default base URI.

Additionally, the OBJECT and APPLET elements define attributes that take precedence over the value set by the BASE element. Please consult the definitions of these elements for more information about URI issues specific to them.

Note. For versions of HTTP that define a Link header, user agents should handle these headers exactly as LINK elements in the document. HTTP 1.1 as defined by [RFC2616] does not include a Link header field (refer to section 19.6.3).

 
Add Your Comments
     
 Name *
 Email *
 Title *
 Comments *
 Validation Code  *
Click here to Refresh
Specify the text displayed in the above validation code image. This text is case in-sensitive.
     
 Additional Info
 
 
 Article # 653
 Posted on 19-11-2008
 Viewed 247 times
 
Save as HTML Save as HTML
Add as Favorites Add as Favorites
Notify on Update Notify on Update
 
 Attachments
 
 None
 
 
 Did this help you?
Yes 
No 
 
 
 Related Articles
 
 None
 
 
SHARE IT: