<html>
<head>
<meta http-equiv="Content-Type" content=" text/html; charset=utf-8"/>
<title>This is a very basic page</title>
</head>
<body>
<div id="container">
<div id="header">
<img src="mylogo.png" id="logo"/>
</div>
<div id="contents" class="box anotherclass">
<h2>This page is cool</h2>
<p>This page should be XHTML valid because : </p>
<ul>
<li class="box">It respects standarts</li>
<li>It's written by me</li>
<li>It's simple</li>
</ul>
</div>
<p>This is <i>a test <u>of serialisation</u> for <code>$this->get("text")</code></i>, another node</p>
</div>
</body>
</html>
<? $url_file = http://selectors.svn.exyks.org/file.htm $doc = simplexml_load_file($url_file, "Element"); $second_reason = $doc->getElement(".box+li"); ?>
| Rule | Assert | Result | Status |
|---|---|---|---|
| body | 1 | 1 | pass |
| html body | 1 | 1 | pass |
| html body body | 0 | 0 | pass |
| html body div | 3 | 3 | pass |
| html>body>div | 1 | 1 | pass |
| html>div | 0 | 0 | pass |
| html#container | 0 | 0 | pass |
| #container | 1 | 1 | pass |
| div#header li | 0 | 0 | pass |
| .box | 2 | 2 | pass |
| .box.anotherclass | 1 | 1 | pass |
| *[content*=" text/html; "] | 1 | 1 | pass |
| li~li | 2 | 2 | pass |
| .box+li | 1 | 1 | pass |
| li:first-child | 1 | 1 | pass |
| li:last-child | 1 | 1 | pass |
| li:odd | 1 | 1 | pass |
| li:even | 2 | 2 | pass |
| li:not(.box) | 2 | 2 | pass |