:empty selector
tests.lisp
Mon Jan 4 06:32:27 UTC 2010 pix@kepibu.org
* :empty selector
--- old-Oh, Ducks!/tests.lisp 2015-11-15 15:46:52.000000000 +0000
+++ new-Oh, Ducks!/tests.lisp 2015-11-15 15:46:52.000000000 +0000
@@ -87,6 +87,11 @@
"<div>I <i>really</i> <b>like</b> cheese. Do you not <i>dislike</i> cheese?</div>")
(values i))
+(match (#T(html (:model pt)
+ ("body :empty" . ?empty))
+ "<div><p><br></p><p>testing<i>i</i>testing</p></div>")
+ (values empty))
+
;; Sometimes, you want to match a thing inside a thing, in which case
;; combinators should implicitly assume an unspecified right side means
;; "whatever element I gave you".