MDL-38885 form: Advanced type checking on special elements