- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Tue, 27 Feb 2001 10:43:23 +0100
- To: fantasai <fantasai@escape.com>
- Cc: www-style@w3.org
* fantasai wrote: ><blockquote> > Adjacent sibling selectors have the following syntax: > E1 + E2, where E2 is the subject of the selector. The > selector matches if E1 and E2 share the same parent in > the document tree and E1 immediately precedes E2. ></blockquote> > >Would E2 be selected by E1 + E2 for ><Parent> > <E1/> > Some text > <E2/> ></Parent> >? Yes, there is no _element_ between E1 and E2. W3C Selectors always select an element and all their text nodes. The current draft is somewhat clearer: [...] 8.3.1 Direct adjacent combinators Direct adjacent combinators are made of the "+" character that separates two sequences of simple selectors. The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. [...] -- Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de 25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e --++~ C_.._a_.._r_.._p_.._e_.._ _.._N_.._o_.._c_.._t_.._e_.._m ~++--
Received on Tuesday, 27 February 2001 04:42:28 UTC