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

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

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

revision 1.92 by apache, Fri Oct 24 18:44:07 2008 UTC revision 1.165 by apache, Sat Oct 25 09:13:20 2008 UTC
# Line 1  Line 1 
   
1  #pattern  #pattern
2  <span class=secno>* </span>The HTML syntax  <span class=secno>* </span>The HTML syntax
3  #ja  #ja
# Line 278  Elements from the <a href=#mathml-namesp Line 277  Elements from the <a href=#mathml-namesp
277     and the <span>SVG namespace</span>.     and the <span>SVG namespace</span>.
278  #ja  #ja
279  <a href=#mathml-namespace>MathML 名前空間</a>からの要素。<!--XXXSVG  <a href=#mathml-namespace>MathML 名前空間</a>からの要素。<!--XXXSVG
280     and the <span>SVG namespace</span>.     and the <span>SVG namespace</span>.-->
281    
282  #en  #en
283  Normal elements  Normal elements
# Line 607  Finally, end tags must be closed by a U+ Line 606  Finally, end tags must be closed by a U+
606  #pattern  #pattern
607  <span class=secno>* </span>Attributes  <span class=secno>* </span>Attributes
608  #ja  #ja
609  <span class=secno>$1 </span>属性  <span class=secno>$1 </span>属性
610    
611  #en  #en
612  <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the  <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
613    following format:    following format:
614  #ja  #ja
615  <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。  <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
616    following format:  
617    #en
 #en  
618  <dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element  <dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element
619    are expressed inside the element's start tag.    are expressed inside the element's start tag.
620  #ja  #ja
621  要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、  要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、
622  当該要素の開始タグの内側で表現されます。  当該要素の開始タグの内側で表現されます。
623    
624  #en  #en
625  Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of  Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of
626    one or more characters other than the <a href=#space-character title="space    one or more characters other than the <a href=#space-character title="space
627    character">space characters</a>, U+0000 NULL, U+0022 QUOTATION    character">space characters</a>, U+0000 NULL, U+0022 QUOTATION
# Line 632  Attributes have a name and a value. <dfn Line 630  Attributes have a name and a value. <dfn
630    the control characters, and any characters that are not defined by    the control characters, and any characters that are not defined by
631    Unicode. In the HTML syntax, attribute names may be written with any    Unicode. In the HTML syntax, attribute names may be written with any
632    mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII    mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII
633    case-insensitive</a> match for the attribute's name.    case-insensitive</a> match for the attribute's name.
634  #ja  #ja
635  属性は名前と値を持ちます。  属性は名前と値を持ちます。
636  <dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、  <dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、
637  <a href=#space-character title="space  <a href=#space-character title="space
# Line 643  Attributes have a name and a value. <dfn Line 641  Attributes have a name and a value. <dfn
641  制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。  制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。
642  HTML 構文では、属性名は当該属性の名前に  HTML 構文では、属性名は当該属性の名前に
643  <a href=#ascii-case-insensitive>ASCII  <a href=#ascii-case-insensitive>ASCII
644  大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。  大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。
645    
646  #en  #en
647  <dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a  <dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a
648    mixture of <a href=#syntax-text title=syntax-text>text</a> and <a href=#syntax-charref title=syntax-charref>character references</a>, except with the    mixture of <a href=#syntax-text title=syntax-text>text</a> and <a href=#syntax-charref title=syntax-charref>character references</a>, except with the
649    additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.    additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
650  #ja  #ja
651  <dfn id=syntax-attribute-value title=syntax-attribute-value>属性値</dfn>は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>の混合ですが、テキストが<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含むことができないとの追加の制限があります。  <dfn id=syntax-attribute-value title=syntax-attribute-value>属性値</dfn>は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>の混合ですが、テキストが<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含むことができないとの追加の制限があります。
652    
653  #en  #en
654  Attributes can be specified in four different ways:  Attributes can be specified in four different ways:
655  #ja  #ja
656  属性は4種類の方法で指定できます。  属性は4種類の方法で指定できます。
657    
658  #en  #en
659  Empty attribute syntax  Empty attribute syntax
660  #ja  #ja
661  空属性構文  空属性構文
662    
663  #en  #en
664  Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute  Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute
665      name</a>.      name</a>.
666  #ja  #ja
667  <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。  <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。
668    
669  #en  #en
670  In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with  In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with
671       the empty attribute syntax:       the empty attribute syntax:
672  #ja  #ja
673  次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code>  次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code>
674  属性が空属性構文により与えられています。  属性が空属性構文により与えられています。
675    
676  #en  #en
677  If an attribute using the empty attribute syntax is to be  If an attribute using the empty attribute syntax is to be
678      followed by another attribute, then there must be a <a href=#space-character>space      followed by another attribute, then there must be a <a href=#space-character>space
679      character</a> separating the two.      character</a> separating the two.
680  #ja  #ja
681  空属性構文を用いる属性の後に別の属性が続く場合、  空属性構文を用いる属性の後に別の属性が続く場合、
682  両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。  両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。
683    
684  #en  #en
685  Unquoted attribute value syntax  Unquoted attribute value syntax
686  #ja  #ja
687  非引用属性値構文  非引用属性値構文
688    
689  #en  #en
690  The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,  The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
691      followed by zero or more <a href=#space-character title="space character">space      followed by zero or more <a href=#space-character title="space character">space
692      characters</a>, followed by a single U+003D EQUALS SIGN      characters</a>, followed by a single U+003D EQUALS SIGN
# Line 700  The <a href=#syntax-attribute-name title Line 698  The <a href=#syntax-attribute-name title
698      characters, U+0027 APOSTROPHE (<code>'</code>) characters,      characters, U+0027 APOSTROPHE (<code>'</code>) characters,
699      U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E      U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E
700      GREATER-THAN SIGN (<code>&gt;</code>) characters, and must not be      GREATER-THAN SIGN (<code>&gt;</code>) characters, and must not be
701      the empty string.      the empty string.
702  #ja  #ja
703  <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、  <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、
704  その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space  その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space
705      character">間隔文字</a>があり、      character">間隔文字</a>があり、
# Line 713  U+0027 APOSTROPHE (<code>'</code>) 文� Line 711  U+0027 APOSTROPHE (<code>'</code>) 文�
711  U+003D EQUALS SIGN (<code>=</code>) 文字、  U+003D EQUALS SIGN (<code>=</code>) 文字、
712  U+003E  U+003E
713      GREATER-THAN SIGN (<code>&gt;</code>) 文字を含んでは[[MUST NOT:ならず]]、      GREATER-THAN SIGN (<code>&gt;</code>) 文字を含んでは[[MUST NOT:ならず]]、
714  空文字列であっては[[MUST NOT:なりません]]。  空文字列であっては[[MUST NOT:なりません]]。
715    
716  #en  #en
717  In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given  In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given
718       with the unquoted attribute value syntax:       with the unquoted attribute value syntax:
719  #ja  #ja
720  次の例では、  次の例では、
721  <code title=attr-input-value><a href=#attr-input-value>value</a></code>  <code title=attr-input-value><a href=#attr-input-value>value</a></code>
722  属性が非引用属性値構文により与えられています。  属性が非引用属性値構文により与えられています。
723    
724    
725    #en
726    If an attribute using the unquoted attribute syntax is to be
727        followed by another attribute or by one of the optional U+002F
728        SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there
729        must be a <a href=#space-character>space character</a> separating the two.
730    #ja
731    非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる
732    U+002F
733        SOLIDUS (<code>/</code>) 文字が続く場合、
734    両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。
735    
736    #en
737    Single-quoted attribute value syntax
738    #ja
739    単一引用符属性値構文
740    
741    #en
742    The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
743        followed by zero or more <a href=#space-character title="space character">space
744        characters</a>, followed by a single U+003D EQUALS SIGN
745        character, followed by zero or more <a href=#space-character title="space
746        character">space characters</a>, followed by a single U+0027
747        APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
748        addition to the requirements given above for attribute values,
749        must not contain any literal U+0027 APOSTROPHE (<code>'</code>)
750        characters, and finally followed by a second single U+0027
751        APOSTROPHE (<code>'</code>) character.
752    #ja
753    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、
754    零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、
755    その後1文字の U+003D EQUALS SIGN
756    文字が続き、零文字以上の<a href=#space-character title="space
757        character">間隔文字</a>が続き、1文字の U+0027
758        APOSTROPHE (<code>'</code>) 文字が続き、<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続き、
759    この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>)
760    文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の
761    U+0027
762        APOSTROPHE (<code>'</code>) 文字が続くもの。
763    
764    #en
765    In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the
766         single-quoted attribute value syntax:
767    #ja
768    次の例では、
769    <code title=attr-input-type><a href=#attr-input-type>type</a></code>
770    属性が単一引用符属性値構文により与えられます。
771    
772    #en
773    If an attribute using the single-quoted attribute syntax is to
774        be followed by another attribute, then there must be a <a href=#space-character>space
775        character</a> separating the two.
776    #ja
777    単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。
778    
779    #en
780    Double-quoted attribute value syntax
781    #ja
782    二重引用符属性値構文
783    
784    #en
785    The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
786        followed by zero or more <a href=#space-character title="space character">space
787        characters</a>, followed by a single U+003D EQUALS SIGN
788        character, followed by zero or more <a href=#space-character title="space
789        character">space characters</a>, followed by a single U+0022
790        QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
791        addition to the requirements given above for attribute values,
792        must not contain any literal U+0022 QUOTATION MARK
793        (<code>"</code>) characters, and finally followed by a second
794        single U+0022 QUOTATION MARK (<code>"</code>) character.
795    #ja
796    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、
797    その後に1文字の U+003D EQUALS SIGN
798        文字が続き、その後に零文字以上の<a href=#space-character title="space
799        character">間隔文字</a>が続き、その後に1文字の U+0022
800        QUOTATION MARK (<code>"</code>) 文字が続き、その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続くところ、
801    前述の属性値に関する要件に加えて生の U+0022 QUOTATION MARK
802        (<code>"</code>) 文字を含んでは[[MUST:ならず]]、
803    最後に2つ目の1文字の U+0022 QUOTATION MARK (<code>"</code>) 文字が続くもの。
804    
805    #en
806    In the following example, the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute is given with the
807         double-quoted attribute value syntax:
808    #ja
809    次の例では、 <code title=attr-fe-name><a href=#attr-fe-name>name</a></code>
810    属性が二重引用符属性値構文で与えられます。
811    
812    #en
813    If an attribute using the double-quoted attribute syntax is to
814        be followed by another attribute, then there must be a <a href=#space-character>space
815        character</a> separating the two.
816    #ja
817    二重引用符属性構文を使った属性の後に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。
818    
819    #en
820    There must never be two or more attributes on the same start tag
821      whose names are an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for
822      each other.
823    #ja
824    同じ開始タグに名前が <a href=#ascii-case-insensitive>ASCII 大文字・小文字不区別</a>で一致する属性が2つ以上あっては[[MUST:なりません]]。
825    
826    #pattern
827    <span class=secno>* </span>Optional tags
828    #ja
829    <span class=secno>$1 </span>任意選択タグ
830    
831    #en
832    Certain tags can be <dfn id=syntax-tag-omission title=syntax-tag-omission>omitted</dfn>.
833    #ja
834    タグの中には<dfn id=syntax-tag-omission title=syntax-tag-omission>省略</dfn>できるものがあります。
835    
836    #en
837    An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
838      first thing inside the <code><a href=#the-html-element>html</a></code> element is not a <a href=#syntax-comments title=syntax-comments>comment</a>.
839    #ja
840    <code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
841    <code><a href=#the-html-element>html</a></code> 要素の内側の最初のものが<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
842    省略して[[MAY:構いません]]。
843    
844    #en
845    An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-end-tag>end
846      tag</span> may be omitted if the <code><a href=#the-html-element>html</a></code> element is not
847      immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a>
848      and the element contains a <code><a href=#the-body-element>body</a></code> element that is either
849      not empty or whose <span title=syntax-start-tag>start tag</span>
850      has not been omitted.
851    #ja
852    <code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
853    <code><a href=#the-html-element>html</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、
854    空でないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない
855    <code><a href=#the-body-element>body</a></code> 要素を同要素が含む場合、
856    省略して[[MAY:構いません]]。
857    
858    #en
859    A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
860      first thing inside the <code><a href=#the-head-element>head</a></code> element is an element.
861    #ja
862    <code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
863    <code><a href=#the-head-element>head</a></code> 要素の内側の最初のものが要素である場合、
864    省略して[[MAY:構いません]]。
865    
866    #en
867    A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-end-tag>end
868      tag</span> may be omitted if the <code><a href=#the-head-element>head</a></code> element is not
869      immediately followed by a <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>.
870    #ja
871    <code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
872    <code><a href=#the-head-element>head</a></code> 要素の直後に<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>がない場合、
873    省略して[[MAY:構いません]]。
874    
875    #en
876    A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
877      first thing inside the <code><a href=#the-body-element>body</a></code> element is not a
878      <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing
879      inside the <code><a href=#the-body-element>body</a></code> element is a <code><a href=#script>script</a></code> or
880      <code><a href=#the-style-element>style</a></code> element. <!-- Note that even if the </head> end
881      tag is present, the parser makes <style> and <script> elements
882      between </head> and <body> end up in the <head> instead of implying
883      the <body> -->
884    #ja
885    <code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
886    <code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
887    <code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが
888    <code><a href=#script>script</a></code> 要素や
889      <code><a href=#the-style-element>style</a></code> 要素の場合を除き、
890    省略して[[MAY:構いません]]。
891    <!-- Note that even if the </head> end
892      tag is present, the parser makes <style> and <script> elements
893      between </head> and <body> end up in the <head> instead of implying
894      the <body> -->
895    
896    #en
897    A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-end-tag>end
898      tag</span> may be omitted if the <code><a href=#the-body-element>body</a></code> element is not
899      immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> and the element is either not
900      empty or its <span title=syntax-start-tag>start tag</span> has not
901      been omitted.
902    #ja
903    <code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
904    <code><a href=#the-body-element>body</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、
905    要素が空ではないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない場合、
906    省略して[[MAY:構いません]]。
907    
908    #en
909    A <code><a href=#the-li-element>li</a></code> element's <span title=syntax-end-tag>end
910      tag</span> may be omitted if the <code><a href=#the-li-element>li</a></code> element is
911      immediately followed by another <code><a href=#the-li-element>li</a></code> element or if there
912      is no more content in the parent element.
913    #ja
914    <code><a href=#the-li-element>li</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
915    <code><a href=#the-li-element>li</a></code> 要素の直後が別の
916    <code><a href=#the-li-element>li</a></code> 要素か、
917    親要素にそれ以上に内容がない場合、
918    省略して[[MAY:構いません]]。
919    
920    #en
921    A <code><a href=#the-dt-element>dt</a></code> element's <span title=syntax-end-tag>end
922      tag</span> may be omitted if the <code><a href=#the-dt-element>dt</a></code> element is
923      immediately followed by another <code><a href=#the-dt-element>dt</a></code> element or a
924      <code><a href=#the-dd-element>dd</a></code> element.
925    #ja
926    <code><a href=#the-dt-element>dt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
927     <code><a href=#the-dt-element>dt</a></code> 要素の直後が別の
928    <code><a href=#the-dt-element>dt</a></code> 要素か
929      <code><a href=#the-dd-element>dd</a></code> 要素の場合、省略して[[MAY:構いません]]。
930    
931    #en
932    A <code><a href=#the-dd-element>dd</a></code> element's <span title=syntax-end-tag>end
933      tag</span> may be omitted if the <code><a href=#the-dd-element>dd</a></code> element is
934      immediately followed by another <code><a href=#the-dd-element>dd</a></code> element or a
935      <code><a href=#the-dt-element>dt</a></code> element, or if there is no more content in the
936      parent element.
937    #ja
938    <code><a href=#the-dd-element>dd</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
939    <code><a href=#the-dd-element>dd</a></code> 要素の直後が別の
940    <code><a href=#the-dd-element>dd</a></code> 要素か
941      <code><a href=#the-dt-element>dt</a></code> 要素の場合や、
942    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
943    
944    #en
945    A <code><a href=#the-p-element>p</a></code> element's <span title=syntax-end-tag>end
946      tag</span> may be omitted if the <code><a href=#the-p-element>p</a></code> element is
947      immediately followed by an <code><a href=#the-address-element>address</a></code>,
948      <code><a href=#the-article-element>article</a></code>, <code><a href=#the-aside-element>aside</a></code>, <code><a href=#the-blockquote-element>blockquote</a></code>,
949      <code><a href=#datagrid>datagrid</a></code>, <code><a href=#the-dialog-element>dialog</a></code>, <code>dir</code>,
950      <code><a href=#the-div-element>div</a></code>, <code><a href=#the-dl-element>dl</a></code>, <code><a href=#the-fieldset-element>fieldset</a></code>,
951      <code><a href=#the-footer-element>footer</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h1</a></code>,
952      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h2</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h3</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h4</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h5</a></code>,
953      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h6</a></code>, <code><a href=#the-header-element>header</a></code>, <code><a href=#the-hr-element>hr</a></code>,
954      <code><a href=#menus>menu</a></code>, <code><a href=#the-nav-element>nav</a></code>, <code><a href=#the-ol-element>ol</a></code>,
955      <code><a href=#the-p-element>p</a></code>, <code><a href=#the-pre-element>pre</a></code>, <code><a href=#the-section-element>section</a></code>,
956      <code><a href=#the-table-element>table</a></code>, or <code><a href=#the-ul-element>ul</a></code>, element, or if there is no
957      more content in the parent element and the parent element is not an
958      <code><a href=#the-a-element>a</a></code> element.
959    #ja
960    <code><a href=#the-p-element>p</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
961    <code><a href=#the-p-element>p</a></code> 要素の直後が
962    <code><a href=#the-address-element>address</a></code>、
963      <code><a href=#the-article-element>article</a></code>、<code><a href=#the-aside-element>aside</a></code>、<code><a href=#the-blockquote-element>blockquote</a></code>、
964      <code><a href=#datagrid>datagrid</a></code>、<code><a href=#the-dialog-element>dialog</a></code>、<code>dir</code>、
965      <code><a href=#the-div-element>div</a></code>、<code><a href=#the-dl-element>dl</a></code>、<code><a href=#the-fieldset-element>fieldset</a></code>、
966      <code><a href=#the-footer-element>footer</a></code>、<code><a href=#the-form-element>form</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h1</a></code>、
967      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h2</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h3</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h4</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h5</a></code>、
968      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h6</a></code>、<code><a href=#the-header-element>header</a></code>、<code><a href=#the-hr-element>hr</a></code>、
969      <code><a href=#menus>menu</a></code>、<code><a href=#the-nav-element>nav</a></code>、<code><a href=#the-ol-element>ol</a></code>、
970      <code><a href=#the-p-element>p</a></code>、<code><a href=#the-pre-element>pre</a></code>、<code><a href=#the-section-element>section</a></code>、
971      <code><a href=#the-table-element>table</a></code>、 <code><a href=#the-ul-element>ul</a></code> のいずれかの要素の場合や親要素にそれ以上に内容がなく、親要素が
972      <code><a href=#the-a-element>a</a></code> 要素ではない場合、
973    省略して[[MAY:構いません]]。
974    
975    #en
976    An <code><a href=#the-rt-element>rt</a></code> element's <span title=syntax-end-tag>end
977      tag</span> may be omitted if the <code><a href=#the-rt-element>rt</a></code> element is
978      immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code>
979      element, or if there is no more content in the parent element.
980    #ja
981    <code><a href=#the-rt-element>rt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
982    <code><a href=#the-rt-element>rt</a></code> 要素の直後が
983    <code><a href=#the-rt-element>rt</a></code> 要素や
984    <code><a href=#the-rp-element>rp</a></code> 要素でない場合や、
985    親要素にそれ以上内容がない場合、
986    省略して[[MAY:構いません]]。
987    
988    #en
989    An <code><a href=#the-rp-element>rp</a></code> element's <span title=syntax-end-tag>end
990      tag</span> may be omitted if the <code><a href=#the-rp-element>rp</a></code> element is
991      immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code>
992      element, or if there is no more content in the parent element.
993    #ja
994    <code><a href=#the-rp-element>rp</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
995    <code><a href=#the-rp-element>rp</a></code> 要素の直後が
996    <code><a href=#the-rt-element>rt</a></code> 要素や
997    <code><a href=#the-rp-element>rp</a></code> 要素の場合や、
998    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
999    
1000    #en
1001    An <code><a href=#the-optgroup-element>optgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the
1002      <code><a href=#the-optgroup-element>optgroup</a></code> element <!--has an ancestor
1003      <code>select</code> element and--> is immediately followed by
1004      another <code><a href=#the-optgroup-element>optgroup</a></code> element, or if <!--all of the elements
1005      that are ancestors of the <code>optgroup</code> element, up to and
1006      including the first ancestor element that is not an
1007      <code>optgroup</code> element, have no more content--> there is no
1008      more content in the parent element.
1009    #ja
1010    <code><a href=#the-optgroup-element>optgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1011      <code><a href=#the-optgroup-element>optgroup</a></code> 要素<!--has an ancestor
1012      <code>select</code> element and-->の直後が
1013    別の <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、
1014    <!--all of the elements
1015      that are ancestors of the <code>optgroup</code> element, up to and
1016      including the first ancestor element that is not an
1017      <code>optgroup</code> element, have no more content-->親要素にそれ以上内容がない場合、
1018    省略して[[MAY:構いません]]。
1019    
1020    #en
1021    An <code><a href=#the-option-element>option</a></code> element's <span title=syntax-end-tag>end
1022      tag</span> may be omitted if the <code><a href=#the-option-element>option</a></code> element is
1023      immediately followed by another <code><a href=#the-option-element>option</a></code> element, or if
1024      it is immediately followed by an <code><a href=#the-optgroup-element>optgroup</a></code> element, or
1025      if there is no more content in the parent element.
1026    #ja
1027    <code><a href=#the-option-element>option</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1028    <code><a href=#the-option-element>option</a></code> 要素の直後が別の
1029    <code><a href=#the-option-element>option</a></code> 要素の場合や、
1030    直後が <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、
1031    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1032    
1033    #en
1034    A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
1035      first thing inside the <code><a href=#the-colgroup-element>colgroup</a></code> element is a
1036      <code><a href=#the-col-element>col</a></code> element, and if the element is not immediately
1037      preceded by another <code><a href=#the-colgroup-element>colgroup</a></code> element whose <span title=syntax-end-tag>end tag</span> has been omitted.
1038    #ja
1039    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
1040    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の内側の最初のものが
1041      <code><a href=#the-col-element>col</a></code> 要素の場合で、
1042    直前が<span title=syntax-end-tag>終了タグ</span>の省略された別の
1043    <code><a href=#the-colgroup-element>colgroup</a></code> 要素でない場合、
1044    省略して[[MAY:構いません]]。
1045    
1046    #en
1047    A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the
1048      <code><a href=#the-colgroup-element>colgroup</a></code> element is not immediately followed by a
1049      <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>.
1050    #ja
1051    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1052      <code><a href=#the-colgroup-element>colgroup</a></code> 要素の直後が<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
1053    省略して[[MAY:構いません]]。
1054    
1055    #en
1056    A <code><a href=#the-thead-element>thead</a></code> element's <span title=syntax-end-tag>end
1057      tag</span> may be omitted if the <code><a href=#the-thead-element>thead</a></code> element is
1058      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code>
1059      element.
1060    #ja
1061    <code><a href=#the-thead-element>thead</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1062    <code><a href=#the-thead-element>thead</a></code> 要素の直後が
1063    <code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code>
1064    要素の場合、省略して[[MAY:構いません]]。
1065    
1066    #en
1067    A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
1068      first thing inside the <code><a href=#the-tbody-element>tbody</a></code> element is a
1069      <code><a href=#the-tr-element>tr</a></code> element, and if the element is not immediately
1070      preceded by a <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-thead-element>thead</a></code>, or
1071      <code><a href=#the-tfoot-element>tfoot</a></code> element whose <span title=syntax-end-tag>end
1072      tag</span> has been omitted.
1073    #ja
1074    <code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
1075    <code><a href=#the-tbody-element>tbody</a></code> 要素の内側の最初のものが
1076      <code><a href=#the-tr-element>tr</a></code> 要素の場合で、
1077    要素の直前が<span title=syntax-end-tag>終了タグ</span>の省略された
1078    <code><a href=#the-tbody-element>tbody</a></code> 要素、<code><a href=#the-thead-element>thead</a></code> 要素、
1079      <code><a href=#the-tfoot-element>tfoot</a></code> 要素でない場合、
1080    省略して[[MAY:構いません]]。
1081    
1082    #en
1083    A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-end-tag>end
1084      tag</span> may be omitted if the <code><a href=#the-tbody-element>tbody</a></code> element is
1085      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code>
1086      element, or if there is no more content in the parent element.
1087    #ja
1088    <code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1089    <code><a href=#the-tbody-element>tbody</a></code> 要素の直後が
1090    <code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code>
1091    要素の場合や、親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1092    
1093    
1094    #en
1095    A <code><a href=#the-tfoot-element>tfoot</a></code> element's <span title=syntax-end-tag>end
1096      tag</span> may be omitted if the <code><a href=#the-tfoot-element>tfoot</a></code> element is
1097      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> element, or if there is
1098      no more content in the parent element.
1099    #ja
1100    <code><a href=#the-tfoot-element>tfoot</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1101    <code><a href=#the-tfoot-element>tfoot</a></code> 要素の直後が
1102    <code><a href=#the-tbody-element>tbody</a></code> 要素の場合や、
1103    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1104    
1105    #en
1106    A <code><a href=#the-tr-element>tr</a></code> element's <span title=syntax-end-tag>end
1107      tag</span> may be omitted if the <code><a href=#the-tr-element>tr</a></code> element is
1108      immediately followed by another <code><a href=#the-tr-element>tr</a></code> element, or if there
1109      is no more content in the parent element.
1110    #ja
1111    <code><a href=#the-tr-element>tr</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1112    <code><a href=#the-tr-element>tr</a></code> 要素の直後が別の
1113    <code><a href=#the-tr-element>tr</a></code> 要素の場合や、
1114    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1115    
1116    #en
1117    A <code><a href=#the-td-element>td</a></code> element's <span title=syntax-end-tag>end
1118      tag</span> may be omitted if the <code><a href=#the-td-element>td</a></code> element is
1119      immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code>
1120      element, or if there is no more content in the parent element.
1121    #ja
1122    <code><a href=#the-td-element>td</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1123    <code><a href=#the-td-element>td</a></code> 要素の直後が
1124    <code><a href=#the-td-element>td</a></code> 要素や
1125    <code><a href=#the-th-element>th</a></code> 要素の場合や、
1126    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1127    
1128    
1129    #en
1130    A <code><a href=#the-th-element>th</a></code> element's <span title=syntax-end-tag>end
1131      tag</span> may be omitted if the <code><a href=#the-th-element>th</a></code> element is
1132      immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code>
1133      element, or if there is no more content in the parent element.
1134    #ja
1135    <code><a href=#the-th-element>th</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、<code><a href=#the-th-element>th</a></code> 要素の直後が
1136    <code><a href=#the-td-element>td</a></code> 要素や
1137    <code><a href=#the-th-element>th</a></code> 要素の場合や、
1138    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1139    
1140    
1141    #en
1142    <strong>However</strong>, a <span title=syntax-start-tag>start
1143      tag</span> must never be omitted if it has any attributes.
1144    #ja
1145    <strong>しかし</strong>、<span title=syntax-start-tag>開始タグ</span>が属性を持つ場合、
1146    開始タグを省略しては[[MUST:なりません]]。
1147    
1148    #pattern
1149    <span class=secno>* </span>Restrictions on content models
1150    #ja
1151    <span class=secno>$1 </span>内容モデルの制限
1152    
1153    #en
1154    For historical reasons, certain elements have extra restrictions
1155      beyond even the restrictions given by their content model.
1156    #ja
1157    歴史的理由により、内容モデルによる制限以上の追加の制限を持つ要素がいくつかあります。
1158    
1159    #en
1160    An <code><a href=#the-optgroup-element>optgroup</a></code> element <!--that is a descendant of a
1161      <code>select</code> element--> must not contain
1162      <code><a href=#the-optgroup-element>optgroup</a></code> elements, even though these elements are
1163      technically allowed to be nested according to the content models
1164      described in this specification. (If an <code><a href=#the-optgroup-element>optgroup</a></code>
1165      element is put inside another <!--<code>optgroup</code> element
1166      inside a <code>select</code> element--> in the markup, it will in
1167      fact imply an <code><a href=#the-optgroup-element>optgroup</a></code> end tag before it.)
1168    #ja
1169    <code><a href=#the-optgroup-element>optgroup</a></code> 要素は<!--that is a descendant of a
1170      <code>select</code> element-->、
1171    この仕様書で述べた内容モデルに従えば技術的には入れ子にできますが、
1172      <code><a href=#the-optgroup-element>optgroup</a></code>
1173    要素を含んでは[[MUST NOT:なりません]]。
1174    (<code><a href=#the-optgroup-element>optgroup</a></code>
1175    要素をマーク付け中で別の<!--<code>optgroup</code> element
1176      inside a <code>select</code> element-->
1177    <code><a href=#the-optgroup-element>optgroup</a></code> 要素中に配置しても、
1178    実際にはその前に <code><a href=#the-optgroup-element>optgroup</a></code>
1179    終了タグが暗示的に存在するものとみなされます。)
1180    
1181    #en
1182    A <code><a href=#the-table-element>table</a></code> element must not contain <code><a href=#the-tr-element>tr</a></code>
1183      elements, even though these elements are technically allowed inside
1184      <code><a href=#the-table-element>table</a></code> elements according to the content models
1185      described in this specification. (If a <code><a href=#the-tr-element>tr</a></code> element is
1186      put inside a <code><a href=#the-table-element>table</a></code> in the markup, it will in fact imply
1187      a <code><a href=#the-tbody-element>tbody</a></code> start tag before it.)
1188    #ja
1189    <code><a href=#the-table-element>table</a></code>
1190    要素はこの仕様書で述べた内容モデルに従えば技術的には内側で
1191    <code><a href=#the-tr-element>tr</a></code> 要素が認められていますが、
1192    <code><a href=#the-table-element>table</a></code>
1193    要素は <code><a href=#the-tr-element>tr</a></code> 要素を含んでは[[MUST NOT:なりません]]。
1194    (<code><a href=#the-tr-element>tr</a></code> 要素がマーク付け中で
1195    <code><a href=#the-table-element>table</a></code> 要素の内側に置かれた場合、
1196    実際には前に <code><a href=#the-tbody-element>tbody</a></code> 開始タグが暗示的に存在するものとみなされます。)
1197    
1198    #en
1199    A single U+000A LINE FEED (LF) character may be placed
1200      immediately after the <span title=syntax-start-tag>start
1201      tag</span> of <code><a href=#the-pre-element>pre</a></code> and <code><a href=#the-textarea-element>textarea</a></code>
1202      elements. This does not affect the processing of the element. The
1203      otherwise optional U+000A LINE FEED (LF) character <em>must</em> be
1204      included if the element's contents start with that character
1205      (because otherwise the leading newline in the contents would be
1206      treated like the optional newline, and ignored).
1207    #ja
1208    <code><a href=#the-pre-element>pre</a></code> 要素と
1209    <code><a href=#the-textarea-element>textarea</a></code>
1210    要素の<span title=syntax-start-tag>開始タグ</span>の直後に1文字の
1211     U+000A LINE FEED (LF) 文字を置いても[[MAY:構いません]]。
1212    この文字は要素の処理に影響しません。
1213    通常は任意選択のこの U+000A LINE FEED (LF) 文字は、
1214    要素の内容がこの文字から始まる場合には、含めなければ<em>[[MUST:なりません]]</em>
1215    (そうしなければ、内容の最初の改行は任意選択の改行として扱われ、無視されるからです)。
1216    
1217    
1218    #en
1219    The following two <code><a href=#the-pre-element>pre</a></code> blocks are equivalent:
1220    #ja
1221    次の2つの <code><a href=#the-pre-element>pre</a></code>
1222    ブロックは等価です。
1223    
1224    #en
1225    &lt;pre&gt;Hello&lt;/pre&gt;
1226    #ja
1227    &lt;pre&gt;こんにちは&lt;/pre&gt;
1228    
1229    #en
1230    &lt;pre&gt;<br>Hello&lt;/pre&gt;
1231    #ja
1232    &lt;pre&gt;<br>こんにちは&lt;/pre&gt;
1233    
1234    #en
1235    <span class=secno>* </span>Restrictions on the contents of CDATA and RCDATA elements
1236    #ja
1237    <span class=secno>$1 </span>CDATA 要素や RCDATA 要素の内容の制限
1238    
1239    #en
1240    The text in CDATA and RCDATA elements must not contain any
1241      occurrences of the string "<code title="">&lt;/</code>" (U+003C
1242      LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that
1243      case-insensitively match the tag name of the element followed by one
1244      of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM
1245      FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (&gt;), or U+002F
1246      SOLIDUS (/), unless that string is part of an <a href=#syntax-escape title=syntax-escape>escaping text span</a>.
1247    #ja
1248    CDATA 要素や RCDATA 要素のテキストは文字列「<code title="">&lt;/</code>」 (U+003C
1249      LESS-THAN SIGN、U+002F SOLIDUS) の後に要素のタグ名と大文字・小文字を区別しない場合に一致する文字が続き、
1250    その後に U+0009 CHARACTER TABULATION、U+000A LINE FEED (LF)、U+000C FORM
1251      FEED (FF)、U+0020 SPACE、U+003E GREATER-THAN SIGN (&gt;)、U+002F
1252      SOLIDUS (/)
1253    のいずれかが続くような列を、その文字列が<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の一部である場合を除き、
1254    含んでは[[MUST NOT:なりません]]。
1255    
1256    #en
1257    An <dfn id=syntax-escape title=syntax-escape>escaping text span</dfn> is a span
1258      of <a href=#syntax-text title=syntax-text>text</a> that starts with an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is
1259      not itself in an <a href=#syntax-escape title=syntax-escape>escaping text
1260      span</a>, and ends at the next <a href=#syntax-escape-end title=syntax-escape-end>escaping text span end</a>. There
1261      cannot be any <a href=#syntax-charref title=syntax-charref>character
1262      references</a> inside an <a href=#syntax-escape title=syntax-escape>escaping
1263      text span</a>.
1264    #ja
1265    <dfn id=syntax-escape title=syntax-escape>逃避テキスト径間</dfn>は、
1266    <a href=#syntax-text title=syntax-text>テキスト</a>の径間であって、
1267    それ自体は<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>中にない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>によって始まり、
1268    次の<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間</a>によって終わるものです。
1269    <a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の内側には<a href=#syntax-charref title=syntax-charref>文字参照</a>を入れることができません。
1270    
1271    #en
1272    An <dfn id=syntax-escape-start title=syntax-escape-start>escaping text span
1273      start</dfn> is a part of <a href=#syntax-text title=syntax-text>text</a> that
1274      consists of the four character sequence "<code title="">&lt;!--</code>" (U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1275      MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS).
1276    #ja
1277    <dfn id=syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</dfn>は、
1278    <a href=#syntax-text title=syntax-text>テキスト</a>の一部で、
1279    4文字の列「<code title="">&lt;!--</code>」(U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1280      MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS) です。
1281    
1282    #en
1283    An <a href=#syntax-escape-start title=syntax-escape-start>escaping text span
1284      start</a> may share its U+002D HYPHEN-MINUS characters with its
1285      corresponding <a href=#syntax-escape-end title=syntax-escape-end>escaping text span
1286      end</a>.
1287    #ja
1288    <a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>は、
1289    その U+002D HYPHEN-MINUS 文字を対応する<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>と共有して[[MAY:構いません]]。
1290    
1291    #en
1292    The text in CDATA and RCDATA elements must not have an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is
1293      not followed by an <a href=#syntax-escape-end title=syntax-escape-end>escaping text
1294      span end</a>.
1295    #ja
1296    CDATA 要素と RCDATA 要素のテキストは<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>が後に続かない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>を含んでは[[MUST NOT:なりません]]。
1297    
1298    #pattern
1299    <span class=secno>* </span>Text
1300    #ja
1301    <span class=secno>$1 </span>テキスト
1302    
1303    #en
1304    <dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements,
1305      attributes, and comments. Text must consist of Unicode characters.
1306      Text must not contain U+0000 characters. Text must not contain
1307      permanently undefined Unicode characters. Text must not contain
1308      control characters other than <a href=#space-character title="space character">space
1309      characters</a>. Extra constraints are placed on what is and what
1310      is not allowed in text based on where the text is to be put, as
1311      described in the other sections.
1312    #ja
1313    <dfn id=syntax-text title=syntax-text>テキスト</dfn>は要素、
1314    属性、注釈の内側で認められています。
1315    テキストは Unicode 文字で構成されなければ[[MUST:なりません]]。
1316    テキストは U+0000 文字を含んでは[[MUST NOT:なりません]]。
1317    テキストは恒久的に未定義の Unicode 文字を含んでは[[MUST NOT:なりません]]。
1318    テキストは<a href=#space-character title="space character">間隔文字</a>以外の制御文字を含んでは[[MUST NOT:なりません]]。
1319    他の節で述べた通り、テキストが配置される場所によって、テキスト中で何が認められ、
1320    何が認められないかの追加の制約があります。
1321    
1322    
1323    #pattern
1324    <span class=secno>* </span>Newlines
1325    #ja
1326    <span class=secno>$1 </span>改行
1327    
1328    #en
1329    <dfn id=syntax-newlines title=syntax-newlines>Newlines</dfn> in HTML may be
1330      represented either as U+000D CARRIAGE RETURN (CR) characters, U+000A
1331      LINE FEED (LF) characters, or pairs of U+000D CARRIAGE RETURN (CR),
1332      U+000A LINE FEED (LF) characters in that order.
1333    #ja
1334    HTML の<dfn id=syntax-newlines title=syntax-newlines>改行</dfn>は
1335    U+000D CARRIAGE RETURN (CR) 文字か、U+000A
1336      LINE FEED (LF) 文字か、U+000D CARRIAGE RETURN (CR) 文字と
1337    U+000A LINE FEED (LF) 文字の組をこの順序で用いるかのいずれかによって表現して[[MAY:構いません]]。
1338    
1339    
1340    #pattern
1341    <span class=secno>* </span>Character references
1342    #ja
1343    <span class=secno>$1 </span>文字参照
1344    
1345    #en
1346    In certain cases described in other sections, <a href=#syntax-text title=syntax-text>text</a> may be mixed with <dfn id=syntax-charref title=syntax-charref>character references</dfn>. These can be used
1347      to escape characters that couldn't otherwise legally be included in
1348      <a href=#syntax-text title=syntax-text>text</a>.
1349    #ja
1350    他の節で述べたいくつかの場合において、<a href=#syntax-text title=syntax-text>テキスト</a>には
1351    <dfn id=syntax-charref title=syntax-charref>文字参照</dfn>を混在させて[[MAY:構いません]]。
1352    文字参照は、通常合法的に<a href=#syntax-text title=syntax-text>テキスト</a>に含めることができない文字を逃避するために使うことができます。
1353    
1354    #en
1355    Character references must start with a U+0026 AMPERSAND
1356      (<code>&amp;</code>). Following this, there are three possible kinds
1357      of character references:
1358    #ja
1359    文字参照は、U+0026 AMPERSAND
1360      (<code>&amp;</code>) により始まらなければ[[MUST:なりません]]。
1361    この文字に続けて、3種類の文字参照があります。
1362    
1363    #en
1364    Named character references
1365    #ja
1366    名前付き文字参照
1367    
1368    #en
1369    The ampersand must be followed by one of the names given in the
1370       <a href=#named-character-references>named character references</a> section, using the same
1371       case. The name must be one that is terminated by a U+003B SEMICOLON
1372       (<code title="">;</code>) character.
1373    #ja
1374    アンド記号の後には、
1375    <a href=#named-character-references>名前付き文字参照</a>の節にある名前のいずれかを、
1376    同じ大文字・小文字の組み合わせによって続けなければ[[MUST:なりません]]。
1377    名前は U+003B SEMICOLON
1378       (<code title="">;</code>) 文字で終わるものでなければ[[MUST:なりません]]。
1379    
1380    #en
1381    Decimal numeric character reference
1382    #ja
1383    十進数値文字参照
1384    
1385    #en
1386    The ampersand must be followed by a U+0023 NUMBER SIGN
1387       (<code>#</code>) character, followed by one or more digits in the
1388       range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, representing a
1389       base-ten integer that itself is a Unicode code point that is
1390       not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range
1391       0xD800 .. 0xDFFF (surrogates). The digits must then be followed by
1392       a U+003B SEMICOLON character (<code title="">;</code>).
1393    #ja
1394    アンド記号の後には、 U+0023 NUMBER SIGN
1395       (<code>#</code>) 文字が続き、 Unicode 符号位置であって
1396    U+0000、U+000D、範囲 U+0080 ~ U+009F、範囲 0xD800~0xDFFF (代理)
1397    でない十進整数を表す1文字以上の範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE
1398    の数字が続かなければ[[MUST:なりません]]。
1399    数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>)
1400    が続かなければ[[MUST:なりません]]。
1401    
1402    #en
1403    Hexadecimal numeric character reference
1404    #ja
1405    十六進数値文字参照
1406    
1407    #en
1408    The ampersand must be followed by a U+0023 NUMBER SIGN
1409       (<code>#</code>) character, which must be followed by either a
1410       U+0078 LATIN SMALL LETTER X or a U+0058 LATIN CAPITAL LETTER X
1411       character, which must then be followed by one or more digits in the
1412       range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, U+0061 LATIN SMALL
1413       LETTER A .. U+0066 LATIN SMALL LETTER F, and U+0041 LATIN CAPITAL
1414       LETTER A .. U+0046 LATIN CAPITAL LETTER F, representing a
1415       base-sixteen integer that itself is a Unicode code point that is
1416       not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range
1417       0xD800 .. 0xDFFF (surrogates). The digits must then be followed by
1418       a U+003B SEMICOLON character (<code title="">;</code>).
1419    #ja
1420    アンド記号の後には、 U+0023 NUMBER SIGN
1421       (<code>#</code>) 文字が続き、その後に U+0078 LATIN SMALL LETTER X 文字か
1422    U+0058 LATIN CAPITAL LETTER X 文字が続き、その後に
1423    Unicode 符号位置であって
1424    U+0000、U+000D、範囲 U+0080 ~ U+009F、
1425    範囲 0xD800 .. 0xDFFF (代理)
1426    でない十六進整数を表す1文字以上の範囲
1427    U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、U+0061 LATIN SMALL
1428       LETTER A ~ U+0066 LATIN SMALL LETTER F、 U+0041 LATIN CAPITAL
1429       LETTER A ~ U+0046 LATIN CAPITAL LETTER F
1430    の数字が続かなければ[[MUST:なりません]]。
1431    数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>)
1432    が続かなければ[[MUST:なりません]]。
1433    
1434    #en
1435    An <dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
1436      ampersand</dfn> is a U+0026 AMPERSAND (<code>&amp;</code>) character
1437      that is followed by some <a href=#syntax-text title=syntax-text>text</a> other
1438      than a <a href=#space-character>space character</a>, a U+003C LESS-THAN SIGN
1439      character ('&lt;'), or another U+0026 AMPERSAND (<code>&amp;</code>)
1440      character.
1441    #ja
1442    <dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</dfn>は、
1443    <a href=#space-character>間隔文字</a>、U+003C LESS-THAN SIGN
1444      文字 ('&lt;')、別の U+0026 AMPERSAND (<code>&amp;</code>) 文字以外の
1445    <a href=#syntax-text title=syntax-text>テキスト</a>が続く
1446    U+0026 AMPERSAND (<code>&amp;</code>) 文字です。
1447    
1448    
1449    #pattern
1450    <span class=secno>* </span>CDATA sections
1451    #ja
1452    <span class=secno>$1 </span>CDATA 区間
1453    
1454    #en
1455    <dfn id=syntax-cdata title=syntax-cdata>CDATA sections</dfn> must start with
1456      the character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1457      MARK, U+005B LEFT SQUARE BRACKET, U+0043 LATIN CAPITAL LETTER C,
1458      U+0044 LATIN CAPITAL LETTER D, U+0041 LATIN CAPITAL LETTER A, U+0054
1459      LATIN CAPITAL LETTER T, U+0041 LATIN CAPITAL LETTER A, U+005B LEFT
1460      SQUARE BRACKET (<code title="">&lt;![CDATA[</code>). Following this
1461      sequence, the CDATA section may have <a href=#syntax-text title=syntax-text>text</a>, with the additional restriction
1462      that the text must not contain the three character sequence U+005D
1463      RIGHT SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E
1464      GREATER-THAN SIGN (<code title="">]]&gt;</code>). Finally, the CDATA
1465      section must be ended by the three character sequence U+005D RIGHT
1466      SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN
1467      SIGN (<code title="">]]&gt;</code>).
1468    #ja
1469    <dfn id=syntax-cdata title=syntax-cdata>CDATA 区間</dfn>は、
1470    文字列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1471      MARK、U+005B LEFT SQUARE BRACKET、U+0043 LATIN CAPITAL LETTER C、
1472      U+0044 LATIN CAPITAL LETTER D、U+0041 LATIN CAPITAL LETTER A、U+0054
1473      LATIN CAPITAL LETTER T、U+0041 LATIN CAPITAL LETTER A、U+005B LEFT
1474      SQUARE BRACKET (<code title="">&lt;![CDATA[</code>) で始まらなければ[[MUST:なりません]]。
1475    CDATA 区間は、この文字列に続けて、
1476    <a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。
1477    ただし、追加の制限として、このテキストは3文字の列 U+005D
1478      RIGHT SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E
1479      GREATER-THAN SIGN (<code title="">]]&gt;</code>) を含んでは[[MUST NOT:なりません]]。
1480    最後に、CDATA 区間は、3文字の列 U+005D RIGHT
1481      SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E GREATER-THAN
1482      SIGN (<code title="">]]&gt;</code>) で終わらなければ[[MUST:なりません]]。
1483    
1484    #pattern
1485    <span class=secno>* </span>Comments
1486    #ja
1487    <span class=secno>$1 </span>注釈
1488    
1489    #en
1490    <dfn id=syntax-comments title=syntax-comments>Comments</dfn> must start with the
1491      four character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1492      MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code title="">&lt;!--</code>). Following this sequence, the comment may
1493      have <a href=#syntax-text title=syntax-text>text</a>, with the additional
1494      restriction that the text must not start with a single U+003E
1495      GREATER-THAN SIGN ('&gt;') character, nor start with a U+002D
1496      HYPHEN-MINUS (<code title="">-</code>) character followed by a
1497      U+003E GREATER-THAN SIGN ('&gt;') character, nor contain two
1498      consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
1499      characters, nor end with a U+002D HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must be ended by
1500      the three character sequence U+002D HYPHEN-MINUS, U+002D
1501      HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--&gt;</code>).
1502    #ja
1503    <dfn id=syntax-comments title=syntax-comments>注釈</dfn>は、
1504    4文字の列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1505      MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS (<code title="">&lt;!--</code>)
1506    で始まらなければ[[MUST:なりません]]。
1507    注釈は、この文字列に続けて、
1508    <a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。
1509    ただし、追加の制限として、このテキストは U+003E
1510      GREATER-THAN SIGN ('&gt;') 文字1文字から始まったり、 U+002D
1511      HYPHEN-MINUS (<code title="">-</code>) 文字の後に
1512      U+003E GREATER-THAN SIGN ('&gt;') 文字が続く列から始まったり、
1513    2つの連続する U+002D HYPHEN-MINUS (<code title="">-</code>)
1514      文字を含んだり、 U+002D HYPHEN-MINUS (<code title="">-</code>) 文字で終わったりしては[[MUST NOT:なりません]]。
1515    最後に、注釈は3文字の列 U+002D HYPHEN-MINUS、U+002D
1516      HYPHEN-MINUS、U+003E GREATER-THAN SIGN (<code title="">--&gt;</code>)
1517    で終わらなければ[[MUST:なりません]]。
1518    
1519    #en
1520    This specification defines the parsing rules for HTML documents,
1521      whether they are syntactically correct or not. Certain points in the
1522      parsing algorithm are said to be <dfn id=parse-error title="parse error">parse
1523      errors</dfn>. The error handling for parse errors is well-defined:
1524      user agents must either act as described below when encountering
1525      such problems, or must abort processing at the first error that they
1526      encounter for which they do not wish to apply the rules described
1527      below.
1528    #ja
1529    この仕様書は、 HTML 文書を、それが構文的に正しいか否かによらず、その構文解析を行うための規則を定義します。
1530    この構文解析算法のいくつかの地点は<dfn id=parse-error title="parse error">構文解析誤り</dfn>であるといいます。
1531    構文解析誤りの誤りの取り扱いは明確に定義するところであり、
1532    利用者エージェントは、
1533    そのような問題に遭遇した時に後述の通りに作用するか、
1534    または後述の規則を適用したくないような最初の誤りの時点で処理を停止するかのいずれかでなければ[[MUST NOT:なりません]]。

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.165

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24