Gambas Documentation - /comp/gb.xml.html/xmlelement/matchfilter

/comp/gb.xml.html/xmlelement/matchfilter

# XmlElement.MatchFilter (gb.xml.html)

Function MatchFilter ( Filter As String ) As Boolean

Returns if this element matches the given CSS Filter (i.e. a combination of CSS selectors).

The following CSS selectors are currently supported :

(see the W3Schools CSS Selector Reference for a description for each of the following selectors)

- `.class`

- `#id`

- `*`

- `element`

- `element , element`

- `element element`

- `element > element`

- `element + element`

- `[attribute]`

- `[attribute="value"]`

- `[attribute~="value"]`

- `[attribute^="value"]`

- `[attribute$="value"]`

- `[attribute*="value"]`

- `:first-child`

- `:last-child`