#582: html_form_delegator.js, implement ternary operators