Every now and then I get caught by this little gotcha, so I figured I’d share and hopefully by writing about it, I’ll remember to do this right. Let’s start with a little something simple, shall we? let $seq := (1 to 100) return $seq[10] Simple, as promised. I create a sequence of numbers from [...]
I came across an interesting little gotcha today while working with CSS’ adjacent sibling selectors. First, a quick intro, in case you’re not familiar with them. <div class=”content”> <h1>Big News</h1> <p>Intro paragraph.</p> <p>Meaningless drivel</p> </div> Sibling selectors let you apply styles to an element based on what it’s next to, rather than the usual way [...]