html: move some headers to detail namespace