/[suikacvs]/markup/html/html5/spec-ja/data/documents.dat
Suika

Diff of /markup/html/html5/spec-ja/data/documents.dat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by apache, Sun Aug 10 08:58:03 2008 UTC revision 1.55 by apache, Wed Aug 20 16:29:28 2008 UTC
# Line 279  U+002F SOLIDUS 文字 ('/')。 Line 279  U+002F SOLIDUS 文字 ('/')。
279  #en  #en
280  The day component of the date.  The day component of the date.
281  #ja  #ja
 日付の日の部品。  
282    日付の日の部品。
283    
284    #en
285    The year component of the date.
286    #ja
287    日付の年の部品。
288    
289    #en
290    A U+0020 SPACE character.
291    #ja
292    U+0020 SPACE 文字。
293    
294    #en
295    The hours component of the time.
296    #ja
297    時刻の時の部品。
298    
299    #en
300    A U+003A COLON character (':').
301    #ja
302    U+003A COLON 文字 (':')。
303    
304    #en
305    The minutes component of the time.
306    #ja
307    時刻の分の部品。
308    
309    #en
310    The seconds component of the time.
311    #ja
312    時刻の秒の部品。
313    
314    #en
315    All the numeric components above, other than the year, must be given as
316       two digits in the range U+0030 DIGIT ZERO to U+0039 DIGIT NINE
317       representing the number in base ten, zero-padded if necessary.
318    #ja
319    前述の数値の部品のうち年以外のすべては、範囲 U+0030 DIGIT ZERO ~
320    U+0039 DIGIT NINE の2つの数字によって十進数を表す、
321    必要なら零埋めしたものとして与えなければ[[MUST:なりません]]。
322    
323    #en
324    The <code>Document</code>'s source file's last modification date and
325       time must be derived from relevant features of the networking protocols
326       used, e.g. from the value of the HTTP <code title="">Last-Modified</code>
327       header of the document, or from metadata in the file system for local
328       files. If the last modification date and time are not known, the attribute
329       must return the string <code title="">01/01/1970 00:00:00</code>.
330    #ja
331    <code>Document</code> の原始ファイルの最終修正日時は、
332    使用されているネットワークのプロトコルの関係する機能、例えば文書の HTTP <code title="">Last-Modified</code> 頭部から、または局所ファイルのファイル・システムのメタデータから得たものでなければ[[MUST:なりません]]。
333    最終修正日時がわからない場合は、この属性は文字列 <code title="">01/01/1970 00:00:00</code>
334    を返さなければ[[MUST:なりません]]。
335    
336    #en
337    The <code>Document</code>'s source file's last modification date and
338       time must be derived from relevant features of the networking protocols
339       used, e.g. from the value of the HTTP <code title="">Last-Modified</code>
340       header of the document, or from metadata in the file system for local
341       files. If the last modification date and time are not known, the attribute
342       must return the string <code title="">01/01/1970 00:00:00</code>.
343    #ja
344    <code>Document</code> の原始ファイルの最終修正日時は、
345    使用されているネットワークのプロトコルの関係する機能、例えば文書の HTTP <code title="">Last-Modified</code> 頭部から、または局所ファイルのファイル・システムのメタデータから得たものでなければ[[MUST:なりません]]。
346    最終修正日時がわからない場合は、この属性は文字列 <code title="">01/01/1970 00:00:00</code>
347    を返さなければ[[MUST:なりません]]。
348    
349    #en
350    A <code>Document</code> is always set to one of three modes: <dfn
351       id=no-quirks>no quirks mode</dfn>, the default; <dfn id=quirks>quirks
352       mode</dfn>, used typically for legacy documents; and <dfn
353       id=limited1>limited quirks mode</dfn>, also known as "almost standards"
354       mode. The mode is only ever changed from the default by the <a
355       href="#html-0">HTML parser</a>, based on the presence, absence, or value
356       of the DOCTYPE string.
357    #ja
358    <code>Document</code> は常に3つのモードのいずれかに設定されています。<dfn
359       id=no-quirks>無奇癖モード</dfn>は既定値です。<dfn id=quirks>奇癖モード</dfn>は、
360    普通、遺物文書に使われます。<dfn
361       id=limited1>制限奇癖モード</dfn>は、「ほぼ標準」モードとも呼ばれます。
362    このモードは
363    <a
364       href="#html-0">HTML 構文解析器</a>によってのみ、
365    DOCTYPE 文字列が存在するか存在しないかやその値に基づいて既定値から変更されます。
366    
367    #en
368    The <dfn id=compatmode
369       title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute
370       must return the literal string "<code title="">CSS1Compat</code>" unless
371       the document has been set to <a href="#quirks">quirks mode</a> by the <a
372       href="#html-0">HTML parser</a>, in which case it must instead return the
373       literal string "<code title="">BackCompat</code>".
374    #ja
375    <dfn id=compatmode
376       title=dom-document-compatMode><code>compatMode</code></dfn> DOM
377    属性は、生の文字列「<code title="">CSS1Compat</code>」を返さなければ[[MUST:なりません]]。
378    ただし、文書が <a
379       href="#html-0">HTML 構文解析器</a>により<a href="#quirks">奇癖モード</a>に設定されている場合には、
380    代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。
381    
382    #en
383    Documents have an associated <dfn id=character3 title="document's
384       character encoding">character encoding</dfn>. When a <code>Document</code>
385       object is created, the <a href="#character3">document's character
386       encoding</a> must be initialized to UTF-16. Various algorithms during page
387       loading affect this value, as does the <code title=dom-document-charset><a
388       href="#charset0">charset</a></code> setter. <a
389       href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX
390      http://www.iana.org/assignments/character-sets -->
391    #ja
392    文書は<dfn id=character3 title="document's
393       character encoding">文字符号化</dfn>と関連付けられています。
394    <code>Document</code> オブジェクトが作成された時、<a href="#character3">文書の文字符号化</a>は
395    UTF-16 に初期化されなければ[[MUST:なりません]]。
396    頁の読み込みの間の色々な算法や <code title=dom-document-charset><a
397       href="#charset0">charset</a></code> 設定子がこの値を変化させます。 <a
398       href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX
399      http://www.iana.org/assignments/character-sets -->
400    
401    #en
402    The <dfn id=charset0
403       title=dom-document-charset><code>charset</code></dfn> DOM attribute must,
404       on getting, return the preferred MIME name of the <a
405       href="#character3">document's character encoding</a>. On setting, if the
406       new value is an IANA-registered alias for a character encoding, the <a
407       href="#character3">document's character encoding</a> must be set to that
408       character encoding. (Otherwise, nothing happens.)
409    #ja
410    <dfn id=charset0
411       title=dom-document-charset><code>charset</code></dfn> DOM
412    属性は、取得時、<a
413       href="#character3">文書の文字符号化</a>の優先 MIME
414    名を返さなければ[[MUST:なりません]]。設定時、
415    新しい値がある文字符号化の IANA に登録された別名である場合、<a
416       href="#character3">文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。
417    (それ以外の場合、何も起きません。)
418    
419    #en
420    The <dfn id=characterset
421       title=dom-document-characterSet><code>characterSet</code></dfn> DOM
422       attribute must, on getting, return the preferred MIME name of the <a
423       href="#character3">document's character encoding</a>.
424    #ja
425    <dfn id=characterset
426       title=dom-document-characterSet><code>characterSet</code></dfn> DOM
427    属性は、取得時、<a
428       href="#character3">文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。
429    
430    #en
431    The <dfn id=defaultcharset
432       title=dom-document-defaultCharset><code>defaultCharset</code></dfn> DOM
433       attribute must, on getting, return the preferred MIME name of a character
434       encoding, possibly the user's default encoding, or an encoding associated
435       with the user's current geographical location, or any arbitrary encoding
436       name.
437    #ja
438    <dfn id=defaultcharset
439       title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
440    DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。
441    この文字符号化は利用者の既定の符号化でもいいですし、
442    利用者の現在の地理的位置に関連付けられた符号化でもいいですし、
443    その他任意の符号化名でもあり得ます。
444    
445    #pattern
446    <span class=secno>* </span><dfn id=dom-tree0>DOM tree
447       accessors</dfn>
448    #ja
449    <span class=secno>$1 </span><dfn id=dom-tree0>DOM 木アクセス器</dfn>
450    
451    #en
452    <dfn id=the-html0>The <code>html</code> element</dfn> of a document is
453       the document's root element, if there is one and it's an <code><a
454       href="#html">html</a></code> element, or null otherwise.
455    #ja
456    文書の<dfn id=the-html0>文書 <code>html</code> 要素</dfn>は、
457    その文書の根要素があり、それが <code><a
458       href="#html">html</a></code> 要素である場合はその要素、それ以外の場合には
459    null です。
460    
461    #en
462    <dfn id=the-head0>The <code>head</code> element</dfn> of a document is
463       the first <code><a href="#head">head</a></code> element that is a child of
464       <a href="#the-html0">the <code>html</code> element</a>, if there is one,
465       or null otherwise.
466    #ja
467    文書の<dfn id=the-head0>文書 <code>head</code> 要素</dfn>は、
468    <a href="#the-html0">文書 <code>html</code> 要素</a>の子供である最初の
469    <code><a href="#head">head</a></code> 要素がある場合はその要素、
470    そうでない場合は null です。
471    
472    
473    #en
474    <dfn id=the-title1>The <code>title</code> element</dfn> of a document is
475       the first <code><a href="#title1">title</a></code> element in the document
476       (in tree order), if there is one, or null otherwise.
477    #ja
478    文書の<dfn id=the-title1>文書 <code>title</code> 要素</dfn>は文書の (木順で)
479    最初の <code><a href="#title1">title</a></code> 要素がある場合はその要素、
480    そうでない場合は null です。
481    
482    #en
483    The <dfn id=document.title
484       title=dom-document-title><code>title</code></dfn> attribute must, on
485       getting, run the following algorithm:
486    #ja
487    <dfn id=document.title
488       title=dom-document-title><code>title</code></dfn> 属性は、
489    取得時、次の算法を走らせなければ[[MUST:なりません]]。
490    
491    #en
492    If the <a href="#root-element">root element</a> is an <code>svg</code>
493         element in the "<code title="">http://www.w3.org/2000/svg</code>"
494         namespace, and the user agent supports SVG, then the getter must return
495         the value that would have been returned by the DOM attribute of the same
496         name on the <code>SVGDocument</code> interface.
497    #ja
498    <a href="#root-element">根要素</a>が
499    「<code title="">http://www.w3.org/2000/svg</code>」名前空間の <code>svg</code>
500    要素であり、利用者エージェントが SVG に対応している場合、取得器は <code>SVGDocument</code>
501    界面の同名の DOM 属性が返す値を返さなければ[[MUST:なりません]]。
502    
503    
504    #en
505    Otherwise, it must return a concatenation of the data of all the child
506         <a href="#text-node" title="text node">text nodes</a> of <a
507         href="#the-title1">the <code>title</code> element</a>, in tree order, or
508         the empty string if <a href="#the-title1">the <code>title</code>
509         element</a> is null.
510    #ja
511    そうでない場合、<a
512         href="#the-title1">文書 <code>title</code> 要素</a>のすべての子供<a href="#text-node" title="text node">テキスト節点</a>のデータを木順に連結したものを返すか、
513    <a
514         href="#the-title1">文書 <code>title</code> 要素</a>が null
515    の場合には殻文字列を返さなければ[[MUST:なりません]]。
516    
517    #en
518    On setting, the following algorithm must be run:
519    #ja
520    設定時、次の算法を走らせなければ[[MUST:なりません]]。
521    
522    #en
523    If the <a href="#root-element">root element</a> is an <code>svg</code>
524         element in the "<code title="">http://www.w3.org/2000/svg</code>"
525         namespace, and the user agent supports SVG, then the setter must defer
526         to the setter for the DOM attribute of the same name on the
527         <code>SVGDocument</code> interface (if it is readonly, then this will
528         raise an exception). Stop the algorithm here.
529    #ja
530    <a href="#root-element">根要素</a>が
531    「<code title="">http://www.w3.org/2000/svg</code>」名前空間の
532    <code>svg</code> 要素で利用者エージェントが SVG に対応している場合、
533    設定器は <code>SVGDocument</code> 界面の同名の DOM 属性の設定器に委ねなければ[[MUST:なりません]]
534    (それが読み取り専用である場合、例外を発生させることとなります)。算法をここで停止します。
535    
536    #en
537    If <a href="#the-title1">the <code>title</code> element</a> is null
538        and <a href="#the-head0">the <code>head</code> element</a> is null, then
539        the attribute must do nothing. Stop the algorithm here.
540    #ja
541    <a href="#the-title1">文書 <code>title</code> 要素</a>が null
542    で<a href="#the-head0">文書 <code>head</code> 要素</a>が null
543    の場合、属性は何もしては[[MUST:なりません]]。算法をここで停止します。
544    
545    #en
546    If <a href="#the-title1">the <code>title</code> element</a> is null,
547        then a new <code><a href="#title1">title</a></code> element must be
548        created and appended to <a href="#the-head0">the <code>head</code>
549        element</a>.
550    #ja
551    <a href="#the-title1">文書 <code>title</code> 要素</a>が null
552    の場合、新しい <code><a href="#title1">title</a></code> 要素を作成し、
553    <a href="#the-head0">文書 <code>head</code>
554        要素</a>の最後に追加しなければ[[MUST:なりません]]。
555    
556    #en
557    The children of <a href="#the-title1">the <code>title</code>
558        element</a> (if any) must all be removed.
559    #ja
560    <a href="#the-title1">文書 <code>title</code>
561        要素</a>の子供を (あれば) すべて削除しなければ[[MUST:なりません]]。
562    
563    #en
564    A single <code>Text</code> node whose data is the new value being
565        assigned must be appended to <a href="#the-title1">the <code>title</code>
566        element</a>.
567    #ja
568    データが指定された新しい値である1つの <code>Text</code> 節点を
569    <a href="#the-title1">文書 <code>title</code>
570        要素</a>の最後に追加しなければ[[MUST:なりません]]。
571    
572    #en
573    The <code title=dom-document-title><a
574       href="#document.title">title</a></code> attribute on the <code><a
575       href="#htmldocument">HTMLDocument</a></code> interface should shadow the
576       attribute of the same name on the <code>SVGDocument</code> interface when
577       the user agent supports both HTML and SVG.
578    #ja
579    利用者エージェントが HTML と SVG の両方に対応する時には、
580    <code><a
581       href="#htmldocument">HTMLDocument</a></code> 界面の
582    <code title=dom-document-title><a
583       href="#document.title">title</a></code> 属性が
584    <code>SVGDocument</code> 界面の同名の属性を隠す[[SHOULD:べきです]]。

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.55

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24