blob: 6b44280737ab254649036ff50808b764bc87cc67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<title>Class selectors in an XML namespace</title>
<link rel="author" href="mailto:masonf@chromium.org" />
<body>
<p>The .class selector should work in any namespace. Both boxes should be green.</p>
<Boxes xmlns="http://foo">
<box>.classname selector</box>
<box>*[class~="classname"] selector</box>
</Boxes>
<style>
box {background:green;}
</style>
</body>
</html>
|