> If /node/ is an element and either /parent/ has an element child or
> /child/ is not null and a doctype is following /child/, throw a
> "HierarchyRequestError" and terminate these steps.
This wants to include the case where the doctype *is* /child/.
(Same for the fragment case before that.)
Well this was annoying.