Thanks for finishing that off Joel. :) Karl Rudd
On 9/6/07, Joel Birch <[EMAIL PROTECTED]> wrote: > > ...so in browsers that do the error correction on this invalid markup, > if you wrote this invalid HTML: > > <ul> > <li>Blah</li> > <li>Blah</li> > <ul> > <li>Blah</li> > </ul> > </ul> > > and then wrote this jQuery code: > > $('ul>ul').doSomething(); > > you could not rely on it working, even though your HTML looks like it > should, because before you jQuery code runs, the browser may have > already corrected you invalid markup to look like this valid HTML: > > <ul> > <li>Blah</li> > <li>Blah</li> > <li> > <ul> > <li>Blah</li> > </ul> > </li> > </ul> > > so the nested ul is no longer a direct child of the outer ul, and > ul>ul will not select it. > > Joel Birch. >