I made a testcase for the bug I wrote about yesterday. Ian Hixie wrote:
per WG, if there is no fragment identifier, the :target pseudo-class matches the root element.
So the code in my post yesterday was correct. I made this testcase about it: Document sans titre [extended].