setAttributes, better verify, and pattern html holder