- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 21 Oct 2011 22:24:10 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv19778 Modified Files: Overview.html Log Message: Defer to the origin spec for URL origin. (whatwg r6728) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5393 retrieving revision 1.5394 diff -u -d -r1.5393 -r1.5394 --- Overview.html 21 Oct 2011 21:36:48 -0000 1.5393 +++ Overview.html 21 Oct 2011 22:24:06 -0000 1.5394 @@ -45041,67 +45041,8 @@ <dd> <p>The <a href="#origin">origin</a> and <a href="#effective-script-origin">effective script - origin</a> of the <a href="#url">URL</a> is whatever is returned by - the following algorithm:</p> - - <ol><li><p>Let <var title="">url</var> be the <a href="#url">URL</a> for - which the <a href="#origin">origin</a> is being determined.</li> - - <li><p><a href="#parse-a-url" title="parse a url">Parse</a> <var title="">url</var>.</li> - - <li><p>If <var title="">url</var> identifies a resource that is - its own trust domain (e.g. it identifies an e-mail on an IMAP - server or a post on an NNTP server) then return a globally unique - identifier specific to the resource identified by <var title="">url</var>, so that if this algorithm is invoked again - for <a href="#url" title="URL">URLs</a> that identify the same resource, - the same identifier will be returned.</li> - - <li><p>If <var title="">url</var> does not use a server-based - naming authority, or if parsing <var title="">url</var> failed, - or if <var title="">url</var> is not an <a href="#absolute-url">absolute - URL</a>, then return a new globally unique - identifier.</li> - - <li><p>Let <var title="">scheme</var> be the <a href="#url-scheme" title="url-scheme"><scheme></a> component of <var title="">url</var>, <a href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.</li> - - <li><p>If the UA doesn't support the protocol given by <var title="">scheme</var>, then return a new globally unique - identifier.</li> - - <li><p>If <var title="">scheme</var> is "<code title="">file</code>", then the user agent may return a - UA-specific value.</li> - - <li><p>Let <var title="">host</var> be the <a href="#url-host" title="url-host"><host></a> component of <var title="">url</var>.</li> - - <li> - - <p>Apply the IDNA ToASCII algorithm to <var title="">host</var>, - with both the AllowUnassigned and UseSTD3ASCIIRules flags - set. Let <var title="">host</var> be the result of the ToASCII - algorithm.</p> - - <p>If ToASCII fails to convert one of the components of the - string, e.g. because it is too long or because it contains - invalid characters, then return a new globally unique - identifier. <a href="#refsRFC3490">[RFC3490]</a></p> - - </li> - - <li><p>Let <var title="">host</var> be the result of converting - <var title="">host</var> <a href="#converted-to-ascii-lowercase" title="converted to ASCII lowercase">to - ASCII lowercase</a>.</li> - - <li><p>If there is no <a href="#url-port" title="url-port"><port></a> - component, then let <var title="">port</var> be the default port - for the protocol given by <var title="">scheme</var>. Otherwise, - let <var title="">port</var> be the <a href="#url-port" title="url-port"><port></a> component of <var title="">url</var>.</li> - - <li><p>Return the tuple (<var title="">scheme</var>, <var title="">host</var>, <var title="">port</var>).</li> - - </ol><p>In addition, if the <a href="#url">URL</a> is in fact associated with - a <code><a href="#document">Document</a></code> object that was created by parsing the - resource obtained from fetching <a href="#url">URL</a>, and this was - done over a secure connection, then the server's secure - certificate may be added to the origin as additional data.</p> + origin</a> of the <a href="#url">URL</a> are the origin defined in + <cite>The Web Origin Concept</cite>. <a href="#refsORIGIN">[ORIGIN]</a></p> </dd>
Received on Friday, 21 October 2011 22:24:16 UTC