On 3/27/13 8:00 AM, [email protected] wrote:
In nsScriptLoader::ProcessRequest I wish to gain access to the values of the class attribute of the current script tag and analyse them. What would be the best/easiest way to do this?
Change the type of "scriptElem" to nsCOMPtr<Element>, and then use either scriptElem->GetAttr() or scriptElem->GetClassList() depending on whether you want the string or the tokenized version.
-Boris _______________________________________________ dev-security mailing list [email protected] https://lists.mozilla.org/listinfo/dev-security
