Skip to content

Commit

Permalink
[] (0) add support for RSS 1.0 in draft form (this will need fleshing…
Browse files Browse the repository at this point in the history
… out at some point)

git-svn-id: http://svn.whatwg.org/webapps@532 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 30, 2007
1 parent 6a19008 commit 62bd11e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 13 deletions.
29 changes: 22 additions & 7 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -18982,37 +18982,52 @@ XXX selection ranges -->
<li>
<p>Otherwise, if the bytes in <var title="">s</var> starting at <var
title="">pos</var> match any of the sequences of bytes in the first
column of the following table, then the sniffed type of the resource is
the type given in the corresponding cell in the second column of the
same row.</p>
column of the following table, then the user agent must follow the steps
given in the corresponding cell in the second column of the same row.</p>

<table>
<thead>
<tr>
<th>Bytes in Hexadecimal

<th>Sniffed type
<th>Requirement

<th>Comment

<tbody>
<tr>
<td>3C 72 73 73

<td>application/rss+xml
<td>The sniffed type of the resource is "application/rss+xml"; abort
these steps

<td>The four ASCII characters "<code title="">&lt;rss</code>"

<tr>
<td>3C 66 65 65 64

<td>application/atom+xml
<td>The sniffed type of the resource is "application/atom+xml"; abort
these steps

<td>The four ASCII characters "<code title="">&lt;feed</code>"

<tr>
<td>3C 66 65 65 64

<td>Continue to the

<td>The four ASCII characters "<code title="">&lt;feed</code>"
</table>

<p>If none of the byte sequences above match the bytes in <var
title="">s</var> starting at <var title="">pos</var>, then the sniffed
type of the resource is "text/html". Abort these steps.</p>

<li>
<p class=big-issue>This doesn't yet detect RSS 1.0
<p class=big-issue>If, before the next ">", you find two xmlns*
attributes with http://www.w3.org/1999/02/22-rdf-syntax-ns# and
http://purl.org/rss/1.0/ as the namespaces, then the sniffed type of the
resource is "application/rss+xml", abort these steps.

<li>
<p>Otherwise, the sniffed type of the resource is "text/html".
Expand Down
25 changes: 19 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -16885,31 +16885,44 @@ XXX selection ranges -->

<li><p>Otherwise, if the bytes in <var title="">s</var> starting at
<var title="">pos</var> match any of the sequences of bytes in the
first column of the following table, then the sniffed type of the
resource is the type given in the corresponding cell in the second
first column of the following table, then the user agent must
follow the steps given in the corresponding cell in the second
column of the same row.</p>

<table>
<thead>
<tr>
<th>Bytes in Hexadecimal
<th>Sniffed type
<th>Requirement
<th>Comment

<tbody>
<tr>
<td>3C 72 73 73
<td>application/rss+xml
<td>The sniffed type of the resource is "application/rss+xml"; abort these steps
<td>The four ASCII characters "<code title="">&lt;rss</code>"
<tr>
<td>3C 66 65 65 64
<td>application/atom+xml
<td>The sniffed type of the resource is "application/atom+xml"; abort these steps
<td>The four ASCII characters "<code title="">&lt;feed</code>"
<tr>
<td>3C 66 65 65 64
<td>Continue to the
<td>The four ASCII characters "<code title="">&lt;feed</code>"
</table>

<p>If none of the byte sequences above match the bytes in <var
title="">s</var> starting at <var title="">pos</var>, then the
sniffed type of the resource is "text/html". Abort these
steps.</p>

</li>

<li><p class="big-issue">This doesn't yet detect RSS 1.0</p></li>
<li><p class="big-issue">If, before the next ">", you find two
xmlns* attributes with http://www.w3.org/1999/02/22-rdf-syntax-ns#
and http://purl.org/rss/1.0/ as the namespaces, then the sniffed
type of the resource is "application/rss+xml", abort these
steps.</p></li>

<li><p>Otherwise, the sniffed type of the resource is
"text/html".</p></li>
Expand Down

0 comments on commit 62bd11e

Please sign in to comment.