blob: 130783d43d4e3e89ed384f6c5a549a1553dbf7ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
---
title: contains
slug: Web/XPath/Functions/contains
translation_of: Web/XPath/Functions/contains
original_slug: Web/XPath/Fonctions/contains
---
{{ XsltRef() }}
La fonction `contains` détermine si la chaîne passée en premier argument contient la chaîne passée en second argument et retourne le booléen `true` ou `false`.
### Syntaxe
contains( meule , aiguille )
### Arguments
- `meule`
- : La chaîne dans laquelle chercher.
<!---->
- `aiguille`
- : La chaîne à rechercher dans `meule`
### Retour
`true` si `meule` contient `aiguille`. Autrement, `false`.
### Définition
[XPath 1.0, section 4.2](http://www.w3.org/TR/xpath#function-contains).
### Support Gecko
Supportée.
|