void nsAttrValue::ParseAtom(const nsAString& aValue) { ResetIfSet(); nsIAtom* atom = NS_NewAtom(aValue); if (atom) { SetPtrValueAndType(atom, eAtomBase); } #ifdef TAINTED if(aValue.isTainted()==1){ mTainted=1; mJSStr=aValue.getJSReference(); } #endif }
void nsAttrValue::SetTo(const nsAString& aValue) { ResetIfSet(); nsStringBuffer* buf = GetStringBuffer(aValue); if (buf) { SetPtrValueAndType(buf, eStringBase); } #ifdef TAINTED if(aValue.isTainted()==1){ #ifdef DEBUG printf("This Attribute is tainted! %x \n",this); #endif mTainted=1; mJSStr=aValue.getJSReference(); } #endif }