spec/fixtures/form.html in xpath-0.1.0 vs spec/fixtures/form.html in xpath-0.1.1
- old
+ new
@@ -1,7 +1,64 @@
<h1>Form</h1>
+<p>
+ <a id="awesome-link" href="#link">An awesome link</a>
+ <a id="some-id" href="#id">With id</a>
+ <a title="My title" href="#title">A cool title</a>
+ <a href="#image"><img src="foo.png" alt="Alt link"/></a>
+ <a title="This title is too long" href="#bar">A link at a time</a>
+ <a title="This title" href="#foo">A link</a>
+ <a href="#bar"><img src="foo.png" alt="An image that is beautiful"/></a>
+ <a href="#foo"><img src="foo.ong" alt="An image"/></a>
+ <a>Wrong Link</a>
+ <a href="#spacey"> My
+
+ whitespaced
+ link</a>
+ <a href="#has-children">
+ An <em>emphatic</em> link with some children
+ </a>
+</p>
+
+<p>
+ <input type="submit" id="submit-with-id" data="id-submit" value="Has ID"/>
+ <input type="submit" value="submit-with-value" data="value-submit"/>
+ <input type="submit" value="not exact value submit" data="not-exact-value-submit"/>
+ <input type="submit" value="exact value submit" data="exact-value-submit"/>
+
+ <input type="button" id="button-with-id" data="id-button" value="Has ID"/>
+ <input type="button" value="button-with-value" data="value-button"/>
+ <input type="button" value="not exact value button" data="not-exact-value-button"/>
+ <input type="button" value="exact value button" data="exact-value-button"/>
+
+ <input type="image" id="imgbut-with-id" data="id-imgbut" value="Has ID"/>
+ <input type="image" value="imgbut-with-value" data="value-imgbut"/>
+ <input type="image" alt="imgbut-with-alt" data="alt-imgbut"/>
+ <input type="image" value="not exact value imgbut" data="not-exact-value-imgbut"/>
+ <input type="image" value="exact value imgbut" data="exact-value-imgbut"/>
+
+ <button id="btag-with-id" data="id-btag" value="Has ID"/>
+ <button value="btag-with-value" data="value-btag"/>
+ <button value="not exact value btag" data="not-exact-value-btag"/>
+ <button value="exact value btag" data="exact-value-btag"/>
+
+ <button data="text-btag">btag-with-text</button>
+ <button data="not-exact-text-btag">not exact text btag</button>
+ <button data="exact-text-btag">exact text btag</button>
+
+ <button data="btag-with-whitespace"> My
+
+ whitespaced
+ button</button>
+ <button href="btag-with-children">
+ An <em>emphatic</em> button with some children
+ </button>
+
+ <input type="schmoo" value="schmoo button" data="schmoo"/>
+</p>
+
+
<form action="/form" method="post">
<p>
<label for="form_title">Title</label>
<select name="form[title]" id="form_title">
@@ -30,11 +87,11 @@
<p>
<label for="form_last_name">Last Name</label>
<input type="text" name="form[last_name]" value="Smith" id="form_last_name"/>
</p>
-
+
<p>
<label for="form_name_explanation">Explanation of Name</label>
<textarea name="form[name_explanation]" id="form_name_explanation"></textarea>
</p>
@@ -45,11 +102,11 @@
<p>
<label for="form_schmooo">Schmooo</label>
<input type="schmooo" name="form[schmooo]" value="This is Schmooo!" id="form_schmooo"/>
</p>
-
+
<p>
<label>Street<br/>
<input type="text" name="form[street]" value="Sesame street 66"/>
</label>
</p>
@@ -72,11 +129,11 @@
<p>
<label for="form_image">Image</label>
<input type="file" name="form[image]" id="form_image"/>
</p>
-
+
<p>
<input type="hidden" name="form[token]" value="12345" id="form_token"/>
</p>
<p>
@@ -194,11 +251,11 @@
<p>
<label for="form_document">Document</label>
<input type="file" name="form[document]" id="form_document"/>
</p>
-
+
<p>
<input type="submit" value="Upload"/>
<p>
</form>
@@ -227,10 +284,10 @@
</p>
<p>
<label for="html5_color">Html5 Color</label>
<input type="color" name="form[html5_color]" value="#FFF" id="html5_color"/>
</p>
-
+
<p>
<input type="submit" name="form[html5_submit]" value="html5_submit"/>
</p>
</form>