Marius Feraru a écrit :
> Ken Snyder wrote:
>>> And :empty seems tricky in XPath too. 
> .//*[not(text())] should do the trick, but don't mind me, I'm already
> zzzzound asleep (:|

It's good, if it *were* CSS3's definition of empty.  CSS3 def of empty
requires no child element, nor non-empty child text nodes, the way I
read it.  We don't even look at descendants.

So Ken's current implementation in JS is not quite right (as we must
ignore PI's, comments, and the like), and this XPath isn't, either.

I'm on it, though :-)  It's fairly simple, both XPath and JS.


-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to