Support [*|attr], attribute selectors in any namespace (fixes #1558)

This commit is contained in:
Tim Taubert 2014-10-06 16:02:19 +02:00
parent 070b6046aa
commit b9e23563bb
7 changed files with 57 additions and 10 deletions

View file

@ -1,13 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Attribute exists selector: [foo]</title>
<title>Attribute exists selector: [foo] and [*|foo]</title>
<style>
p[data-green] { color: green }
p[*|data-red] { color: red }
</style>
</head>
<body>
<p data-green="">This text should be green.</p>
<p data-red="">This text should be red.</p>
<p>This text should be black.</p>
</body>
</html>

View file

@ -5,6 +5,7 @@
</head>
<body>
<p style="color: green">This text should be green.</p>
<p style="color: red">This text should be red.</p>
<p>This text should be black.</p>
</body>
</html>

View file

@ -5,6 +5,7 @@
</head>
<body>
<p>This text should be green.</p>
<p>This text should be red.</p>
<p>This text should be black.</p>
</body>
</html>