[WSG] CSS, the DOM and whitespace (rant)

2007-08-16 Thread Keryx Web
Hi again! CSS considers only element nodes to be children or siblings. The DOM does not. This is a pedagogic discrepancy understandable to people used in traversing the DOM who are frustrated that MSIE is natural with nextSibling and that the rest are according to spec.[1] Something that

Re: [WSG] CSS, the DOM and whitespace (rant)

2007-08-16 Thread liorean
On 16/08/07, Keryx Web [EMAIL PROTECTED] wrote: CSS considers only element nodes to be children or siblings. The DOM does not. Actually, selectors considers ONLY elements, never text nodes or entity references (or comments, or PIs, or CDATA blocks or whatever). Selectors work on the element