Added the possibility to specify the enclosing html element

--HG--
extra : rebase_source : 45fcbcf60ac1a95de69ad8272321b3d35556218b