mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fixed the bug in lang() as raised by Elliotte Rusty Harold added a
* xpath.c: fixed the bug in lang() as raised by Elliotte Rusty Harold * result/XPath/tests/langsimple test/XPath/tests/langsimple test/XPath/docs/lang: added a regression test Daniel
This commit is contained in:
13
test/XPath/docs/lang
Normal file
13
test/XPath/docs/lang
Normal file
@@ -0,0 +1,13 @@
|
||||
<doc>
|
||||
<x>1</x>
|
||||
<b xml:lang="en">
|
||||
<x>en</x>
|
||||
<x>3</x>
|
||||
</b>
|
||||
<x>4</x>
|
||||
<para xml:lang="en"/>
|
||||
<div xml:lang="en"><para/></div>
|
||||
<para xml:lang="EN"/>
|
||||
<para xml:lang="en-us"/>
|
||||
<para xml:lang="EN-US"/>
|
||||
</doc>
|
5
test/XPath/tests/langsimple
Normal file
5
test/XPath/tests/langsimple
Normal file
@@ -0,0 +1,5 @@
|
||||
//*[lang('en')]
|
||||
//*[lang('en-us')]
|
||||
//*[lang('en-gb')]
|
||||
//*[lang('fr')]
|
||||
//*[lang('')]
|
Reference in New Issue
Block a user