Bug 762435 - Make <progress> labelable again. r=bz

This commit is contained in:
Mounir Lamouri 2012-06-07 20:41:59 +02:00
parent 80843c1556
commit f7f5b9aa92
2 changed files with 8 additions and 0 deletions

View File

@ -3106,6 +3106,12 @@ nsGenericHTMLElement::GetContextMenu(nsIDOMHTMLMenuElement** aContextMenu)
return NS_OK;
}
bool
nsGenericHTMLElement::IsLabelable() const
{
return Tag() == nsGkAtoms::progress;
}
//----------------------------------------------------------------------
nsGenericHTMLFormElement::nsGenericHTMLFormElement(already_AddRefed<nsINodeInfo> aNodeInfo)

View File

@ -535,6 +535,8 @@ public:
return HasAttr(kNameSpaceID_None, nsGkAtoms::hidden);
}
virtual bool IsLabelable() const;
protected:
/**
* Add/remove this element to the documents name cache