Skip to content

Commit

Permalink
[t] (0) Minor fixes to the Atom conversion algorithm.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@5235 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 4, 2010
1 parent e5f938a commit 1740674
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
13 changes: 7 additions & 6 deletions complete.html
Expand Up @@ -56590,9 +56590,10 @@ <h4 id=atom><span class=secno>5.5.3 </span>Atom</h4>
document</a>, add a <code title="">type</code> attribute whose
value is the string "<code><a href=#text/html>text/html</a></code>" to <var title="">x</var>. Otherwise, the document being converted is an
<a href=#xml-documents title="XML documents">XML document</a>; add a <code title="">type</code> attribute whose value is the string
"<code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>" to <var title="">x</var>. Append a text node with its data set to
<a href="#the-document's-current-address">the document's current address</a> to <var title="">x</var>. Append <var title="">x</var> to the root element
of <var title="">R</var>.</p>
"<code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>" to <var title="">x</var>. Add
an <code title="">href</code> attribute whose value is <a href="#the-document's-current-address">the
document's current address</a> to <var title="">x</var>. Append
<var title="">x</var> to the root element of <var title="">R</var>.</p>

</li>

Expand Down Expand Up @@ -56794,7 +56795,7 @@ <h4 id=atom><span class=secno>5.5.3 </span>Atom</h4>
algorithm</a> on <var title="">cloned article</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>

<p>Otherwise, the document being converted is an <a href=#xml-documents title="XML documents">XML document</a>: Let <var title="">x</var> be a <code title="">content</code> element in
the <a href=#atom-namespace>Atom namespace</a>. Add a <code title="">type</code> attribute whose value is the string "<code title="">xml</code>" to <var title="">x</var>. Append a
the <a href=#atom-namespace>Atom namespace</a>. Add a <code title="">type</code> attribute whose value is the string "<code title="">xhtml</code>" to <var title="">x</var>. Append a
<code><a href=#the-div-element>div</a></code> element to <var title="">x</var>. Move all the
child nodes of the <var title="">cloned article</var> node to
that <code><a href=#the-div-element>div</a></code> element, preserving their relative
Expand Down Expand Up @@ -56849,8 +56850,8 @@ <h4 id=atom><span class=secno>5.5.3 </span>Atom</h4>

<p>If <var title="">has-alternate</var> is true: Let <var title="">x</var> be a <code title="">link</code> element in the
<a href=#atom-namespace>Atom namespace</a>. Add a <code title="">rel</code>
attribute whose value is the string "<code title="">alternate</code>" to <var title="">x</var>. Append a
text node with its data set to <var title="">id</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>
attribute whose value is the string "<code title="">alternate</code>" to <var title="">x</var>. Add an
<code title="">href</code> attribute whose value is <var title="">id</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>

</li>

Expand Down
13 changes: 7 additions & 6 deletions index
Expand Up @@ -56517,9 +56517,10 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
document</a>, add a <code title="">type</code> attribute whose
value is the string "<code><a href=#text/html>text/html</a></code>" to <var title="">x</var>. Otherwise, the document being converted is an
<a href=#xml-documents title="XML documents">XML document</a>; add a <code title="">type</code> attribute whose value is the string
"<code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>" to <var title="">x</var>. Append a text node with its data set to
<a href="#the-document's-current-address">the document's current address</a> to <var title="">x</var>. Append <var title="">x</var> to the root element
of <var title="">R</var>.</p>
"<code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>" to <var title="">x</var>. Add
an <code title="">href</code> attribute whose value is <a href="#the-document's-current-address">the
document's current address</a> to <var title="">x</var>. Append
<var title="">x</var> to the root element of <var title="">R</var>.</p>

</li>

Expand Down Expand Up @@ -56721,7 +56722,7 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
algorithm</a> on <var title="">cloned article</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>

<p>Otherwise, the document being converted is an <a href=#xml-documents title="XML documents">XML document</a>: Let <var title="">x</var> be a <code title="">content</code> element in
the <a href=#atom-namespace>Atom namespace</a>. Add a <code title="">type</code> attribute whose value is the string "<code title="">xml</code>" to <var title="">x</var>. Append a
the <a href=#atom-namespace>Atom namespace</a>. Add a <code title="">type</code> attribute whose value is the string "<code title="">xhtml</code>" to <var title="">x</var>. Append a
<code><a href=#the-div-element>div</a></code> element to <var title="">x</var>. Move all the
child nodes of the <var title="">cloned article</var> node to
that <code><a href=#the-div-element>div</a></code> element, preserving their relative
Expand Down Expand Up @@ -56776,8 +56777,8 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;

<p>If <var title="">has-alternate</var> is true: Let <var title="">x</var> be a <code title="">link</code> element in the
<a href=#atom-namespace>Atom namespace</a>. Add a <code title="">rel</code>
attribute whose value is the string "<code title="">alternate</code>" to <var title="">x</var>. Append a
text node with its data set to <var title="">id</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>
attribute whose value is the string "<code title="">alternate</code>" to <var title="">x</var>. Add an
<code title="">href</code> attribute whose value is <var title="">id</var> to <var title="">x</var>. Append <var title="">x</var> to <var title="">E</var>.</p>

</li>

Expand Down
20 changes: 10 additions & 10 deletions source
Expand Up @@ -63849,11 +63849,11 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
title="">x</var>. Otherwise, the document being converted is an
<span title="XML documents">XML document</span>; add a <code
title="">type</code> attribute whose value is the string
"<code>application/xhtml+xml</code>" to <var
title="">x</var>. Append a text node with its data set to
<span>the document's current address</span> to <var
title="">x</var>. Append <var title="">x</var> to the root element
of <var title="">R</var>.</p>
"<code>application/xhtml+xml</code>" to <var title="">x</var>. Add
an <code title="">href</code> attribute whose value is <span>the
document's current address</span> to <var title="">x</var>. Append
<var title="">x</var> to the root element of <var
title="">R</var>.</p>

</li>

Expand Down Expand Up @@ -64085,7 +64085,7 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
title="">x</var> be a <code title="">content</code> element in
the <span>Atom namespace</span>. Add a <code
title="">type</code> attribute whose value is the string "<code
title="">xml</code>" to <var title="">x</var>. Append a
title="">xhtml</code>" to <var title="">x</var>. Append a
<code>div</code> element to <var title="">x</var>. Move all the
child nodes of the <var title="">cloned article</var> node to
that <code>div</code> element, preserving their relative
Expand Down Expand Up @@ -64155,10 +64155,10 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
title="">x</var> be a <code title="">link</code> element in the
<span>Atom namespace</span>. Add a <code title="">rel</code>
attribute whose value is the string "<code
title="">alternate</code>" to <var title="">x</var>. Append a
text node with its data set to <var title="">id</var> to <var
title="">x</var>. Append <var title="">x</var> to <var
title="">E</var>.</p>
title="">alternate</code>" to <var title="">x</var>. Add an
<code title="">href</code> attribute whose value is <var
title="">id</var> to <var title="">x</var>. Append <var
title="">x</var> to <var title="">E</var>.</p>

</li>

Expand Down

0 comments on commit 1740674

Please sign in to comment.