Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
stringValue は XPathResult インターフェイスの読み取り専用プロパティで、 XPathResult.resultType が STRING_TYPE である結果の文字列値を返します。
メモ: この機能はウェブワーカー内で利用可能です。
返値は Document.evaluate() が返す XPathResult の文字列値です。
XPathResult.resultType が STRING_TYPE でない場合、 TYPE_ERR 型の XPathException が発生します。
次の例では stringValue プロパティを使用しています。
| DOM # dom-xpathresult-stringvalue |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年12月14日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.