| 643 |
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
| 644 |
HTML 構文では、属性名は当該属性の名前に |
HTML 構文では、属性名は当該属性の名前に |
| 645 |
<a href=#ascii-case-insensitive>ASCII |
<a href=#ascii-case-insensitive>ASCII |
|
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
|
| 646 |
|
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
| 647 |
|
|
| 648 |
|
#en |
| 649 |
|
<dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a |
| 650 |
|
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 |
| 651 |
|
additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. |
| 652 |
|
#ja |
| 653 |
|
<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>を含むことができないとの追加の制限があります。 |
| 654 |
|
|
| 655 |
|
#en |
| 656 |
|
Attributes can be specified in four different ways: |
| 657 |
|
#ja |
| 658 |
|
属性は4種類の方法で指定できます。 |
| 659 |
|
|
| 660 |
|
#en |
| 661 |
|
Empty attribute syntax |
| 662 |
|
#ja |
| 663 |
|
空属性構文 |
| 664 |
|
|
| 665 |
|
#en |
| 666 |
|
Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute |
| 667 |
|
name</a>. |
| 668 |
|
#ja |
| 669 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。 |
| 670 |
|
|
| 671 |
|
#en |
| 672 |
|
In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with |
| 673 |
|
the empty attribute syntax: |
| 674 |
|
#ja |
| 675 |
|
次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> |
| 676 |
|
属性が空属性構文により与えられています。 |
| 677 |
|
|
| 678 |
|
#en |
| 679 |
|
If an attribute using the empty attribute syntax is to be |
| 680 |
|
followed by another attribute, then there must be a <a href=#space-character>space |
| 681 |
|
character</a> separating the two. |
| 682 |
|
#ja |
| 683 |
|
空属性構文を用いる属性の後に別の属性が続く場合、 |
| 684 |
|
両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。 |
| 685 |
|
|
| 686 |
|
#en |
| 687 |
|
Unquoted attribute value syntax |
| 688 |
|
#ja |
| 689 |
|
非引用属性値構文 |
| 690 |
|
|
| 691 |
|
#en |
| 692 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 693 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 694 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 695 |
|
character, followed by zero or more <a href=#space-character title="space |
| 696 |
|
character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 697 |
|
addition to the requirements given above for attribute values, |
| 698 |
|
must not contain any literal <a href=#space-character title="space character">space |
| 699 |
|
characters</a>, any U+0022 QUOTATION MARK (<code>"</code>) |
| 700 |
|
characters, U+0027 APOSTROPHE (<code>'</code>) characters, |
| 701 |
|
U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E |
| 702 |
|
GREATER-THAN SIGN (<code>></code>) characters, and must not be |
| 703 |
|
the empty string. |
| 704 |
|
#ja |
| 705 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、 |
| 706 |
|
その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space |
| 707 |
|
character">間隔文字</a>があり、 |
| 708 |
|
その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>があるもので、 |
| 709 |
|
その属性値については前述の属性値に関する要件に加え、 |
| 710 |
|
生の<a href=#space-character title="space character">間隔文字</a>、 |
| 711 |
|
U+0022 QUOTATION MARK (<code>"</code>) 文字、 |
| 712 |
|
U+0027 APOSTROPHE (<code>'</code>) 文字、 |
| 713 |
|
U+003D EQUALS SIGN (<code>=</code>) 文字、 |
| 714 |
|
U+003E |
| 715 |
|
GREATER-THAN SIGN (<code>></code>) 文字を含んでは[[MUST NOT:ならず]]、 |
| 716 |
|
空文字列であっては[[MUST NOT:なりません]]。 |
| 717 |
|
|
| 718 |
|
#en |
| 719 |
|
In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given |
| 720 |
|
with the unquoted attribute value syntax: |
| 721 |
|
#ja |
| 722 |
|
次の例では、 |
| 723 |
|
<code title=attr-input-value><a href=#attr-input-value>value</a></code> |
| 724 |
|
属性が非引用属性値構文により与えられています。 |
| 725 |
|
|
| 726 |
|
|
| 727 |
|
#en |
| 728 |
|
If an attribute using the unquoted attribute syntax is to be |
| 729 |
|
followed by another attribute or by one of the optional U+002F |
| 730 |
|
SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there |
| 731 |
|
must be a <a href=#space-character>space character</a> separating the two. |
| 732 |
|
#ja |
| 733 |
|
非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる |
| 734 |
|
U+002F |
| 735 |
|
SOLIDUS (<code>/</code>) 文字が続く場合、 |
| 736 |
|
両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
| 737 |
|
|
| 738 |
|
#en |
| 739 |
|
Single-quoted attribute value syntax |
| 740 |
|
#ja |
| 741 |
|
単一引用符属性値構文 |
| 742 |
|
|
| 743 |
|
#en |
| 744 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 745 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 746 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 747 |
|
character, followed by zero or more <a href=#space-character title="space |
| 748 |
|
character">space characters</a>, followed by a single U+0027 |
| 749 |
|
APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 750 |
|
addition to the requirements given above for attribute values, |
| 751 |
|
must not contain any literal U+0027 APOSTROPHE (<code>'</code>) |
| 752 |
|
characters, and finally followed by a second single U+0027 |
| 753 |
|
APOSTROPHE (<code>'</code>) character. |
| 754 |
|
#ja |
| 755 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、 |
| 756 |
|
零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 757 |
|
その後1文字の U+003D EQUALS SIGN |
| 758 |
|
文字が続き、零文字以上の<a href=#space-character title="space |
| 759 |
|
character">間隔文字</a>が続き、1文字の U+0027 |
| 760 |
|
APOSTROPHE (<code>'</code>) 文字が続き、<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続き、 |
| 761 |
|
この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>) |
| 762 |
|
文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の |
| 763 |
|
U+0027 |
| 764 |
|
APOSTROPHE (<code>'</code>) 文字が続くもの。 |
| 765 |
|
|
| 766 |
|
#en |
| 767 |
|
In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the |
| 768 |
|
single-quoted attribute value syntax: |
| 769 |
|
#ja |
| 770 |
|
次の例では、 |
| 771 |
|
<code title=attr-input-type><a href=#attr-input-type>type</a></code> |
| 772 |
|
属性が単一引用符属性値構文により与えられます。 |
| 773 |
|
|
| 774 |
|
#en |
| 775 |
|
If an attribute using the single-quoted attribute syntax is to |
| 776 |
|
be followed by another attribute, then there must be a <a href=#space-character>space |
| 777 |
|
character</a> separating the two. |
| 778 |
|
#ja |
| 779 |
|
単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。 |
| 780 |
|
|
| 781 |
|
#en |
| 782 |
|
Double-quoted attribute value syntax |
| 783 |
|
#ja |
| 784 |
|
二重引用符属性値構文 |
| 785 |
|
|
| 786 |
|
#en |
| 787 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 788 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 789 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 790 |
|
character, followed by zero or more <a href=#space-character title="space |
| 791 |
|
character">space characters</a>, followed by a single U+0022 |
| 792 |
|
QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 793 |
|
addition to the requirements given above for attribute values, |
| 794 |
|
must not contain any literal U+0022 QUOTATION MARK |
| 795 |
|
(<code>"</code>) characters, and finally followed by a second |
| 796 |
|
single U+0022 QUOTATION MARK (<code>"</code>) character. |
| 797 |
|
#ja |
| 798 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 799 |
|
その後に1文字の U+003D EQUALS SIGN |
| 800 |
|
文字が続き、その後に零文字以上の<a href=#space-character title="space |
| 801 |
|
character">間隔文字</a>が続き、その後に1文字の U+0022 |
| 802 |
|
QUOTATION MARK (<code>"</code>) 文字が続き、その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続くところ、 |
| 803 |
|
前述の属性値に関する要件に加えて生の U+0022 QUOTATION MARK |
| 804 |
|
(<code>"</code>) 文字を含んでは[[MUST:ならず]]、 |
| 805 |
|
最後に2つ目の1文字の U+0022 QUOTATION MARK (<code>"</code>) 文字が続くもの。 |