:not() selector bug, can't post on Trac
I can't post this on Trac because it's freaking out on me. I
registered an account and logged in, but when I tried to post the bug
I was logged out. So I tried logging in again and it keeps taking me
back to the register page. This happened numerous times. So I'll
post the bug here and hopefully someone can file it for me:
I was trying to write a selector to select all children of a certain
element, with the exception of one. The problem is that it only
returns the children that come BEFORE the first element I want to
exclude, and none of the valid ones that come afterwards. Here are
the two expressions I tried, as well as a block of HTML to reproduce
it:
$("para > *:not(table))
$("para > *").not("table")
The HTML:
<para>Some text. <bold>Some bold text.</bold><table><table.head>Head</
table.head></table><a>yo</a><i>hey there sailor</i><table>data</
table></para>
Using that block of HTML, the only element returned is the BOLD. This
happens with or without the second <table> element.
Using this block, it returns the BOLD, the A, and the I:
<para>Some text. <bold>Some bold text.</bold><a>yo</a><i>hey there
sailor</i><table><table.head>Head</table.head></table></para>
Notice, the only difference is that the A and I come before the first
TABLE, which is the element I wish to exclude.