Fix cid: prefix issue, gjslint issues, and test with DOMParser