Fix removeAttributeOnLine: Only remove a single attrib

fixes #2395

might not work in older versions of IE