<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ol</anchor></code> 要素の <dfn><code class="HTMLa">start</code> 属性</dfn>は、
並びの最初の項目の番号を指定します。</p><p>この属性の型は <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">NUMBER</anchor></code> です。
<code class="HTMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">type</anchor></code> 属性の指定に関わらず、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">アラビア数字</anchor>を使って指定します。</p><p>この属性は必須ではありません。既定値は
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DTD</anchor> にはありませんが、仕様書によれば) <code>1</code> です。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML 4</anchor> ではこの属性は非推奨です。</p><p>仕様書: [HTML 4]
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;struct/lists.html#adef-start&quot;">IW:HTML4:&quot;struct/lists.html#adef-start&quot;</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> 開始番号の変更が装飾的なもの (本質的ではないもの) であるなら、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CSS</anchor> の <code class="CSS"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">counter</anchor></code> などを使って同じことを指定することができ、そうするのが望ましいと思われます。
本当に意味的な順位の指定であるのなら、非推奨であることにこだわらずに
<code class="HTMLa">start</code> 属性を使うか、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XHTML 2</anchor> を待ちましょう。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 糞解説書には、負の数も指定できるけど、そのときは <code class="HTML"><code class="HTMLa">type</code>=1</code>
でなければならないと言っているものもあります。
(それは偶々試したブラウザでアラビア数字のときだけ負の数もそれっぽく解釈してくれただけだろうに。)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end><ul><li><code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ul</anchor></code> 要素には <code class="HTMLa">start</code> 属性はありません (意味を考えれば自明)。</li><li><code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">dl</anchor></code> 要素にもありません。</li><li><code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">li</anchor></code> 要素には、
同じような働きの <code class="HTMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">value</anchor></code> 属性があります。</li></ul></p><p><code class="HTMLa">start</code> 属性のように直接開始番号を指定するのではなく、他の <code class="HTMLe">ol</code> の続きであることにより示す方法も何度も提案されていますが、標準化や実装がなされたことは (まだ) ありません。
(仮にその方法を採ると、外部文書の並びの継続をどう扱うかの問題が生じます。 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI参照</anchor>を使えば記述の問題は特にありませんが、実装が一々他の文書を読まないと表示したり何番目かを決定したりできないのはしんどいでしょう。)
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end>
<cite>w3m-dev 04115</cite>: <code class="HTMLa">start</code> や <code class="HTMLa">value</code> に非正数を指定した場合の Firefox と WinIE 6 の挙動について。</p><section><h1>歴史</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <code class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ol</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>の <code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">start</anchor></code>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">属性</anchor>は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML 2.0</anchor> の拡張として <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Netscape Navigator</anchor>
が実装しました。</p><p><code class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ol</anchor></code> の最初の項目は普通 <code class="HTML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">1</anchor></code>
ですが、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">著者</anchor>が他の値を指定できると説明されていました。
<code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">type</anchor></code> に関わらず<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">数値</anchor>を指定することになっていました。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml">Netscape Navigator Extensions to HTML</cite>
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://web.archive.org/web/20000415023954/http://www.netscape.com/home/services_docs/html-extensions.html">http://web.archive.org/web/20000415023954/http://www.netscape.com/home/services_docs/html-extensions.html</anchor-external></comment-p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end>
<cite>Re: <strong></strong>[<strong></strong>HTML5<strong></strong>]<strong></strong> Named start values for lists?</cite> (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Ian Hickson &lt;ian@...&gt;</anchor> 著, <code>2007-11-09 04:22:35 +09:00</code> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/12388">http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/12388</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <cite xml:lang="en">Make &lt;li&gt; ordinal value calculation precise</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">domenic</anchor>著, <time>2016-08-04 18:55:35 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/5fe3dbb016f40f0b7af0538dae9adc134be29c3f">https://github.com/whatwg/html/commit/5fe3dbb016f40f0b7af0538dae9adc134be29c3f</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <cite xml:lang="en">Fix the definition of the ol.start IDL attribute</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">domenic</anchor>著, <time>2016-10-18 03:36:59 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/930b7f1a16b8ac32ca6902f7bc22dfcba2a66315">https://github.com/whatwg/html/commit/930b7f1a16b8ac32ca6902f7bc22dfcba2a66315</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> <cite xml:lang="en">Fix how &lt;li&gt;s are numbered and associated with &lt;ol&gt;s</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">domenic</anchor>著, <time>2016-11-09 04:06:54 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/fd726b069bee2c73600fbccac8e36f8783549bfc">https://github.com/whatwg/html/commit/fd726b069bee2c73600fbccac8e36f8783549bfc</anchor-external></p></section></body></html>