Add support for hidden elements