html/element: fix up some standard helpers