| 655 |
属性は、取得時、文書の<a href=#the-body-element-1>文書 body 要素</a> |
属性は、取得時、文書の<a href=#the-body-element-1>文書 body 要素</a> |
| 656 |
(<code><a href=#the-body-element>body</a></code> 要素か、 |
(<code><a href=#the-body-element>body</a></code> 要素か、 |
| 657 |
<code>frameset</code> 要素か、 null のいずれか) を返さなければ[[MUST:なりません]]。 |
<code>frameset</code> 要素か、 null のいずれか) を返さなければ[[MUST:なりません]]。 |
|
設定時、次の算法を走らせなければ[[MUST:なりません]]。 |
|
| 658 |
|
設定時、次の算法を走らせなければ[[MUST:なりません]]。 |
| 659 |
|
|
| 660 |
|
#en |
| 661 |
|
If the new value is not a <code><a href=#the-body-element>body</a></code> or |
| 662 |
|
<code>frameset</code> element, then raise a |
| 663 |
|
<code>HIERARCHY_REQUEST_ERR</code> exception and abort these |
| 664 |
|
steps. |
| 665 |
|
#ja |
| 666 |
|
新しい値が <code><a href=#the-body-element>body</a></code> 要素か |
| 667 |
|
<code>frameset</code> 要素でない場合、 |
| 668 |
|
<code>HIERARCHY_REQUEST_ERR</code> 例外を発生させ、 |
| 669 |
|
これらの段階を停止します。 |
| 670 |
|
|
| 671 |
|
#en |
| 672 |
|
Otherwise, if the new value is the same as <a href=#the-body-element-1>the body |
| 673 |
|
element</a>, do nothing. Abort these steps. |
| 674 |
|
#ja |
| 675 |
|
そうでない場合、新しい値が<a href=#the-body-element-1>文書 body |
| 676 |
|
要素</a>と同じであれば、なにもしません。これらの段階を停止します。 |
| 677 |
|
|
| 678 |
|
#en |
| 679 |
|
Otherwise, if <a href=#the-body-element-1>the body element</a> is not null, then |
| 680 |
|
replace that element with the new value in the DOM, as if the root |
| 681 |
|
element's <code title="">replaceChild()</code> method had been |
| 682 |
|
called with the new value and <a href=#the-body-element-1 title="the body element">the |
| 683 |
|
incumbent body element</a> as its two arguments respectively, |
| 684 |
|
then abort these steps. |
| 685 |
|
#ja |
| 686 |
|
そうでない場合、<a href=#the-body-element-1>文書 body |
| 687 |
|
要素</a>が null でなければ、根要素の <code title="">replaceChild()</code> |
| 688 |
|
メソッドに新しい値と<a href=#the-body-element-1 title="the body element">現行の文書 |
| 689 |
|
body 要素</a>をそれぞれ2つの引数として呼び出した場合と同様にして、 |
| 690 |
|
DOM 中のその要素を新しい値により置き換え、 |
| 691 |
|
これらの段階を停止します。 |
| 692 |
|
|
| 693 |
|
#en |
| 694 |
|
Otherwise, the <a href=#the-body-element-1>the body element</a> is null. Append |
| 695 |
|
the new value to the root element. |
| 696 |
|
#ja |
| 697 |
|
そうでない場合、<a href=#the-body-element-1>文書 body |
| 698 |
|
要素</a>は null です。新しい値を根要素の末尾に追加します。 |
| 699 |
|
|
| 700 |
|
#en |
| 701 |
|
The <dfn id=dom-document-images title=dom-document-images><code>images</code></dfn> |
| 702 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 703 |
|
<code>Document</code> node, whose filter matches only |
| 704 |
|
<code><a href=#the-img-element>img</a></code> elements. |
| 705 |
|
#ja |
| 706 |
|
<dfn id=dom-document-images title=dom-document-images><code>images</code></dfn> |
| 707 |
|
属性は、 <code>Document</code> 節点を根とする、 |
| 708 |
|
濾過器が <code><a href=#the-img-element>img</a></code> 要素にのみ一致するような |
| 709 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 710 |
|
を返さなければ[[MUST:なりません]]。 |
| 711 |
|
|
| 712 |
|
#en |
| 713 |
|
The <dfn id=dom-document-embeds title=dom-document-embeds><code>embeds</code></dfn> |
| 714 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 715 |
|
<code>Document</code> node, whose filter matches only |
| 716 |
|
<code><a href=#the-embed-element>embed</a></code> elements. |
| 717 |
|
#ja |
| 718 |
|
<dfn id=dom-document-embeds title=dom-document-embeds><code>embeds</code></dfn> |
| 719 |
|
属性は、 <code>Document</code> 節点を根とする、 |
| 720 |
|
濾過器が <code><a href=#the-img-element>embed</a></code> 要素にのみ一致するような |
| 721 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 722 |
|
を返さなければ[[MUST:なりません]]。 |
| 723 |
|
|
| 724 |
|
#en |
| 725 |
|
The <dfn id=dom-document-plugins title=dom-document-plugins><code>plugins</code></dfn> |
| 726 |
|
attribute must return the same object as that returned by the <code title=dom-document-embeds><a href=#dom-document-embeds>embeds</a></code> attribute. |
| 727 |
|
#ja |
| 728 |
|
<dfn id=dom-document-plugins title=dom-document-plugins><code>plugins</code></dfn> |
| 729 |
|
属性は、 <code title=dom-document-embeds><a href=#dom-document-embeds>embeds</a></code> |
| 730 |
|
属性が返すのと同じオブジェクトを返さなければ[[MUST:なりません]]。 |
| 731 |
|
|
| 732 |
|
#en |
| 733 |
|
The <dfn id=dom-document-links title=dom-document-links><code>links</code></dfn> |
| 734 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 735 |
|
<code>Document</code> node, whose filter matches only <code><a href=#the-a-element>a</a></code> |
| 736 |
|
elements with <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> |
| 737 |
|
attributes and <code><a href=#the-area-element>area</a></code> elements with <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attributes. |
| 738 |
|
#ja |
| 739 |
|
<dfn id=dom-document-links title=dom-document-links><code>links</code></dfn> |
| 740 |
|
属性は、<code>Document</code> 節点を根とする、 |
| 741 |
|
濾過器が <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> |
| 742 |
|
属性を持つ <code><a href=#the-a-element>a</a></code> 要素と |
| 743 |
|
<code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> |
| 744 |
|
属性を持つ <code><a href=#the-area-element>area</a></code> 要素にのみ一致するような |
| 745 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 746 |
|
を返さなければ[[MUST:なりません]]。 |
| 747 |
|
|
| 748 |
|
#en |
| 749 |
|
The <dfn id=dom-document-forms title=dom-document-forms><code>forms</code></dfn> |
| 750 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 751 |
|
<code>Document</code> node, whose filter matches only |
| 752 |
|
<code><a href=#the-form-element>form</a></code> elements. |
| 753 |
|
#ja |
| 754 |
|
<dfn id=dom-document-forms title=dom-document-forms><code>forms</code></dfn> |
| 755 |
|
属性は、<code>Document</code> 節点を根とする、 |
| 756 |
|
濾過器が <code><a href=#the-form-element>form</a></code> 要素にのみ一致するような |
| 757 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 758 |
|
を返さなければ[[MUST:なりません]]。 |
| 759 |
|
|
| 760 |
|
#en |
| 761 |
|
The <dfn id=dom-document-anchors title=dom-document-anchors><code>anchors</code></dfn> |
| 762 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 763 |
|
<code>Document</code> node, whose filter matches only <code><a href=#the-a-element>a</a></code> |
| 764 |
|
elements with <code title=attr-a-name>name</code> attributes. |
| 765 |
|
#ja |
| 766 |
|
<dfn id=dom-document-anchors title=dom-document-anchors><code>anchors</code></dfn> |
| 767 |
|
属性は、<code>Document</code> 節点を根とする、 |
| 768 |
|
濾過器が <code title=attr-a-name>name</code> 属性を持つ |
| 769 |
|
<code><a href=#the-a-element>a</a></code> |
| 770 |
|
要素にのみ一致するような |
| 771 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 772 |
|
を返さなければ[[MUST:なりません]]。 |
| 773 |
|
|
| 774 |
|
#en |
| 775 |
|
The <dfn id=dom-document-scripts title=dom-document-scripts><code>scripts</code></dfn> |
| 776 |
|
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the |
| 777 |
|
<code>Document</code> node, whose filter matches only |
| 778 |
|
<code><a href=#script>script</a></code> elements. |
| 779 |
|
#ja |
| 780 |
|
<dfn id=dom-document-scripts title=dom-document-scripts><code>scripts</code></dfn> |
| 781 |
|
属性は、<code>Document</code> 節点を根とする、 |
| 782 |
|
濾過器が <code><a href=#script>script</a></code> |
| 783 |
|
要素にのみ一致するような |
| 784 |
|
<code><a href=#htmlcollection-0>HTMLCollection</a></code> |
| 785 |
|
を返さなければ[[MUST:なりません]]。 |