1--TEST--
2CSS Selectors - Pseudo classes: lang
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8require __DIR__ . '/test_utils.inc';
9
10$dom = DOM\XMLDocument::createFromString(<<<XML
11<container lang="en">
12    <p>1</p>
13    <html xmlns="http://www.w3.org/1999/xhtml" lang="nl">
14        <p>2</p>
15    </html>
16</container>
17XML);
18
19test_failure($dom, ':lang(en)', true);
20test_failure($dom, ':lang(nl)', true);
21
22?>
23--EXPECT--
24--- Selector: :lang(en) ---
25Code 12 Invalid selector (Selectors. Not supported: lang)
26--- Selector: :lang(nl) ---
27Code 12 Invalid selector (Selectors. Not supported: lang)
28