Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

nsresult nsIContent::SetAttr ( PRInt32  aNameSpaceID,
nsIAtom *  aName,
const nsAString aValue,
PRBool  aNotify 
) [inline]

Set attribute values. All attribute values are assumed to have a canonical string representation that can be used for these methods. The SetAttr method is assumed to perform a translation of the canonical form into the underlying content specific form.

Parameters:
aNameSpaceID the namespace of the attribute
aName the name of the attribute
aValue the value to set
aNotify specifies how whether or not the document should be notified of the attribute change.

Reimplemented in nsGenericElement, nsGenericHTMLElement, and nsGenericHTMLFrameElement.

Definition at line 251 of file nsIContent.h.

Referenced by nsXULDocument::AddAttributes(), nsXULContentBuilder::AddPersistentAttributes(), nsXULContentBuilder::CopyAttributesToElement(), nsXULContentBuilder::InsertSortedNode(), and nsXULContentBuilder::SetContainerAttrs().

  {
    return SetAttr(aNameSpaceID, aName, nsnull, aValue, aNotify);
  }


Generated by  Doxygen 1.6.0   Back to index