CSS a go go
Ran into some weirdness just now while reading the basic but well put together intro to haskell http://yannesposito.com/Scratch/en/blog/Haskell-the-Hard-Way
me: jump to 3.2.4
me: and see if you can spot that oh so rare bug that wouldn't be picked up by the compiler
mate: 3.2.4?
mate: heading?
me: search for 3.2.4
me: "Trees" is a bit general
mate: 0 hits
me: the fuck..
So…
<h4 id="trees">Trees</h4>
No 3.2.4 mentioned anywhere in the html. Ok. Check the CSS.
.article #afterheader h4::before {
content: counter(niv02)"."counter(niv03)"."counter(niv04)". ";
}
I don’t know whether to be impressed by this or horrified. On the one hand, aint CSS cool these days? On the other, I can’t rely on these section numbers, and at least in Chrome I can’t search for them or copy+paste them either. I think that section numbers probably fall more under content than structure.