Wowpedia
Advertisement
Links

Modifies a script attribute on a frame.

Frame:SetAttribute(name, value)
Frame:SetAttributeNoHandler(name, value)

Arguments

name 
string - The name of the attribute to be modified.
value 
any - The value to be stored.

Details

  • Attributes are typically used to launder values from insecure code to a protected or restricted environment, as described in Secure Execution and Tainting. They should not be confused with XML attributes.
  • Attribute names are case-insensitive.
  • Calling Frame:SetAttribute() triggers the OnAttributeChanged script handler.


Patch changes

  • Shadowlands Patch 9.2.0 (2022-02-22): Added suppressScriptHandler parameter. Later removed in hotfix build 42488 on 25 Feb 2022, replaced by the addition of Frame:SetAttributeNoHandler().
  • Bc icon.gif Patch 2.0.1 (2006-12-05): Added.
Advertisement