Permalink
Browse files

[] (0) Introducing the rel=noreferer proposal, and other referer head…

…er changes.

git-svn-id: http://svn.whatwg.org/webapps@1119 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 3, 2007
1 parent 65bedf7 commit 4a4c087290ba0ada378801d39ac63e1795816c06
Showing with 102 additions and 45 deletions.
  1. +68 −36 index
  2. +34 −9 source
104 index
@@ -22,7 +22,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=working>Working Draft &mdash; 1 November 2007</h2>
<h2 class="no-num no-toc" id=working>Working Draft &mdash; 3 November 2007</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -1284,46 +1284,49 @@
type "<code>nofollow</code>"</a>

<li><a href="#link-type10"><span class=secno>4.12.3.12. </span>Link
type "<code>pingback</code>"</a>
type "<code>noreferer</code>"</a>

<li><a href="#link-type11"><span class=secno>4.12.3.13. </span>Link
type "<code>prefetch</code>"</a>
type "<code>pingback</code>"</a>

<li><a href="#link-type12"><span class=secno>4.12.3.14. </span>Link
type "<code>search</code>"</a>
type "<code>prefetch</code>"</a>

<li><a href="#link-type13"><span class=secno>4.12.3.15. </span>Link
type "<code>stylesheet</code>"</a>
type "<code>search</code>"</a>

<li><a href="#link-type14"><span class=secno>4.12.3.16. </span>Link
type "<code>sidebar</code>"</a>
type "<code>stylesheet</code>"</a>

<li><a href="#link-type15"><span class=secno>4.12.3.17. </span>Link
type "<code>sidebar</code>"</a>

<li><a href="#link-type16"><span class=secno>4.12.3.18. </span>Link
type "<code>tag</code>"</a>

<li><a href="#hierarchical"><span class=secno>4.12.3.18.
<li><a href="#hierarchical"><span class=secno>4.12.3.19.
</span>Hierarchical link types</a>
<ul class=toc>
<li><a href="#link-type16"><span class=secno>4.12.3.18.1.
<li><a href="#link-type17"><span class=secno>4.12.3.19.1.
</span>Link type "<code>first</code>"</a>

<li><a href="#link-type17"><span class=secno>4.12.3.18.2.
<li><a href="#link-type18"><span class=secno>4.12.3.19.2.
</span>Link type "<code>index</code>"</a>

<li><a href="#link-type18"><span class=secno>4.12.3.18.3.
<li><a href="#link-type19"><span class=secno>4.12.3.19.3.
</span>Link type "<code>last</code>"</a>

<li><a href="#link-type19"><span class=secno>4.12.3.18.4.
<li><a href="#link-type20"><span class=secno>4.12.3.19.4.
</span>Link type "<code>next</code>"</a>

<li><a href="#link-type20"><span class=secno>4.12.3.18.5.
<li><a href="#link-type21"><span class=secno>4.12.3.19.5.
</span>Link type "<code>prev</code>"</a>

<li><a href="#link-type21"><span class=secno>4.12.3.18.6.
<li><a href="#link-type22"><span class=secno>4.12.3.19.6.
</span>Link type "<code>up</code>"</a>
</ul>

<li><a href="#other0"><span class=secno>4.12.3.19. </span>Other link
<li><a href="#other0"><span class=secno>4.12.3.20. </span>Other link
types</a>
</ul>
</ul>
@@ -2627,14 +2630,16 @@
title=dom-document-referrer><code>referrer</code></dfn> attribute must
return either the URI of the page which <a href="#navigate"
title=navigate>navigated</a> the <a href="#browsing0">browsing context</a>
to the current document (if any), or the empty string (if there is no such
to the current document (if any), or the empty string if there is no such
originating page, or if the UA has been configured not to report
referrers).
referrers, or if the navigation was initiated for a <a
href="#hyperlinks">hyperlink</a> with a <code title=rel-noreferer><a
href="#noreferer">noreferer</a></code> keyword.

<p class=note>In the case of HTTP, the <code title=dom-document-referrer><a
href="#referrer">referrer</a></code> DOM attribute will match the
<code>Referer</code> (sic) header that was sent when fetching the current
page.
href="#referrer">referrer</a></code> DOM attribute will match the <code
title="">Referer</code> (sic) header that was sent when fetching the
current page.

<p>The <dfn id=cookie0 title=dom-document-cookie><code>cookie</code></dfn>
attribute must, on getting, return the same string as the value of the
@@ -31185,11 +31190,11 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
of the result of that request.

<p>User agents should allow the user to adjust this behaviour, for example
in conjunction with a setting that disables the sending of HTTP Referrer
headers. Based on the user's preferences, UAs may either <a
href="#ignored">ignore</a> the <code title=attr-hyperlink-ping><a
in conjunction with a setting that disables the sending of HTTP <coe
title="">Referer headers. Based on the user's preferences, UAs may either
<a href="#ignored">ignore</a> the <code title=attr-hyperlink-ping><a
href="#ping">ping</a></code> attribute altogether, or selectively ignore
URIs in the list (e.g. ignoring any third-party URIs).
URIs in the list (e.g. ignoring any third-party URIs).</coe>

<p>For URIs that are HTTP URIs, the requests must be performed using the
POST method (with an empty entity body in the request). User agents must
@@ -31423,6 +31428,16 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
<td>Indicates that the current document's original author or publisher
does not endorse the referenced document.

<tr>
<td><code title=rel-noreferer><a href="#noreferer">noreferer</a></code>

<td><em>not allowed</em>

<td><a href="#hyperlinks">Hyperlink</a>

<td>Requires that the user agent not send an HTTP <code
title="">Referer</code> header if the user follows the hyperlink.

<tr>
<td><code title=rel-pingback><a href="#pingback">pingback</a></code>

@@ -31870,6 +31885,23 @@ at the first element with the given ID must be treated as if it was cloned and r
publisher of the page.

<h5 id=link-type10><span class=secno>4.12.3.12. </span>Link type "<dfn
id=noreferer title=rel-noreferer><code>noreferer</code></dfn>"</h5>

<p>The <code title=rel-noreferer><a href="#noreferer">noreferer</a></code>
keyword may be used with <code><a href="#a">a</a></code> and <code><a
href="#area">area</a></code> elements.

<p>If a user agent follows a link defined by an <code><a
href="#a">a</a></code> or <code><a href="#area">area</a></code> element
that has the <code title=rel-noreferer><a
href="#noreferer">noreferer</a></code> keyword, the user agent must not
include a <code title="">Referer</code> HTTP header (or equivalent for
other protocols) in the request.

<p class=note>The HTTP header is misspelt for historical reasons; this
keyword is misspelt for consistency.

<h5 id=link-type11><span class=secno>4.12.3.13. </span>Link type "<dfn
id=pingback title=rel-pingback><code>pingback</code></dfn>"</h5>

<p>The <code title=rel-pingback><a href="#pingback">pingback</a></code>
@@ -31881,7 +31913,7 @@ at the first element with the given ID must be treated as if it was cloned and r
href="#pingback">pingback</a></code> keyword, see the Pingback 1.0
specification. <a href="#refsPINGBACK">[PINGBACK]</a>

<h5 id=link-type11><span class=secno>4.12.3.13. </span>Link type "<dfn
<h5 id=link-type12><span class=secno>4.12.3.14. </span>Link type "<dfn
id=prefetch title=rel-prefetch><code>prefetch</code></dfn>"</h5>

<p>The <code title=rel-prefetch><a href="#prefetch">prefetch</a></code>
@@ -31894,7 +31926,7 @@ at the first element with the given ID must be treated as if it was cloned and r
resource is likely to be beneficial, as it is highly likely that the user
will require this resource.

<h5 id=link-type12><span class=secno>4.12.3.14. </span>Link type "<dfn
<h5 id=link-type13><span class=secno>4.12.3.15. </span>Link type "<dfn
id=search0 title=rel-search><code>search</code></dfn>"</h5>

<p>The <code title=rel-search><a href="#search0">search</a></code> keyword
@@ -31912,7 +31944,7 @@ at the first element with the given ID must be treated as if it was cloned and r
href="#search0">search</a></code> link type to enable user agents to
autodiscover search interfaces.

<h5 id=link-type13><span class=secno>4.12.3.15. </span>Link type "<dfn
<h5 id=link-type14><span class=secno>4.12.3.16. </span>Link type "<dfn
id=stylesheet title=rel-stylesheet><code>stylesheet</code></dfn>"</h5>

<p>The <code title=rel-stylesheet><a
@@ -31930,7 +31962,7 @@ at the first element with the given ID must be treated as if it was cloned and r
<code><a href="#link">link</a></code> element, then the link is an
alternative stylesheet.

<h5 id=link-type14><span class=secno>4.12.3.16. </span>Link type "<dfn
<h5 id=link-type15><span class=secno>4.12.3.17. </span>Link type "<dfn
id=sidebar title=rel-sidebar><code>sidebar</code></dfn>"</h5>

<p>The <code title=rel-sidebar><a href="#sidebar">sidebar</a></code>
@@ -31950,7 +31982,7 @@ at the first element with the given ID must be treated as if it was cloned and r
specified is a <dfn id=sidebar0 title=rel-sidebar-hyperlink>sidebar
hyperlink</dfn>.

<h5 id=link-type15><span class=secno>4.12.3.17. </span>Link type "<dfn
<h5 id=link-type16><span class=secno>4.12.3.18. </span>Link type "<dfn
id=tag title=rel-tag><code>tag</code></dfn>"</h5>

<p>The <code title=rel-tag><a href="#tag">tag</a></code> keyword may be
@@ -31963,7 +31995,7 @@ at the first element with the given ID must be treated as if it was cloned and r
that the <em>tag</em> that the referenced document represents applies to
the current document.

<h5 id=hierarchical><span class=secno>4.12.3.18. </span>Hierarchical link
<h5 id=hierarchical><span class=secno>4.12.3.19. </span>Hierarchical link
types</h5>

<p>Some documents form part of a hierarchical structure of documents.
@@ -31976,7 +32008,7 @@ at the first element with the given ID must be treated as if it was cloned and r
<em>previous sibling</em>, and the one that follows it is its <em>next
sibling</em>. A document with no parent forms the top of the hierarchy.

<h6 id=link-type16><span class=secno>4.12.3.18.1. </span>Link type "<dfn
<h6 id=link-type17><span class=secno>4.12.3.19.1. </span>Link type "<dfn
id=first title=rel-first><code>first</code></dfn>"</h6>

<p>The <code title=rel-first><a href="#first">first</a></code> keyword may
@@ -31995,7 +32027,7 @@ at the first element with the given ID must be treated as if it was cloned and r
title="">start</code>" like the <code title=rel-first><a
href="#first">first</a></code> keyword.

<h6 id=link-type17><span class=secno>4.12.3.18.2. </span>Link type "<dfn
<h6 id=link-type18><span class=secno>4.12.3.19.2. </span>Link type "<dfn
id=index title=rel-index><code>index</code></dfn>"</h6>

<p>The <code title=rel-index><a href="#index">index</a></code> keyword may
@@ -32015,7 +32047,7 @@ at the first element with the given ID must be treated as if it was cloned and r
title="">contents</code>", and "<code title="">toc</code>" like the <code
title=rel-index><a href="#index">index</a></code> keyword.

<h6 id=link-type18><span class=secno>4.12.3.18.3. </span>Link type "<dfn
<h6 id=link-type19><span class=secno>4.12.3.19.3. </span>Link type "<dfn
id=last title=rel-last><code>last</code></dfn>"</h6>

<p>The <code title=rel-last><a href="#last">last</a></code> keyword may be
@@ -32033,7 +32065,7 @@ at the first element with the given ID must be treated as if it was cloned and r
treat the keyword "<code title="">end</code>" like the <code
title=rel-last><a href="#last">last</a></code> keyword.

<h6 id=link-type19><span class=secno>4.12.3.18.4. </span>Link type "<dfn
<h6 id=link-type20><span class=secno>4.12.3.19.4. </span>Link type "<dfn
id=next title=rel-next><code>next</code></dfn>"</h6>

<p>The <code title=rel-next><a href="#next">next</a></code> keyword may be
@@ -32047,7 +32079,7 @@ at the first element with the given ID must be treated as if it was cloned and r
the link is leading to the document that is the next sibling of the
current document.

<h6 id=link-type20><span class=secno>4.12.3.18.5. </span>Link type "<dfn
<h6 id=link-type21><span class=secno>4.12.3.19.5. </span>Link type "<dfn
id=prev title=rel-prev><code>prev</code></dfn>"</h6>

<p>The <code title=rel-prev><a href="#prev">prev</a></code> keyword may be
@@ -32065,7 +32097,7 @@ at the first element with the given ID must be treated as if it was cloned and r
treat the keyword "<code title="">previous</code>" like the <code
title=rel-prev><a href="#prev">prev</a></code> keyword.

<h6 id=link-type21><span class=secno>4.12.3.18.6. </span>Link type "<dfn
<h6 id=link-type22><span class=secno>4.12.3.19.6. </span>Link type "<dfn
id=up title=rel-up><code>up</code></dfn>"</h6>

<p>The <code title=rel-up><a href="#up">up</a></code> keyword may be used
@@ -32124,7 +32156,7 @@ at the first element with the given ID must be treated as if it was cloned and r
&lt;/nav></pre>
</div>

<h5 id=other0><span class=secno>4.12.3.19. </span>Other link types</h5>
<h5 id=other0><span class=secno>4.12.3.20. </span>Other link types</h5>

<p>Other than the types defined above, only types defined as extensions in
the <a href="http://wiki.whatwg.org/wiki/RelExtensions">WHATWG Wiki
43 source
@@ -1034,14 +1034,16 @@
title="dom-document-referrer"><code>referrer</code></dfn> attribute
must return either the URI of the page which <span
title="navigate">navigated</span> the <span>browsing context</span>
to the current document (if any), or the empty string (if there is
no such originating page, or if the UA has been configured not to
report referrers).</p>
to the current document (if any), or the empty string if there is no
such originating page, or if the UA has been configured not to
report referrers, or if the navigation was initiated for a
<span>hyperlink</span> with a <code
title="rel-noreferer">noreferer</code> keyword.</p>

<p class="note">In the case of HTTP, the <code
title="dom-document-referrer">referrer</code> DOM attribute will
match the <code>Referer</code> (sic) header that was sent when
fetching the current page.</p>
match the <code title="">Referer</code> (sic) header that was sent
when fetching the current page.</p>


<p>The <dfn title="dom-document-cookie"><code>cookie</code></dfn>
@@ -28759,10 +28761,11 @@ interface <dfn>SQLStatementErrorCallback</dfn> {

<p>User agents should allow the user to adjust this behaviour, for
example in conjunction with a setting that disables the sending of
HTTP Referrer headers. Based on the user's preferences, UAs may
either <span>ignore</span> the <code title="attr-hyperlink-ping">ping</code>
attribute altogether, or selectively ignore URIs in the list
(e.g. ignoring any third-party URIs).</p>
HTTP <coe title="">Referer</code> headers. Based on the user's
preferences, UAs may either <span>ignore</span> the <code
title="attr-hyperlink-ping">ping</code> attribute altogether, or
selectively ignore URIs in the list (e.g. ignoring any third-party
URIs).</p>

<p>For URIs that are HTTP URIs, the requests must be performed using
the POST method (with an empty entity body in the request). User
@@ -28955,6 +28958,13 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
<td>Indicates that the current document's original author or publisher does not endorse the referenced document.</td>
</tr>

<tr>
<td><code title="rel-noreferer">noreferer</code></td>
<td><em>not allowed</em></td>
<td><span>Hyperlink</span></td>
<td>Requires that the user agent not send an HTTP <code title="">Referer</code> header if the user follows the hyperlink.</td>
</tr>

<tr>
<td><code title="rel-pingback">pingback</code></td>
<td><span title="external resource link">External Resource</span></td>
@@ -29354,6 +29364,21 @@ at the first element with the given ID must be treated as if it was cloned and r
the page.</p>


<h5>Link type "<dfn title="rel-noreferer"><code>noreferer</code></dfn>"</h5>

<p>The <code title="rel-noreferer">noreferer</code> keyword may be
used with <code>a</code> and <code>area</code> elements.</p>

<p>If a user agent follows a link defined by an <code>a</code> or
<code>area</code> element that has the <code
title="rel-noreferer">noreferer</code> keyword, the user agent must
not include a <code title="">Referer</code> HTTP header (or
equivalent for other protocols) in the request.</p>

<p class="note">The HTTP header is misspelt for historical reasons;
this keyword is misspelt for consistency.</p>


<h5>Link type "<dfn title="rel-pingback"><code>pingback</code></dfn>"</h5>

<p>The <code title="rel-pingback">pingback</code> keyword may be

0 comments on commit 4a4c087

Please sign in to comment.