|
|
|
| 1 |
#pattern |
#pattern |
| 2 |
<span class=secno>* </span>The HTML syntax |
<span class=secno>* </span>The HTML syntax |
| 3 |
#ja |
#ja |
| 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 |
| 612 |
|
<dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the |
| 613 |
|
following format: |
| 614 |
|
#ja |
| 615 |
|
<dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。 |
| 616 |
|
following format: |
| 617 |
|
|
| 618 |
|
#en |
| 619 |
|
<dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element |
| 620 |
|
are expressed inside the element's start tag. |
| 621 |
|
#ja |
| 622 |
|
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
| 623 |
|
当該要素の開始タグの内側で表現されます。 |
| 624 |
|
|
| 625 |
|
#en |
| 626 |
|
Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of |
| 627 |
|
one or more characters other than the <a href=#space-character title="space |
| 628 |
|
character">space characters</a>, U+0000 NULL, U+0022 QUOTATION |
| 629 |
|
MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN |
| 630 |
|
(>), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters, |
| 631 |
|
the control characters, and any characters that are not defined by |
| 632 |
|
Unicode. In the HTML syntax, attribute names may be written with any |
| 633 |
|
mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII |
| 634 |
|
case-insensitive</a> match for the attribute's name. |
| 635 |
|
#ja |
| 636 |
|
属性は名前と値を持ちます。 |
| 637 |
|
<dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、 |
| 638 |
|
<a href=#space-character title="space |
| 639 |
|
character">間隔文字</a>、U+0000 NULL、U+0022 QUOTATION |
| 640 |
|
MARK (")、U+0027 APOSTROPHE (')、U+003E GREATER-THAN SIGN |
| 641 |
|
(>)、U+002F SOLIDUS (/)、U+003D EQUALS SIGN (=) のいずれかの文字、 |
| 642 |
|
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
| 643 |
|
HTML 構文では、属性名は当該属性の名前に |
| 644 |
|
<a href=#ascii-case-insensitive>ASCII |
| 645 |
|
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
| 646 |
|
|
| 647 |
|
#en |
| 648 |
|
<dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a |
| 649 |
|
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 |
| 650 |
|
additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. |
| 651 |
|
#ja |
| 652 |
|
<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>を含むことができないとの追加の制限があります。 |
| 653 |
|
|
| 654 |
|
#en |
| 655 |
|
Attributes can be specified in four different ways: |
| 656 |
|
#ja |
| 657 |
|
属性は4種類の方法で指定できます。 |
| 658 |
|
|
| 659 |
|
#en |
| 660 |
|
Empty attribute syntax |
| 661 |
|
#ja |
| 662 |
|
空属性構文 |
| 663 |
|
|
| 664 |
|
#en |
| 665 |
|
Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute |
| 666 |
|
name</a>. |
| 667 |
|
#ja |
| 668 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。 |
| 669 |
|
|
| 670 |
|
#en |
| 671 |
|
In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with |
| 672 |
|
the empty attribute syntax: |
| 673 |
|
#ja |
| 674 |
|
次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> |
| 675 |
|
属性が空属性構文により与えられています。 |
| 676 |
|
|
| 677 |
|
#en |
| 678 |
|
If an attribute using the empty attribute syntax is to be |
| 679 |
|
followed by another attribute, then there must be a <a href=#space-character>space |
| 680 |
|
character</a> separating the two. |
| 681 |
|
#ja |
| 682 |
|
空属性構文を用いる属性の後に別の属性が続く場合、 |
| 683 |
|
両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。 |
| 684 |
|
|
| 685 |
|
#en |
| 686 |
|
Unquoted attribute value syntax |
| 687 |
|
#ja |
| 688 |
|
非引用属性値構文 |
| 689 |
|
|
| 690 |
|
#en |
| 691 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 692 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 693 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 694 |
|
character, followed by zero or more <a href=#space-character title="space |
| 695 |
|
character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 696 |
|
addition to the requirements given above for attribute values, |
| 697 |
|
must not contain any literal <a href=#space-character title="space character">space |
| 698 |
|
characters</a>, any U+0022 QUOTATION MARK (<code>"</code>) |
| 699 |
|
characters, U+0027 APOSTROPHE (<code>'</code>) characters, |
| 700 |
|
U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E |
| 701 |
|
GREATER-THAN SIGN (<code>></code>) characters, and must not be |
| 702 |
|
the empty string. |
| 703 |
|
#ja |
| 704 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、 |
| 705 |
|
その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space |
| 706 |
|
character">間隔文字</a>があり、 |
| 707 |
|
その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>があるもので、 |
| 708 |
|
その属性値については前述の属性値に関する要件に加え、 |
| 709 |
|
生の<a href=#space-character title="space character">間隔文字</a>、 |
| 710 |
|
U+0022 QUOTATION MARK (<code>"</code>) 文字、 |
| 711 |
|
U+0027 APOSTROPHE (<code>'</code>) 文字、 |
| 712 |
|
U+003D EQUALS SIGN (<code>=</code>) 文字、 |
| 713 |
|
U+003E |
| 714 |
|
GREATER-THAN SIGN (<code>></code>) 文字を含んでは[[MUST NOT:ならず]]、 |
| 715 |
|
空文字列であっては[[MUST NOT:なりません]]。 |
| 716 |
|
|
| 717 |
|
#en |
| 718 |
|
In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given |
| 719 |
|
with the unquoted attribute value syntax: |
| 720 |
|
#ja |
| 721 |
|
次の例では、 |
| 722 |
|
<code title=attr-input-value><a href=#attr-input-value>value</a></code> |
| 723 |
|
属性が非引用属性値構文により与えられています。 |
| 724 |
|
|
| 725 |
|
|
| 726 |
|
#en |
| 727 |
|
If an attribute using the unquoted attribute syntax is to be |
| 728 |
|
followed by another attribute or by one of the optional U+002F |
| 729 |
|
SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there |
| 730 |
|
must be a <a href=#space-character>space character</a> separating the two. |
| 731 |
|
#ja |
| 732 |
|
非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる |
| 733 |
|
U+002F |
| 734 |
|
SOLIDUS (<code>/</code>) 文字が続く場合、 |
| 735 |
|
両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
| 736 |
|
|
| 737 |
|
#en |
| 738 |
|
Single-quoted attribute value syntax |
| 739 |
|
#ja |
| 740 |
|
単一引用符属性値構文 |
| 741 |
|
|
| 742 |
|
#en |
| 743 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 744 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 745 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 746 |
|
character, followed by zero or more <a href=#space-character title="space |
| 747 |
|
character">space characters</a>, followed by a single U+0027 |
| 748 |
|
APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 749 |
|
addition to the requirements given above for attribute values, |
| 750 |
|
must not contain any literal U+0027 APOSTROPHE (<code>'</code>) |
| 751 |
|
characters, and finally followed by a second single U+0027 |
| 752 |
|
APOSTROPHE (<code>'</code>) character. |
| 753 |
|
#ja |
| 754 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、 |
| 755 |
|
零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 756 |
|
その後1文字の U+003D EQUALS SIGN |
| 757 |
|
文字が続き、零文字以上の<a href=#space-character title="space |
| 758 |
|
character">間隔文字</a>が続き、1文字の U+0027 |
| 759 |
|
APOSTROPHE (<code>'</code>) 文字が続き、<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続き、 |
| 760 |
|
この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>) |
| 761 |
|
文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の |
| 762 |
|
U+0027 |
| 763 |
|
APOSTROPHE (<code>'</code>) 文字が続くもの。 |
| 764 |
|
|
| 765 |
|
#en |
| 766 |
|
In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the |
| 767 |
|
single-quoted attribute value syntax: |
| 768 |
|
#ja |
| 769 |
|
次の例では、 |
| 770 |
|
<code title=attr-input-type><a href=#attr-input-type>type</a></code> |
| 771 |
|
属性が単一引用符属性値構文により与えられます。 |
| 772 |
|
|
| 773 |
|
#en |
| 774 |
|
If an attribute using the single-quoted attribute syntax is to |
| 775 |
|
be followed by another attribute, then there must be a <a href=#space-character>space |
| 776 |
|
character</a> separating the two. |
| 777 |
|
#ja |
| 778 |
|
単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。 |
| 779 |
|
|
| 780 |
|
#en |
| 781 |
|
Double-quoted attribute value syntax |
| 782 |
|
#ja |
| 783 |
|
二重引用符属性値構文 |
| 784 |
|
|
| 785 |
|
#en |
| 786 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 787 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 788 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 789 |
|
character, followed by zero or more <a href=#space-character title="space |
| 790 |
|
character">space characters</a>, followed by a single U+0022 |
| 791 |
|
QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 792 |
|
addition to the requirements given above for attribute values, |
| 793 |
|
must not contain any literal U+0022 QUOTATION MARK |
| 794 |
|
(<code>"</code>) characters, and finally followed by a second |
| 795 |
|
single U+0022 QUOTATION MARK (<code>"</code>) character. |
| 796 |
|
#ja |
| 797 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 798 |
|
その後に1文字の U+003D EQUALS SIGN |
| 799 |
|
文字が続き、その後に零文字以上の<a href=#space-character title="space |
| 800 |
|
character">間隔文字</a>が続き、その後に1文字の U+0022 |
| 801 |
|
QUOTATION MARK (<code>"</code>) 文字が続き、その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続くところ、 |
| 802 |
|
前述の属性値に関する要件に加えて生の U+0022 QUOTATION MARK |
| 803 |
|
(<code>"</code>) 文字を含んでは[[MUST:ならず]]、 |
| 804 |
|
最後に2つ目の1文字の U+0022 QUOTATION MARK (<code>"</code>) 文字が続くもの。 |
| 805 |
|
|
| 806 |
|
#en |
| 807 |
|
In the following example, the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute is given with the |
| 808 |
|
double-quoted attribute value syntax: |
| 809 |
|
#ja |
| 810 |
|
次の例では、 <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> |
| 811 |
|
属性が二重引用符属性値構文で与えられます。 |
| 812 |
|
|
| 813 |
|
#en |
| 814 |
|
If an attribute using the double-quoted attribute syntax is to |
| 815 |
|
be followed by another attribute, then there must be a <a href=#space-character>space |
| 816 |
|
character</a> separating the two. |
| 817 |
|
#ja |
| 818 |
|
二重引用符属性構文を使った属性の後に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
| 819 |
|
|
| 820 |
|
#en |
| 821 |
|
There must never be two or more attributes on the same start tag |
| 822 |
|
whose names are an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for |
| 823 |
|
each other. |
| 824 |
|
#ja |
| 825 |
|
同じ開始タグに名前が <a href=#ascii-case-insensitive>ASCII 大文字・小文字不区別</a>で一致する属性が2つ以上あっては[[MUST:なりません]]。 |
| 826 |
|
|
| 827 |
|
#pattern |
| 828 |
|
<span class=secno>* </span>Optional tags |
| 829 |
|
#ja |
| 830 |
|
<span class=secno>$1 </span>任意選択タグ |
| 831 |
|
|
| 832 |
|
#en |
| 833 |
|
Certain tags can be <dfn id=syntax-tag-omission title=syntax-tag-omission>omitted</dfn>. |
| 834 |
|
#ja |
| 835 |
|
タグの中には<dfn id=syntax-tag-omission title=syntax-tag-omission>省略</dfn>できるものがあります。 |
| 836 |
|
|
| 837 |
|
#en |
| 838 |
|
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 |
| 839 |
|
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>. |
| 840 |
|
#ja |
| 841 |
|
<code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 842 |
|
<code><a href=#the-html-element>html</a></code> 要素の内側の最初のものが<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 843 |
|
省略して[[MAY:構いません]]。 |
| 844 |
|
|
| 845 |
#en |
#en |
| 846 |
<dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the |
An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-end-tag>end |
| 847 |
following format: |
tag</span> may be omitted if the <code><a href=#the-html-element>html</a></code> element is not |
| 848 |
|
immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> |
| 849 |
|
and the element contains a <code><a href=#the-body-element>body</a></code> element that is either |
| 850 |
|
not empty or whose <span title=syntax-start-tag>start tag</span> |
| 851 |
|
has not been omitted. |
| 852 |
#ja |
#ja |
| 853 |
<dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。 |
<code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 854 |
following format: |
<code><a href=#the-html-element>html</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、 |
| 855 |
|
空でないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない |
| 856 |
|
<code><a href=#the-body-element>body</a></code> 要素を同要素が含む場合、 |
| 857 |
|
省略して[[MAY:構いません]]。 |
| 858 |
|
|
| 859 |
#en |
#en |
| 860 |
<dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element |
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 |
| 861 |
are expressed inside the element's start tag. |
first thing inside the <code><a href=#the-head-element>head</a></code> element is an element. |
| 862 |
#ja |
#ja |
|
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
|
|
当該要素の開始タグの内側で表現されます。 |
|
| 863 |
|
<code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 864 |
|
<code><a href=#the-head-element>head</a></code> 要素の内側の最初のものが要素である場合、 |
| 865 |
|
省略して[[MAY:構いません]]。 |
| 866 |
|
|
| 867 |
|
#en |
| 868 |
|
A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-end-tag>end |
| 869 |
|
tag</span> may be omitted if the <code><a href=#the-head-element>head</a></code> element is not |
| 870 |
|
immediately followed by a <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>. |
| 871 |
|
#ja |
| 872 |
|
<code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 873 |
|
<code><a href=#the-head-element>head</a></code> 要素の直後に<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>がない場合、 |
| 874 |
|
省略して[[MAY:構いません]]。 |
| 875 |
|
|
| 876 |
|
#en |
| 877 |
|
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 |
| 878 |
|
first thing inside the <code><a href=#the-body-element>body</a></code> element is not a |
| 879 |
|
<a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing |
| 880 |
|
inside the <code><a href=#the-body-element>body</a></code> element is a <code><a href=#script>script</a></code> or |
| 881 |
|
<code><a href=#the-style-element>style</a></code> element. <!-- Note that even if the </head> end |
| 882 |
|
tag is present, the parser makes <style> and <script> elements |
| 883 |
|
between </head> and <body> end up in the <head> instead of implying |
| 884 |
|
the <body> --> |
| 885 |
|
#ja |
| 886 |
|
<code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 887 |
|
<code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 888 |
|
<code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが |
| 889 |
|
<code><a href=#script>script</a></code> 要素や |
| 890 |
|
<code><a href=#the-style-element>style</a></code> 要素の場合を除き、 |
| 891 |
|
省略して[[MAY:構いません]]。 |
| 892 |
|
<!-- Note that even if the </head> end |
| 893 |
|
tag is present, the parser makes <style> and <script> elements |
| 894 |
|
between </head> and <body> end up in the <head> instead of implying |
| 895 |
|
the <body> --> |
| 896 |
|
|
| 897 |
|
#en |
| 898 |
|
A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-end-tag>end |
| 899 |
|
tag</span> may be omitted if the <code><a href=#the-body-element>body</a></code> element is not |
| 900 |
|
immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> and the element is either not |
| 901 |
|
empty or its <span title=syntax-start-tag>start tag</span> has not |
| 902 |
|
been omitted. |
| 903 |
|
#ja |
| 904 |
|
<code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 905 |
|
<code><a href=#the-body-element>body</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、 |
| 906 |
|
要素が空ではないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない場合、 |
| 907 |
|
省略して[[MAY:構いません]]。 |
| 908 |
|
|
| 909 |
|
#en |
| 910 |
|
A <code><a href=#the-li-element>li</a></code> element's <span title=syntax-end-tag>end |
| 911 |
|
tag</span> may be omitted if the <code><a href=#the-li-element>li</a></code> element is |
| 912 |
|
immediately followed by another <code><a href=#the-li-element>li</a></code> element or if there |
| 913 |
|
is no more content in the parent element. |
| 914 |
|
#ja |
| 915 |
|
<code><a href=#the-li-element>li</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 916 |
|
<code><a href=#the-li-element>li</a></code> 要素の直後が別の |
| 917 |
|
<code><a href=#the-li-element>li</a></code> 要素か、 |
| 918 |
|
親要素にそれ以上に内容がない場合、 |
| 919 |
|
省略して[[MAY:構いません]]。 |
| 920 |
|
|
| 921 |
|
#en |
| 922 |
|
A <code><a href=#the-dt-element>dt</a></code> element's <span title=syntax-end-tag>end |
| 923 |
|
tag</span> may be omitted if the <code><a href=#the-dt-element>dt</a></code> element is |
| 924 |
|
immediately followed by another <code><a href=#the-dt-element>dt</a></code> element or a |
| 925 |
|
<code><a href=#the-dd-element>dd</a></code> element. |
| 926 |
|
#ja |
| 927 |
|
<code><a href=#the-dt-element>dt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 928 |
|
<code><a href=#the-dt-element>dt</a></code> 要素の直後が別の |
| 929 |
|
<code><a href=#the-dt-element>dt</a></code> 要素か |
| 930 |
|
<code><a href=#the-dd-element>dd</a></code> 要素の場合、省略して[[MAY:構いません]]。 |
| 931 |
|
|
| 932 |
|
#en |
| 933 |
|
A <code><a href=#the-dd-element>dd</a></code> element's <span title=syntax-end-tag>end |
| 934 |
|
tag</span> may be omitted if the <code><a href=#the-dd-element>dd</a></code> element is |
| 935 |
|
immediately followed by another <code><a href=#the-dd-element>dd</a></code> element or a |
| 936 |
|
<code><a href=#the-dt-element>dt</a></code> element, or if there is no more content in the |
| 937 |
|
parent element. |
| 938 |
|
#ja |
| 939 |
|
<code><a href=#the-dd-element>dd</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 940 |
|
<code><a href=#the-dd-element>dd</a></code> 要素の直後が別の |
| 941 |
|
<code><a href=#the-dd-element>dd</a></code> 要素か |
| 942 |
|
<code><a href=#the-dt-element>dt</a></code> 要素の場合や、 |
| 943 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 944 |
|
|
| 945 |
|
#en |
| 946 |
|
A <code><a href=#the-p-element>p</a></code> element's <span title=syntax-end-tag>end |
| 947 |
|
tag</span> may be omitted if the <code><a href=#the-p-element>p</a></code> element is |
| 948 |
|
immediately followed by an <code><a href=#the-address-element>address</a></code>, |
| 949 |
|
<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>, |
| 950 |
|
<code><a href=#datagrid>datagrid</a></code>, <code><a href=#the-dialog-element>dialog</a></code>, <code>dir</code>, |
| 951 |
|
<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>, |
| 952 |
|
<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>, |
| 953 |
|
<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>, |
| 954 |
|
<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>, |
| 955 |
|
<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>, |
| 956 |
|
<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>, |
| 957 |
|
<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 |
| 958 |
|
more content in the parent element and the parent element is not an |
| 959 |
|
<code><a href=#the-a-element>a</a></code> element. |
| 960 |
|
#ja |
| 961 |
|
<code><a href=#the-p-element>p</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 962 |
|
<code><a href=#the-p-element>p</a></code> 要素の直後が |
| 963 |
|
<code><a href=#the-address-element>address</a></code>、 |
| 964 |
|
<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>、 |
| 965 |
|
<code><a href=#datagrid>datagrid</a></code>、<code><a href=#the-dialog-element>dialog</a></code>、<code>dir</code>、 |
| 966 |
|
<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>、 |
| 967 |
|
<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>、 |
| 968 |
|
<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>、 |
| 969 |
|
<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>、 |
| 970 |
|
<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>、 |
| 971 |
|
<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>、 |
| 972 |
|
<code><a href=#the-table-element>table</a></code>、 <code><a href=#the-ul-element>ul</a></code> のいずれかの要素の場合や親要素にそれ以上に内容がなく、親要素が |
| 973 |
|
<code><a href=#the-a-element>a</a></code> 要素ではない場合、 |
| 974 |
|
省略して[[MAY:構いません]]。 |
| 975 |
|
|
| 976 |
|
#en |
| 977 |
|
An <code><a href=#the-rt-element>rt</a></code> element's <span title=syntax-end-tag>end |
| 978 |
|
tag</span> may be omitted if the <code><a href=#the-rt-element>rt</a></code> element is |
| 979 |
|
immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code> |
| 980 |
|
element, or if there is no more content in the parent element. |
| 981 |
|
#ja |
| 982 |
|
<code><a href=#the-rt-element>rt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 983 |
|
<code><a href=#the-rt-element>rt</a></code> 要素の直後が |
| 984 |
|
<code><a href=#the-rt-element>rt</a></code> 要素や |
| 985 |
|
<code><a href=#the-rp-element>rp</a></code> 要素でない場合や、 |
| 986 |
|
親要素にそれ以上内容がない場合、 |
| 987 |
|
省略して[[MAY:構いません]]。 |
| 988 |
|
|
| 989 |
|
#en |
| 990 |
|
An <code><a href=#the-rp-element>rp</a></code> element's <span title=syntax-end-tag>end |
| 991 |
|
tag</span> may be omitted if the <code><a href=#the-rp-element>rp</a></code> element is |
| 992 |
|
immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code> |
| 993 |
|
element, or if there is no more content in the parent element. |
| 994 |
|
#ja |
| 995 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 996 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の直後が |
| 997 |
|
<code><a href=#the-rt-element>rt</a></code> 要素や |
| 998 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の場合や、 |
| 999 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1000 |
|
|
| 1001 |
|
#en |
| 1002 |
|
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 |
| 1003 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> element <!--has an ancestor |
| 1004 |
|
<code>select</code> element and--> is immediately followed by |
| 1005 |
|
another <code><a href=#the-optgroup-element>optgroup</a></code> element, or if <!--all of the elements |
| 1006 |
|
that are ancestors of the <code>optgroup</code> element, up to and |
| 1007 |
|
including the first ancestor element that is not an |
| 1008 |
|
<code>optgroup</code> element, have no more content--> there is no |
| 1009 |
|
more content in the parent element. |
| 1010 |
|
#ja |
| 1011 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1012 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素<!--has an ancestor |
| 1013 |
|
<code>select</code> element and-->の直後が |
| 1014 |
|
別の <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、 |
| 1015 |
|
<!--all of the elements |
| 1016 |
|
that are ancestors of the <code>optgroup</code> element, up to and |
| 1017 |
|
including the first ancestor element that is not an |
| 1018 |
|
<code>optgroup</code> element, have no more content-->親要素にそれ以上内容がない場合、 |
| 1019 |
|
省略して[[MAY:構いません]]。 |
| 1020 |
|
|
| 1021 |
|
#en |
| 1022 |
|
An <code><a href=#the-option-element>option</a></code> element's <span title=syntax-end-tag>end |
| 1023 |
|
tag</span> may be omitted if the <code><a href=#the-option-element>option</a></code> element is |
| 1024 |
|
immediately followed by another <code><a href=#the-option-element>option</a></code> element, or if |
| 1025 |
|
it is immediately followed by an <code><a href=#the-optgroup-element>optgroup</a></code> element, or |
| 1026 |
|
if there is no more content in the parent element. |
| 1027 |
|
#ja |
| 1028 |
|
<code><a href=#the-option-element>option</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1029 |
|
<code><a href=#the-option-element>option</a></code> 要素の直後が別の |
| 1030 |
|
<code><a href=#the-option-element>option</a></code> 要素の場合や、 |
| 1031 |
|
直後が <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、 |
| 1032 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1033 |
|
|
| 1034 |
|
#en |
| 1035 |
|
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 |
| 1036 |
|
first thing inside the <code><a href=#the-colgroup-element>colgroup</a></code> element is a |
| 1037 |
|
<code><a href=#the-col-element>col</a></code> element, and if the element is not immediately |
| 1038 |
|
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. |
| 1039 |
|
#ja |
| 1040 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 1041 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の内側の最初のものが |
| 1042 |
|
<code><a href=#the-col-element>col</a></code> 要素の場合で、 |
| 1043 |
|
直前が<span title=syntax-end-tag>終了タグ</span>の省略された別の |
| 1044 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素でない場合、 |
| 1045 |
|
省略して[[MAY:構いません]]。 |
| 1046 |
|
|
| 1047 |
|
#en |
| 1048 |
|
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 |
| 1049 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> element is not immediately followed by a |
| 1050 |
|
<a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>. |
| 1051 |
|
#ja |
| 1052 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1053 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の直後が<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 1054 |
|
省略して[[MAY:構いません]]。 |
| 1055 |
|
|
| 1056 |
|
#en |
| 1057 |
|
A <code><a href=#the-thead-element>thead</a></code> element's <span title=syntax-end-tag>end |
| 1058 |
|
tag</span> may be omitted if the <code><a href=#the-thead-element>thead</a></code> element is |
| 1059 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1060 |
|
element. |
| 1061 |
|
#ja |
| 1062 |
|
<code><a href=#the-thead-element>thead</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1063 |
|
<code><a href=#the-thead-element>thead</a></code> 要素の直後が |
| 1064 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1065 |
|
要素の場合、省略して[[MAY:構いません]]。 |
| 1066 |
|
|
| 1067 |
|
#en |
| 1068 |
|
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 |
| 1069 |
|
first thing inside the <code><a href=#the-tbody-element>tbody</a></code> element is a |
| 1070 |
|
<code><a href=#the-tr-element>tr</a></code> element, and if the element is not immediately |
| 1071 |
|
preceded by a <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-thead-element>thead</a></code>, or |
| 1072 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> element whose <span title=syntax-end-tag>end |
| 1073 |
|
tag</span> has been omitted. |
| 1074 |
|
#ja |
| 1075 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 1076 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の内側の最初のものが |
| 1077 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の場合で、 |
| 1078 |
|
要素の直前が<span title=syntax-end-tag>終了タグ</span>の省略された |
| 1079 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素、<code><a href=#the-thead-element>thead</a></code> 要素、 |
| 1080 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素でない場合、 |
| 1081 |
|
省略して[[MAY:構いません]]。 |
| 1082 |
|
|
| 1083 |
|
#en |
| 1084 |
|
A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-end-tag>end |
| 1085 |
|
tag</span> may be omitted if the <code><a href=#the-tbody-element>tbody</a></code> element is |
| 1086 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1087 |
|
element, or if there is no more content in the parent element. |
| 1088 |
|
#ja |
| 1089 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1090 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の直後が |
| 1091 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1092 |
|
要素の場合や、親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1093 |
|
|
| 1094 |
|
|
| 1095 |
|
#en |
| 1096 |
|
A <code><a href=#the-tfoot-element>tfoot</a></code> element's <span title=syntax-end-tag>end |
| 1097 |
|
tag</span> may be omitted if the <code><a href=#the-tfoot-element>tfoot</a></code> element is |
| 1098 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> element, or if there is |
| 1099 |
|
no more content in the parent element. |
| 1100 |
|
#ja |
| 1101 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1102 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素の直後が |
| 1103 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の場合や、 |
| 1104 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1105 |
|
|
| 1106 |
|
#en |
| 1107 |
|
A <code><a href=#the-tr-element>tr</a></code> element's <span title=syntax-end-tag>end |
| 1108 |
|
tag</span> may be omitted if the <code><a href=#the-tr-element>tr</a></code> element is |
| 1109 |
|
immediately followed by another <code><a href=#the-tr-element>tr</a></code> element, or if there |
| 1110 |
|
is no more content in the parent element. |
| 1111 |
|
#ja |
| 1112 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1113 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の直後が別の |
| 1114 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の場合や、 |
| 1115 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1116 |
|
|
| 1117 |
|
#en |
| 1118 |
|
A <code><a href=#the-td-element>td</a></code> element's <span title=syntax-end-tag>end |
| 1119 |
|
tag</span> may be omitted if the <code><a href=#the-td-element>td</a></code> element is |
| 1120 |
|
immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> |
| 1121 |
|
element, or if there is no more content in the parent element. |
| 1122 |
|
#ja |
| 1123 |
|
<code><a href=#the-td-element>td</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1124 |
|
<code><a href=#the-td-element>td</a></code> 要素の直後が |
| 1125 |
|
<code><a href=#the-td-element>td</a></code> 要素や |
| 1126 |
|
<code><a href=#the-th-element>th</a></code> 要素の場合や、 |
| 1127 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1128 |
|
|
| 1129 |
|
|
| 1130 |
|
#en |
| 1131 |
|
A <code><a href=#the-th-element>th</a></code> element's <span title=syntax-end-tag>end |
| 1132 |
|
tag</span> may be omitted if the <code><a href=#the-th-element>th</a></code> element is |
| 1133 |
|
immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> |
| 1134 |
|
element, or if there is no more content in the parent element. |
| 1135 |
|
#ja |
| 1136 |
|
<code><a href=#the-th-element>th</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、<code><a href=#the-th-element>th</a></code> 要素の直後が |
| 1137 |
|
<code><a href=#the-td-element>td</a></code> 要素や |
| 1138 |
|
<code><a href=#the-th-element>th</a></code> 要素の場合や、 |
| 1139 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1140 |
|
|
| 1141 |
|
|
| 1142 |
|
#en |
| 1143 |
|
<strong>However</strong>, a <span title=syntax-start-tag>start |
| 1144 |
|
tag</span> must never be omitted if it has any attributes. |
| 1145 |
|
#ja |
| 1146 |
|
<strong>しかし</strong>、<span title=syntax-start-tag>開始タグ</span>が属性を持つ場合、 |
| 1147 |
|
開始タグを省略しては[[MUST:なりません]]。 |
| 1148 |
|
|
| 1149 |
|
#pattern |
| 1150 |
|
<span class=secno>* </span>Restrictions on content models |
| 1151 |
|
#ja |
| 1152 |
|
<span class=secno>$1 </span>内容モデルの制限 |
| 1153 |
|
|
| 1154 |
|
#en |
| 1155 |
|
For historical reasons, certain elements have extra restrictions |
| 1156 |
|
beyond even the restrictions given by their content model. |
| 1157 |
|
#ja |
| 1158 |
|
歴史的理由により、内容モデルによる制限以上の追加の制限を持つ要素がいくつかあります。 |
| 1159 |
|
|
| 1160 |
|
#en |
| 1161 |
|
An <code><a href=#the-optgroup-element>optgroup</a></code> element <!--that is a descendant of a |
| 1162 |
|
<code>select</code> element--> must not contain |
| 1163 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> elements, even though these elements are |
| 1164 |
|
technically allowed to be nested according to the content models |
| 1165 |
|
described in this specification. (If an <code><a href=#the-optgroup-element>optgroup</a></code> |
| 1166 |
|
element is put inside another <!--<code>optgroup</code> element |
| 1167 |
|
inside a <code>select</code> element--> in the markup, it will in |
| 1168 |
|
fact imply an <code><a href=#the-optgroup-element>optgroup</a></code> end tag before it.) |
| 1169 |
|
#ja |
| 1170 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素は<!--that is a descendant of a |
| 1171 |
|
<code>select</code> element-->、 |
| 1172 |
|
この仕様書で述べた内容モデルに従えば技術的には入れ子にできますが、 |
| 1173 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> |
| 1174 |
|
要素を含んでは[[MUST NOT:なりません]]。 |
| 1175 |
|
(<code><a href=#the-optgroup-element>optgroup</a></code> |
| 1176 |
|
要素をマーク付け中で別の<!--<code>optgroup</code> element |
| 1177 |
|
inside a <code>select</code> element--> |
| 1178 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素中に配置しても、 |
| 1179 |
|
実際にはその前に <code><a href=#the-optgroup-element>optgroup</a></code> |
| 1180 |
|
終了タグが暗示的に存在するものとみなされます。) |
| 1181 |
|
|
| 1182 |
|
#en |
| 1183 |
|
A <code><a href=#the-table-element>table</a></code> element must not contain <code><a href=#the-tr-element>tr</a></code> |
| 1184 |
|
elements, even though these elements are technically allowed inside |
| 1185 |
|
<code><a href=#the-table-element>table</a></code> elements according to the content models |
| 1186 |
|
described in this specification. (If a <code><a href=#the-tr-element>tr</a></code> element is |
| 1187 |
|
put inside a <code><a href=#the-table-element>table</a></code> in the markup, it will in fact imply |
| 1188 |
|
a <code><a href=#the-tbody-element>tbody</a></code> start tag before it.) |
| 1189 |
|
#ja |
| 1190 |
|
<code><a href=#the-table-element>table</a></code> |
| 1191 |
|
要素はこの仕様書で述べた内容モデルに従えば技術的には内側で |
| 1192 |
|
<code><a href=#the-tr-element>tr</a></code> 要素が認められていますが、 |
| 1193 |
|
<code><a href=#the-table-element>table</a></code> |
| 1194 |
|
要素は <code><a href=#the-tr-element>tr</a></code> 要素を含んでは[[MUST NOT:なりません]]。 |
| 1195 |
|
(<code><a href=#the-tr-element>tr</a></code> 要素がマーク付け中で |
| 1196 |
|
<code><a href=#the-table-element>table</a></code> 要素の内側に置かれた場合、 |
| 1197 |
|
実際には前に <code><a href=#the-tbody-element>tbody</a></code> 開始タグが暗示的に存在するものとみなされます。) |
| 1198 |
|
|
| 1199 |
|
#en |
| 1200 |
|
A single U+000A LINE FEED (LF) character may be placed |
| 1201 |
|
immediately after the <span title=syntax-start-tag>start |
| 1202 |
|
tag</span> of <code><a href=#the-pre-element>pre</a></code> and <code><a href=#the-textarea-element>textarea</a></code> |
| 1203 |
|
elements. This does not affect the processing of the element. The |
| 1204 |
|
otherwise optional U+000A LINE FEED (LF) character <em>must</em> be |
| 1205 |
|
included if the element's contents start with that character |
| 1206 |
|
(because otherwise the leading newline in the contents would be |
| 1207 |
|
treated like the optional newline, and ignored). |
| 1208 |
|
#ja |
| 1209 |
|
<code><a href=#the-pre-element>pre</a></code> 要素と |
| 1210 |
|
<code><a href=#the-textarea-element>textarea</a></code> |
| 1211 |
|
要素の<span title=syntax-start-tag>開始タグ</span>の直後に1文字の |
| 1212 |
|
U+000A LINE FEED (LF) 文字を置いても[[MAY:構いません]]。 |
| 1213 |
|
この文字は要素の処理に影響しません。 |
| 1214 |
|
通常は任意選択のこの U+000A LINE FEED (LF) 文字は、 |
| 1215 |
|
要素の内容がこの文字から始まる場合には、含めなければ<em>[[MUST:なりません]]</em> |
| 1216 |
|
(そうしなければ、内容の最初の改行は任意選択の改行として扱われ、無視されるからです)。 |
| 1217 |
|
|
| 1218 |
|
|
| 1219 |
|
#en |
| 1220 |
|
The following two <code><a href=#the-pre-element>pre</a></code> blocks are equivalent: |
| 1221 |
|
#ja |
| 1222 |
|
次の2つの <code><a href=#the-pre-element>pre</a></code> |
| 1223 |
|
ブロックは等価です。 |
| 1224 |
|
|
| 1225 |
|
#en |
| 1226 |
|
<pre>Hello</pre> |
| 1227 |
|
#ja |
| 1228 |
|
<pre>こんにちは</pre> |
| 1229 |
|
|
| 1230 |
|
#en |
| 1231 |
|
<pre><br>Hello</pre> |
| 1232 |
|
#ja |
| 1233 |
|
<pre><br>こんにちは</pre> |
| 1234 |
|
|
| 1235 |
|
#en |
| 1236 |
|
<span class=secno>* </span>Restrictions on the contents of CDATA and RCDATA elements |
| 1237 |
|
#ja |
| 1238 |
|
<span class=secno>$1 </span>CDATA 要素や RCDATA 要素の内容の制限 |
| 1239 |
|
|
| 1240 |
|
#en |
| 1241 |
|
The text in CDATA and RCDATA elements must not contain any |
| 1242 |
|
occurrences of the string "<code title=""></</code>" (U+003C |
| 1243 |
|
LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that |
| 1244 |
|
case-insensitively match the tag name of the element followed by one |
| 1245 |
|
of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM |
| 1246 |
|
FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (>), or U+002F |
| 1247 |
|
SOLIDUS (/), unless that string is part of an <a href=#syntax-escape title=syntax-escape>escaping text span</a>. |
| 1248 |
|
#ja |
| 1249 |
|
CDATA 要素や RCDATA 要素のテキストは文字列「<code title=""></</code>」 (U+003C |
| 1250 |
|
LESS-THAN SIGN、U+002F SOLIDUS) の後に要素のタグ名と大文字・小文字を区別しない場合に一致する文字が続き、 |
| 1251 |
|
その後に U+0009 CHARACTER TABULATION、U+000A LINE FEED (LF)、U+000C FORM |
| 1252 |
|
FEED (FF)、U+0020 SPACE、U+003E GREATER-THAN SIGN (>)、U+002F |
| 1253 |
|
SOLIDUS (/) |
| 1254 |
|
のいずれかが続くような列を、その文字列が<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の一部である場合を除き、 |
| 1255 |
|
含んでは[[MUST NOT:なりません]]。 |
| 1256 |
|
|
| 1257 |
|
#en |
| 1258 |
|
An <dfn id=syntax-escape title=syntax-escape>escaping text span</dfn> is a span |
| 1259 |
|
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 |
| 1260 |
|
not itself in an <a href=#syntax-escape title=syntax-escape>escaping text |
| 1261 |
|
span</a>, and ends at the next <a href=#syntax-escape-end title=syntax-escape-end>escaping text span end</a>. There |
| 1262 |
|
cannot be any <a href=#syntax-charref title=syntax-charref>character |
| 1263 |
|
references</a> inside an <a href=#syntax-escape title=syntax-escape>escaping |
| 1264 |
|
text span</a>. |
| 1265 |
|
#ja |
| 1266 |
|
<dfn id=syntax-escape title=syntax-escape>逃避テキスト径間</dfn>は、 |
| 1267 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>の径間であって、 |
| 1268 |
|
それ自体は<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>中にない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>によって始まり、 |
| 1269 |
|
次の<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間</a>によって終わるものです。 |
| 1270 |
|
<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の内側には<a href=#syntax-charref title=syntax-charref>文字参照</a>を入れることができません。 |
| 1271 |
|
|
| 1272 |
|
#en |
| 1273 |
|
An <dfn id=syntax-escape-start title=syntax-escape-start>escaping text span |
| 1274 |
|
start</dfn> is a part of <a href=#syntax-text title=syntax-text>text</a> that |
| 1275 |
|
consists of the four character sequence "<code title=""><!--</code>" (U+003C LESS-THAN SIGN, U+0021 EXCLAMATION |
| 1276 |
|
MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS). |
| 1277 |
|
#ja |
| 1278 |
|
<dfn id=syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</dfn>は、 |
| 1279 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>の一部で、 |
| 1280 |
|
4文字の列「<code title=""><!--</code>」(U+003C LESS-THAN SIGN、U+0021 EXCLAMATION |
| 1281 |
|
MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS) です。 |
| 1282 |
|
|
| 1283 |
|
#en |
| 1284 |
|
An <a href=#syntax-escape-start title=syntax-escape-start>escaping text span |
| 1285 |
|
start</a> may share its U+002D HYPHEN-MINUS characters with its |
| 1286 |
|
corresponding <a href=#syntax-escape-end title=syntax-escape-end>escaping text span |
| 1287 |
|
end</a>. |
| 1288 |
|
#ja |
| 1289 |
|
<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>は、 |
| 1290 |
|
その U+002D HYPHEN-MINUS 文字を対応する<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>と共有して[[MAY:構いません]]。 |
| 1291 |
|
|
| 1292 |
|
#en |
| 1293 |
|
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 |
| 1294 |
|
not followed by an <a href=#syntax-escape-end title=syntax-escape-end>escaping text |
| 1295 |
|
span end</a>. |
| 1296 |
|
#ja |
| 1297 |
|
CDATA 要素と RCDATA 要素のテキストは<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>が後に続かない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>を含んでは[[MUST NOT:なりません]]。 |
| 1298 |
|
|
| 1299 |
|
#pattern |
| 1300 |
|
<span class=secno>* </span>Text |
| 1301 |
|
#ja |
| 1302 |
|
<span class=secno>$1 </span>テキスト |
| 1303 |
|
|
| 1304 |
|
#en |
| 1305 |
|
<dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements, |
| 1306 |
|
attributes, and comments. Text must consist of Unicode characters. |
| 1307 |
|
Text must not contain U+0000 characters. Text must not contain |
| 1308 |
|
permanently undefined Unicode characters. Text must not contain |
| 1309 |
|
control characters other than <a href=#space-character title="space character">space |
| 1310 |
|
characters</a>. Extra constraints are placed on what is and what |
| 1311 |
|
is not allowed in text based on where the text is to be put, as |
| 1312 |
|
described in the other sections. |
| 1313 |
|
#ja |
| 1314 |
|
<dfn id=syntax-text title=syntax-text>テキスト</dfn>は要素、 |
| 1315 |
|
属性、注釈の内側で認められています。 |
| 1316 |
|
テキストは Unicode 文字で構成されなければ[[MUST:なりません]]。 |
| 1317 |
|
テキストは U+0000 文字を含んでは[[MUST NOT:なりません]]。 |
| 1318 |
|
テキストは恒久的に未定義の Unicode 文字を含んでは[[MUST NOT:なりません]]。 |
| 1319 |
|
テキストは<a href=#space-character title="space character">間隔文字</a>以外の制御文字を含んでは[[MUST NOT:なりません]]。 |
| 1320 |
|
他の節で述べた通り、テキストが配置される場所によって、テキスト中で何が認められ、 |
| 1321 |
|
何が認められないかの追加の制約があります。 |
| 1322 |
|
|
| 1323 |
|
|
| 1324 |
|
#pattern |
| 1325 |
|
<span class=secno>* </span>Newlines |
| 1326 |
|
#ja |
| 1327 |
|
<span class=secno>$1 </span>改行 |