Visit Mozilla.org

XUL:where

出典: MDC

この記事は Firefox 3 の新機能について述べています

« XUL リファレンス HOME    [ | 属性 | プロパティ | メソッド | 関連項目 ]

テンプレートの結果に一致する条件を指示します。condition が true のとき、対応する action の本体部分が生成されます。そうでない場合、結果は無視され、コンテンツは生成されません。

詳しい情報は Where Elements をご覧ください。

属性
ignorecase, multiple, negate, rel, subject, value

[編集]

(例が必要)

[編集] 属性

ignorecase
型: boolean
条件の大文字と小文字を区別せずに一致させるには、true に設定してください。そうでない場合はデフォルト値の false になり、大文字と小文字が一致していなければなりません。

multiple
型: boolean
value がカンマで区切られた複数の値を含む場合は、true に設定してください。区切られた値のいずれかが一致するでしょう。false の場合、値の文字列全体が比較されます。

negate
型: boolean
比較条件を逆にするには true に設定してください。where 節は条件が偽の場合に一致し、条件が真の場合は一致しません。

rel
型: 下記の値のいずれか一つ
行う比較の形式。
  • equals: subject と value が正確に一致する。
  • less: subject の数値が value よりも小さい。
  • greater: subject の数値が value よりも大きい。
  • before: subject の文字がアルファベット順で value より前。
  • after: subject の文字がアルファベット順で value より後。
  • startswith: subject の値が value で始まる。
  • endswith: subject の値が value で終わる。
  • contains: subject の値の一部に value を含む。

subject
型: string
比較する変数または文字列。

value
型: string
比較する値。

XUL 要素からの継承
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

[編集] プロパティ

XUL 要素からの継承
align, allowEvents, boxObject, builder, className, collapsed, contextMenu, controllers, currentItem, database, datasources, dir, flex, height, hidden, id, left, listBoxObject, maxHeight, maxWidth, menu, minHeight, minWidth, observes, ordinal, orient, pack, persist, ref, resource, statusText, style, tooltip, tooltipText, top, value, width

DOM 要素からの継承
attributes, childNodes, cloneNode, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, tagName

[編集] メソッド

XUL 要素からの継承
blur, click, doCommand, focus, getElementsByAttribute

DOM 要素からの継承
addEventListener, appendChild, dispatchEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS