handle prop=null and class=... cases