Add an element as context source to an HTML element.