diff options
author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/xpathexpression/index.md | |
parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/xpathexpression/index.md')
-rw-r--r-- | files/fr/web/api/xpathexpression/index.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/files/fr/web/api/xpathexpression/index.md b/files/fr/web/api/xpathexpression/index.md new file mode 100644 index 0000000000..7a6d6ce42d --- /dev/null +++ b/files/fr/web/api/xpathexpression/index.md @@ -0,0 +1,20 @@ +--- +title: XPathExpression +slug: Web/API/XPathExpression +tags: + - API + - DOM + - Document + - XPath +translation_of: Web/API/XPathExpression +--- +<p>{{APIRef}}</p> + +<p>Une <code>XPathExpression</code> est une requête de XPath compilé renvoyée par {{domxref("document.createExpression()")}}. Elle a une méthode <code>evaluate()</code> qui peut être utilisée pour exécuter le XPath compilé.</p> + +<h2 id="Methods">Méthodes</h2> + +<ul> + <li>evaluate (<code>contextNode</code>, <code>type</code>, <code>result</code>) - fournit un noeud / document contextuel, une constante {{domxref("XPathResult")}} et <code>XPathResult</code> pour stocker la requête ou null pour renvoyer un nouveau XPathResult.</li> + <li>evaluateWithContext (<code>contextNode</code>, <code>contextPosition</code>, <code>contextSize</code>, <code>type</code>, <code>result</code>) - fournit un noeud / document, une position et une taille contextuels, une constante <code>XPathResult</code> et un <code>XPathResult</code> pour stocker la requête ou null pour renvoyer un nouveau XPathResult.</li> +</ul> |