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

virtual nsresult nsIContent::GetAttr ( PRInt32  aNameSpaceID,
nsIAtom *  aName,
nsAString &  aResult 
) const [pure virtual, inherited]

Get the current value of the attribute. This returns a form that is suitable for passing back into SetAttr.

Parameters:
aNameSpaceID the namespace of the attr
aName the name of the attr
aResult the value (may legitimately be the empty string) [OUT]
Exceptions:
NS_CONTENT_ATTR_NOT_THERE if the attribute is not set and has no default value
NS_CONTENT_ATTR_NO_VALUE if the attribute exists but has no value
NS_CONTENT_ATTR_HAS_VALUE if the attribute exists and has a non-empty value (==NS_OK)

Implemented in nsGenericElement, and nsGenericHTMLElement.

Referenced by nsXULTemplateBuilder::AddSimpleRuleBindings(), nsAttributeTextNode::BindToTree(), nsXULTemplateBuilder::CompileBinding(), nsXULTemplateBuilder::CompileExtendedRule(), nsXULTemplateBuilder::CompileMemberCondition(), nsXULTemplateBuilder::CompileSimpleRule(), nsXULTreeBuilder::CompileTreeRowCondition(), nsXULTemplateBuilder::CompileTripleCondition(), nsXULDocument::CreateTemplateBuilder(), nsXULTreeBuilder::EnsureSortVariables(), nsMenuFrame::GetFrameForPoint(), nsFormControlHelper::GetName(), nsXULTreeBuilder::GetTemplateActionCellFor(), nsFormControlHelper::GetValueAttr(), nsFormControlHelper::GetWrapProperty(), and nsXULDocument::RemoveSubtreeFromDocument().


Generated by  Doxygen 1.6.0   Back to index