[8] Atom の Text construct は、人間可読の文章を含みます。 普通は短い文章です。 Atom 1.0 3.1.
[9] 仕様書:
[10] Text construct の内容は Language-Sensitive です Atom 1.0 3.1.。
[22] Text construct の要素の内容は、 type 属性の値によって決まります。
[27] type が html の場合、
子要素を含んではなりません Atom 1.0 3.1.1.2.。
[28] 内容は HTML 4.01 として処理するのに適切であるべきです。
HTML マーク付けは escape しなければなりません。
div 要素内に現れたとして妥当であるべきです。
Atom 1.0 3.1.1.2.
[30] type が xhtml の場合、
内容は XHTML m12n 1.0 div 要素だけでなければなりません。
XHTML として処理するのに適切であるべきです。
Atom 1.0 3.1.1.3.
[31] div 要素自体は内容の一部と考えてはなりません。
Atom 1.0 3.1.1.3.
[32] でも、 div 要素自体は内容でないとしても、そこに
lang 属性や dir 属性が指定されることがあるので、
注意が必要です。
とはいっても、 div 要素が特別なのではなく、
それ以外にも xml:base 属性や名前空間属性などのように先祖
(div より更に上からも。) から継承する属性は色々ありますので、
フィードの一部を取り出して他のところに使うときには本当に注意しないといけません。
type でもです。[38] 未知の type に遭遇した時どうするべきなのかは不明です。
[39] type=text や type=html
で子要素が出現した時どうするべきなのかは不明です。
[40] type=xhtml で
div 要素がなかったり、他に子要素があったりするときどうするべきなのかは不明です。
[24]
type が text の場合、
Atom処理器は空白 (改行を含みます。) をまとめたり、
両端揃えや可変幅フォントのような組版上の技術を適用したりして構いません
Atom 1.0 3.1.1.1.。
[18] Atom 0.3 では atom:content 要素も含めて Content construct
という名前でしたが、 Atom 1.0 では Text construct に改名され、
同要素は別個の定義となりました。
[19] Atom 0.3 の Content construct には mode と
type の2つの属性がありましたが、両者は統合されて
type 属性のみになりました。
[17] Atom 1.0 の atom:content 要素は Text construct と似ていますが、
平文や HTML 以外の内容も表せます。
<title type="text">
Less: <
</title> <title type="html">
Less: <em> &lt; </em>
</title> <title type="xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xhtml:div>
Less: <xhtml:em> < </xhtml:em>
</xhtml:div>
</title> <summary type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
This is <b>XHTML</b> content.
</div>
</summary> <summary type="xhtml">
<xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml">
This is <xhtml:b>XHTML</xhtml:b> content.
</xhtml:div>
</summary> <summary type="xhtml">
<xh:div>
This is <xh:b>XHTML</xh:b> content.
</xh:div>
</summary>
[7] A Blog From Behind the Trenches ( 版) <http://my.opera.com/haavard/xml/atom/blog/>
<entry>
<title type="xhtml" xml:lang="en">
<div xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">Net Applications admits to skewed statistics</div>
</title>
<author>
<name>Haavard</name>
</author>
<link href="http://my.opera.com/haavard/blog/show.dml/2779029"/>
<id>http://my.opera.com/haavard/blog/2779029</id>
<updated>2008-12-03T12:56:55Z</updated>
<content xml:lang="en" type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"><hr/>In an article at "The Industry Standard", Net Applications apparently <a href="http://www.thestandard.com/news/2008/12/02/safari-tops-7-global-browser-market-share-sort" target="_blank">admit that their numbers are skewed</a>. More specifically, they admit that they are skewed towards certain regions of the world (US-centric, anyone?). In such an amazing moment of honesty, I wonder why they didn't also admit to actively <a href="http://my.opera.com/haavard/blog/2008/09/04/why-is-net-applications-hitslink-changing-its-browser-stats-after-publishing" target="_blank">editing their own statistics</a>.<br/><br/><strong>Update:</strong> Their claim to be skewed towards Europe doesn't really match <a href="http://www.xitimonitor.com/en-us/browsers-barometer/browsers-barometer-september-2008/index-1-2-3-145.html" target="_blank">XiTi Monitor's statistics for Europe</a>. This would indicate that Net Applications is <strong>heavily</strong> skewed towards the US.</div></content>
</entry>atom:content 要素や Text construct である atom:title
要素の子供の div 要素に属性が指定されています。
意外と珍しい気がします。 type=xhtml 自体珍しいかもしれませんが、
その中でも更に珍しいんじゃないかな。 xml:lang 属性でなく
lang 属性を使っているところにも注目したいですね。
[1] Atom 0.3 の Content construct は、 任意の子供内容を含めることができます Atom 0.3。
仕様書: The Atom Syndication Format 0.3 (PRE-DRAFT) ( 版) <http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.section.3.1>
[2] 属性は2つあり、子供の特性を指定します Atom 0.3。
[6] Content construct は、 Atom 1.0 では Text construct に改名され、
2つの属性も1つの type 属性に統合されています。
更に、 atom:content 要素は独立した内容モデルに変更されています。
type 属性 (Atom 1.0)[11] Atom 1.0 の Text construct の
type 属性は、
内容の種類を表します。
[13] 仕様書:
[14] Atom 1.0 では3種類の値が定義されています。
[21] atom:content 属性の type 属性とは異なり、
媒体型を指定してはなりません Atom 1.0 3.1.1.。
[16] Atom処理器は、この属性が存在しない場合、
text と同じように動作しなければなりません
Atom 1.0 3.1.1.。
[20] Atom 0.3 Content construct には type 属性と
mode 属性がありましたが、 Atom 1.0
では両者が統合され、 type 属性のみとなりました。
Content construct と違って Base64 や任意の媒体型を使うことはできなくなっています
(Atom 1.0 atom:content 要素では可能です)。
mode 属性 (Atom 0.3)[3] Atom 0.3 の Content construct の
mode 属性は、
内容の符号化の方法を表します Atom 0.3。
atom:content typemodexml / escaped / base64仕様書: The Atom Syndication Format 0.3 (PRE-DRAFT) ( 版) <http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.section.3.1.2>
[37] Metalink の Text construct は属性を持たず、常に text
相当のようです。
<entry>
<title type="text/plain" mode="xml">新刊入荷しました&休館日のお知らせ</title>
POST /atom/post
<entry xmlns="http://purl.org/atom/ns#">
<title>Sample</title>
<content mode="base64" type="image/jpeg">/9j/2wCEAAQDAwQDAw.../9n/AA==</content>
</entry>
<title mode="escaped" type="text/plain">atom test</title>
<content type="application/xhtml+xml">
<div xmlns="http://www.w3.org/1999/xhtml">Testing the Atom API</div>
</content>
[45] RFC 8120 - Mutual Authentication Protocol for HTTP () <https://tools.ietf.org/html/rfc8120#section-3.2.3>
[46] Clarify base64 vs base64url for hashes. (mikewest著, ) <https://github.com/w3c/webappsec-csp/commit/1ceea1b95e73d34dd717282fbe8c19189043c07b>
metadata: websafe-base64 encoded string,