parse valueless attributes (e.g. itemscope)

And allow nested tags, which was a newly encountered bug