more conservative checks in getter and setter dom methods