--- title: HTMLOListElement slug: Web/API/HTMLOListElement tags: - API - HTML DOM - Interface - Reference translation_of: Web/API/HTMLOListElement ---
{{ APIRef("HTML DOM") }}

HTMLOListElement インターフェイスは  インターフェイスは、 (HTMLElement から継承したものより詳細に) <ol> 要素を操作するためのプロパティやメソッドを提供します。

{{InheritanceDiagram(600, 120)}}

Properties

親である HTMLElement からプロパティを継承しています。

{{domxref("HTMLOListElement.reversed")}}
{{domxref("Boolean")}} で、{{htmlattrxref("reversed", "ol")}} を反映します。番号が降順の場合はtrueで、昇順の場合はfalseです。
{{domxref("HTMLOListElement.start")}}
Is a long value reflecting the {{htmlattrxref("start", "ol")}} and defining the value of the first number of the first element of the list.
{{domxref("HTMLOListElement.type")}}
Is a {{domxref("DOMString")}} value reflecting the {{htmlattrxref("type", "ol")}} and defining the kind of marker to be used to display. It can have the following values:
{{domxref("HTMLOListElement.compact")}} {{obsolete_inline}}
Is a {{domxref("Boolean")}} indicating that spacing between list items should be reduced. This property reflects the {{htmlattrxref("compact", "ol")}} attribute only, it doesn't consider the {{cssxref("line-height")}} CSS property used for that behavior in modern pages.

Methods

固有のメソッドはありません。親である{{domxref("HTMLElement")}}からメソッドを継承しています。

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "#htmlolistelement", "HTMLOListElement")}} {{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', "grouping-content.html#the-ol-element", "HTMLOListElement")}} {{Spec2('HTML5 W3C')}} reversed プロパティが追加された。
{{SpecName('DOM2 HTML', 'html.html#ID-58056027', 'HTMLOListElement')}} {{Spec2('DOM2 HTML')}} {{SpecName("DOM1")}}から変更なし。
{{SpecName('DOM1', 'level-one-html.html#ID-58056027', 'HTMLOListElement')}} {{Spec2('DOM1')}} 初回定義。

Browser compatibility

{{Compat("api.HTMLOListElement")}}

See also