handle optional text and attrib writes, start plugging in whitelist for dynamic data attribs