メインコンテンツへスキップ

isindex要素


1.仕様

ISINDEX要素は、
単一行の
テキスト入力コントロールを
作成します。

ISINDEX - X EMPTY -- A single line text input field. (Void elements.) [Metadata] --

isindex

一行プロンプト (single line prompt)

HTML4.01 で非推奨, HTML5 で廃止の要素です。

種類
空要素

任意のコンテンツを持つことができない要素です。

使用できるコンテキスト
head要素に 0または1つ

head要素に 0または1つを そのコンテンツとして、使用できます。

コンテンツモデル
何もない

要素のコンテンツモデルが「何もない」の場合、要素にはテキストノード (要素間の空白以外) と要素ノードが含まれていてはなりません。

タグの省略

終了タグはありません。

コンテンツ属性
グローバル属性 他
prompt属性
プロンプトメッセージ
DOM インターフェイス
HTMLUnknownElement
  1. [Exposed=Window]
  2. interface HTMLUnknownElement : HTMLElement {
  3.  
  4. // Note: intentionally no [HTMLConstructor]
  5. };
HTMLElement
  1. [Exposed=Window]
  2. interface HTMLElement : Element {
  3. [HTMLConstructor] constructor();
  4.  
  5. // metadata attributes
  6. [CEReactions] attribute DOMString title;
  7. [CEReactions] attribute DOMString lang;
  8. [CEReactions] attribute boolean translate;
  9. [CEReactions] attribute DOMString dir;
  10.  
  11. // user interaction
  12. [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden;
  13. [CEReactions] attribute DOMString inert;
  14. undefined click();
  15. [CEReactions] attribute DOMString accessKey;
  16. readonly attribute DOMString accessKeyLabel;
  17. [CEReactions] attribute boolean draggable;
  18. [CEReactions] attribute boolean spellcheck;
  19. [CEReactions] attribute DOMString writingSuggestions;
  20. [CEReactions] attribute DOMString autocapitalize;
  21.  
  22. [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
  23. [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;
  24.  
  25. ElementInternals attachInternals();
  26.  
  27. // The popover API
  28. undefined showPopover();
  29. undefined hidePopover();
  30. boolean togglePopover(optional boolean force);
  31. [CEReactions] attribute DOMString? popover;
  32. };
  33.  
  34. HTMLElement includes GlobalEventHandlers;
  35. HTMLElement includes ElementContentEditable;
  36. HTMLElement includes HTMLOrSVGElement;
Element
  1. [Exposed=Window]
  2. interface Element : Node {
  3. readonly attribute DOMString? namespaceURI;
  4. readonly attribute DOMString? prefix;
  5. readonly attribute DOMString localName;
  6. readonly attribute DOMString tagName;
  7.  
  8. [CEReactions] attribute DOMString id;
  9. [CEReactions] attribute DOMString className;
  10. [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
  11. [CEReactions, Unscopable] attribute DOMString slot;
  12.  
  13. boolean hasAttributes();
  14. [SameObject] readonly attribute NamedNodeMap attributes;
  15. sequence<DOMString> getAttributeNames();
  16. DOMString? getAttribute(DOMString qualifiedName);
  17. DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
  18. [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
  19. [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
  20. [CEReactions] undefined removeAttribute(DOMString qualifiedName);
  21. [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
  22. [CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
  23. boolean hasAttribute(DOMString qualifiedName);
  24. boolean hasAttributeNS(DOMString? namespace, DOMString localName);
  25.  
  26. Attr? getAttributeNode(DOMString qualifiedName);
  27. Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
  28. [CEReactions] Attr? setAttributeNode(Attr attr);
  29. [CEReactions] Attr? setAttributeNodeNS(Attr attr);
  30. [CEReactions] Attr removeAttributeNode(Attr attr);
  31.  
  32. ShadowRoot attachShadow(ShadowRootInit init);
  33. readonly attribute ShadowRoot? shadowRoot;
  34.  
  35. Element? closest(DOMString selectors);
  36. boolean matches(DOMString selectors);
  37. boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
  38.  
  39. HTMLCollection getElementsByTagName(DOMString qualifiedName);
  40. HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
  41. HTMLCollection getElementsByClassName(DOMString classNames);
  42.  
  43. [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy
  44. undefined insertAdjacentText(DOMString where, DOMString data); // legacy
  45. };
GlobalEventHandlers
  1. interface mixin GlobalEventHandlers {
  2. attribute EventHandler onabort;
  3. attribute EventHandler onauxclick;
  4. attribute EventHandler onbeforeinput;
  5. attribute EventHandler onbeforematch;
  6. attribute EventHandler onbeforetoggle;
  7. attribute EventHandler onblur;
  8. attribute EventHandler oncancel;
  9. attribute EventHandler oncanplay;
  10. attribute EventHandler oncanplaythrough;
  11. attribute EventHandler onchange;
  12. attribute EventHandler onclick;
  13. attribute EventHandler onclose;
  14. attribute EventHandler oncontextlost;
  15. attribute EventHandler oncontextmenu;
  16. attribute EventHandler oncontextrestored;
  17. attribute EventHandler oncopy;
  18. attribute EventHandler oncuechange;
  19. attribute EventHandler oncut;
  20. attribute EventHandler ondblclick;
  21. attribute EventHandler ondrag;
  22. attribute EventHandler ondragend;
  23. attribute EventHandler ondragenter;
  24. attribute EventHandler ondragleave;
  25. attribute EventHandler ondragover;
  26. attribute EventHandler ondragstart;
  27. attribute EventHandler ondrop;
  28. attribute EventHandler ondurationchange;
  29. attribute EventHandler onemptied;
  30. attribute EventHandler onended;
  31. attribute OnErrorEventHandler onerror;
  32. attribute EventHandler onfocus;
  33. attribute EventHandler onformdata;
  34. attribute EventHandler oninput;
  35. attribute EventHandler oninvalid;
  36. attribute EventHandler onkeydown;
  37. attribute EventHandler onkeypress;
  38. attribute EventHandler onkeyup;
  39. attribute EventHandler onload;
  40. attribute EventHandler onloadeddata;
  41. attribute EventHandler onloadedmetadata;
  42. attribute EventHandler onloadstart;
  43. attribute EventHandler onmousedown;
  44. [LegacyLenientThis] attribute EventHandler onmouseenter;
  45. [LegacyLenientThis] attribute EventHandler onmouseleave;
  46. attribute EventHandler onmousemove;
  47. attribute EventHandler onmouseout;
  48. attribute EventHandler onmouseover;
  49. attribute EventHandler onmouseup;
  50. attribute EventHandler onpaste;
  51. attribute EventHandler onpause;
  52. attribute EventHandler onplay;
  53. attribute EventHandler onplaying;
  54. attribute EventHandler onprogress;
  55. attribute EventHandler onratechange;
  56. attribute EventHandler onreset;
  57. attribute EventHandler onresize;
  58. attribute EventHandler onscroll;
  59. attribute EventHandler onscrollend;
  60. attribute EventHandler onsecuritypolicyviolation;
  61. attribute EventHandler onseeked;
  62. attribute EventHandler onseeking;
  63. attribute EventHandler onselect;
  64. attribute EventHandler onslotchange;
  65. attribute EventHandler onstalled;
  66. attribute EventHandler onsubmit;
  67. attribute EventHandler onsuspend;
  68. attribute EventHandler ontimeupdate;
  69. attribute EventHandler ontoggle;
  70. attribute EventHandler onvolumechange;
  71. attribute EventHandler onwaiting;
  72. attribute EventHandler onwebkitanimationend;
  73. attribute EventHandler onwebkitanimationiteration;
  74. attribute EventHandler onwebkitanimationstart;
  75. attribute EventHandler onwebkittransitionend;
  76. attribute EventHandler onwheel;
  77. };
ElementContentEditable
  1. interface mixin ElementContentEditable {
  2. [CEReactions] attribute DOMString contentEditable;
  3. [CEReactions] attribute DOMString enterKeyHint;
  4. readonly attribute boolean isContentEditable;
  5. [CEReactions] attribute DOMString inputMode;
  6. };
HTMLOrSVGElement
  1. interface mixin HTMLOrSVGElement {
  2. [SameObject] readonly attribute DOMStringMap dataset;
  3. attribute DOMString nonce; // intentionally no [CEReactions]
  4.  
  5. [CEReactions] attribute boolean autofocus;
  6. [CEReactions] attribute long tabIndex;
  7. undefined focus(optional FocusOptions options = {});
  8. undefined blur();
  9. };
ARIA in HTML

この要素は、HTML5 では廃止された機能です。ARIA in HTML に、この要素の記述はありません。

レンダリング
ボックスを生成しない
非表示の要素

CSS を大雑把に読むと、 要素とその子孫はボックスやテキストシーケンスを生成しません。 などになります。

説明
isindex要素は、単一行のテキスト入力コントロールを作成します。

isindex要素は、isindex要素は、HTML5 で廃止された要素です。HTML4.01 では非推奨でした。以下の記述は HTML3.2 での記述を記したものです。一応の知識として参照して下さい。既存の isindex要素の使用意図が不明で input要素に置き換える事が出来ない場合のみ、その環境で試行錯誤で頑張ってみて下さい。出来る限り、input要素の採用をお勧めします。
ユーザーエージェントがクエリ文字列を入力する為の 1 行のテキスト入力フィールドを提供する必要がある事を示します。入力できる文字数に制限はありません。prompt属性は、入力フィールドのプロンプト文字列を指定する為に使用できます。
現在、isindex要素のセマンティクスは、それを囲むドキュメントのベース URL が HTTP URL である場合にのみ明確に定義されています。通常、ユーザーが Enter(リターン) キーを押すと、このドキュメントのベース URL によって識別されるサーバーにクエリ文字列が送信されます。
スペース文字は「+」文字にマップされ、通常の URL 文字エスケープメカニズムが適用されることに注意してください。詳細については、HTTP 仕様を参照してください。実際には、URL にはクエリの文字セットを指定するメカニズムが現在存在しない為、クエリ文字列は Latin-1 に制限される事に注意してください。

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="ja">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>isindex要素の例 - (Example of isindex element) | 離珠のHTMLでしぃ!</title>
  6. <link rel="icon" href="../favicon.ico" type="image/vnd.microsoft.icon">
  7. <isindex prompt="検索フレーズ">
  8. </head>
  9. <body>
  10. <h1>isindex要素の例</h1>
  11. <p>この例の isindex要素は、「検索フレーズ」とラベル付けした単一行のテキスト入力コントロールを表しています。</p>
  12. <p>isindex要素は、HTML4.01 で非推奨, HTML5 で廃止の要素です。</p>
  13. </body>
  14. </html>

このサンプルへのリンクです。
(./exisindex.htm)

JSONデータ
JSON形式での、データのイメージです。
  1. {
  2. "isindex": {
  3. "check": "2024-09-01",
  4. "group": "Metadata",
  5. "element": "- X EMPTY -- A single line text input field. (Void elements.) [Metadata] --",
  6. "attlist": {
  7. "%Global;": "",
  8. "prompt": "CDATA #IMPLIED -- prompt message --",
  9. },
  10. "comment": "一行プロンプト (single line prompt)",
  11. "point": "単一行のテキスト入力コントロールを作成します。",
  12. "description": [
  13. "isindex要素は、HTML5 で廃止された要素です。HTML4.01 では非推奨でした。以下の記述は HTML3.2 での記述を記したものです。一応の知識として参照して下さい。既存の isindex要素の使用意図が不明で input要素に置き換える事が出来ない場合のみ、その環境で試行錯誤で頑張ってみて下さい。出来る限り、input要素の採用をお勧めします。",
  14. "ユーザーエージェントがクエリ文字列を入力する為の 1 行のテキスト入力フィールドを提供する必要がある事を示します。入力できる文字数に制限はありません。prompt属性は、入力フィールドのプロンプト文字列を指定する為に使用できます。",
  15. "現在、isindex要素のセマンティクスは、それを囲むドキュメントのベース URL が HTTP URL である場合にのみ明確に定義されています。通常、ユーザーが Enter(リターン) キーを押すと、このドキュメントのベース URL によって識別されるサーバーにクエリ文字列が送信されます。",
  16. "スペース文字は「+」文字にマップされ、通常の URL 文字エスケープメカニズムが適用されることに注意してください。詳細については、HTTP 仕様を参照してください。実際には、URL にはクエリの文字セットを指定するメカニズムが現在存在しない為、クエリ文字列は Latin-1 に制限される事に注意してください。",
  17. ],
  18. "kind": "Void",
  19. "categories": "Metadata",
  20. "used": "HEAD (ISINDEX)?",
  21. "contentmodel": "%Nothing",
  22. "tag": [
  23. "-",
  24. "X",
  25. ],
  26. "attributes": {"prompt": "プロンプトメッセージ"},
  27. "dominterface": "HTMLUnknownElement",
  28. "rendering": "Hidden",
  29. "reference": [
  30. {
  31. "title": "HTML Living Standard. 16.2 Non-conforming features.",
  32. "href": "https://html.spec.whatwg.org/multipage/obsolete.html#non-conforming-features",
  33. "heading": "HTML Living Standard. 16.2 Non-conforming features",
  34. "sub": "Last Updated 27 August 2024",
  35. },
  36. {
  37. "title": "HTML 5.2 W3C Recommendation. 11.2. Non-conforming features. W3C Recommendation, 14 December 2017.",
  38. "href": "https://www.w3.org/TR/2017/REC-html52-20171214/obsolete.html#non-conforming-features",
  39. "heading": "HTML 5.2 W3C 勧告. 11.2. Non-conforming features",
  40. "sub": "W3C勧告、2017年12月14日",
  41. },
  42. {
  43. "title": "HTML 5.1 W3C Recommendation. 11.2. Non-conforming features. W3C Recommendation, 1 November 2016.",
  44. "href": "https://www.w3.org/TR/2016/REC-html51-20161101/obsolete.html#non-conforming-features",
  45. "heading": "HTML 5.1 W3C 勧告. 11.2. Non-conforming features",
  46. "sub": "W3C勧告、2016年11月1日",
  47. },
  48. {
  49. "title": "HTML 5 W3C Recommendation. 11.2 Non-conforming features. W3C Recommendation, 28 October 2014.",
  50. "href": "https://www.w3.org/TR/2014/REC-html5-20141028/obsolete.html#non-conforming-features",
  51. "heading": "HTML 5 W3C 勧告. 11.2 Non-conforming features",
  52. "sub": "W3C勧告、2014年10月28日",
  53. },
  54. {
  55. "title": "HTML 4.01 Specification W3C Recommendation. 17.8 The ISINDEX element. W3C Recommendation 24 December 1999.",
  56. "href": "https://www.w3.org/TR/html401/interact/forms.html#h-17.8",
  57. "heading": "HTML 4.01 Specification W3C 勧告. 17.8 The ISINDEX element",
  58. "sub": "W3C勧告1999年12月24日",
  59. },
  60. {
  61. "title": "HTML 3.2 Reference Specification. W3C Recommendation 14-Jan-1997.",
  62. "href": "https://www.w3.org/TR/2018/SPSD-html32-20180315/#isindex",
  63. "heading": "HTML 3.2 Reference Specification ISINDEX",
  64. "sub": "W3C勧告1997年1月14日",
  65. },
  66. {
  67. "title": " Hypertext Markup Language - 2.0. November 1995.",
  68. "href": "https://www.ietf.org/rfc/rfc1866.txt",
  69. "heading": "Hypertext Markup Language - 2.0",
  70. "sub": "November 1995",
  71. },
  72. {
  73. "title": "Hypertext Markup Language (HTML). June 1993.",
  74. "href": "https://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt",
  75. "heading": "Hypertext Markup Language (HTML)",
  76. "sub": "June 1993",
  77. },
  78. {
  79. "title": "<isindex> - HTML | MDN",
  80. "href": "https://www.devdoc.net/web/developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex.html",
  81. "heading": "<isindex> - HTML | MDN",
  82. },
  83. ],
  84. "version": {
  85. "first": "HTML",
  86. "latest": "HTML4.01 Transitional",
  87. },
  88. }
  89. }

注意: 簡易に描画する為に、各項目の後ろに , を付与しています。JSON の形式では、末尾の項目の後には , は付けません。

最終確認日

2024-09-01


2.使用できるコンテキスト

isindex要素 は、
head要素に
1つだけ
配置できます。

isindex要素が使用できるコンテキスト(Context文脈)は、他にisindex要素が配置されていないhead要素コンテンツとしてです。

ただしisindexは、HTML5 で廃止された要素です。HTML4.01 でも非推奨です。inputを用いる事が推奨されます。


3.コンテンツモデル

isindex要素 は、
配置可能なコンテンツは
ありません。

isindex要素子や子孫としてどのようなコンテンツ(Content内容) が含まれなければならないかというと、何もない」 (要素にはテキストノード(要素間の空白以外) と要素ノードが含まれていてはなりません。) です。

isindex要素は、(内容コンテンツContent)を持つことができない空要素です。


4.コンテンツ属性

isindex要素 は、
グローバル属性と、
prompt を
設定できます。

isindex要素に指定することができる属性は、グローバル属性prompt属性 を設定できます。

prompt属性

  1. <isindex prompt="検索フレーズ">

prompt属性 は、単一行のテキスト入力コントロールのラベルにあたる文字列を指定します。


5.DOM インターフェイス


6.アクセシビリティ

isindex要素は、
ARIA in HTML に、
記述はありません。

isindex要素は、HTML5 では廃止された機能です。ARIA in HTML に、この要素の記述はありません。isindex要素を使用する時は、HTML5 以前の機能でアクセシビリティを意識する必要がある訳です。

isindex要素は、代わりにinput要素などを使う事こそが、アクセシビリティを意識した記述になるのではないかと思います。


7.レンダリング

  1. isindex {
  2. display: none;
  3. }

isindex要素ユーザーエージェントレベルスタイルシートデフォルトでは、displayプロパティの値は none であり、この要素とその子孫はボックステキストシーケンスを生成しません。

メタデータを記述する為の要素なので、ビジュアルメディアでボックスを生成する様な指定は行わないのが良いでしょう。 ユーザーエージェントがクエリ文字列を入力する為の 1 行のテキスト入力フィールドを提供する必要がある事を示します。 当然ながらbody要素のコンテンツの位置になるのではないかと思います。


8.気を付ける点

HTML5 で
廃止されています。

isindex要素は、HTML4.01 で非推奨, HTML5 で廃止の要素です。input要素で代用できます。

検索フレーズ
受信用の
ページへ
  1. <form action="./fmreceive.htm">
  2. 検索フレーズ<input name="nipInput" value="abc">
  3. <button name="nbtSender" value="./spisindex.htm">ボタン</button>
  4. <br>受信用の<br>ページへ
  5. </form>

動作環境の都合で、送信先を「受信用のページ」としていますが、考え方としての例示です。isindex要素でもそうですが、送信先に受信したデータで処理をする仕掛けが必要です。なので、実際にはどこに何という名前でデータを送るべきかも含めて書き換える必要があります。