More specific constructor for string or HTMLElement