Added checks for html prop in light