| 655 |
#en |
#en |
| 656 |
Attributes can be specified in four different ways: |
Attributes can be specified in four different ways: |
| 657 |
#ja |
#ja |
|
属性は4種類の方法で指定できます。 |
|
| 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:なりません]]。 |