зеркало из https://github.com/mozilla/gecko-dev.git
made query for attributes in other namespaces legal, just not work
This commit is contained in:
Родитель
784f0c9bee
Коммит
6c8f1b966b
|
@ -784,15 +784,17 @@ nsresult
|
|||
nsGenericHTMLElement::GetAttribute(PRInt32 aNameSpaceID, nsIAtom *aAttribute,
|
||||
nsString &aResult) const
|
||||
{
|
||||
#if 0
|
||||
NS_ASSERTION((kNameSpaceID_HTML == aNameSpaceID) ||
|
||||
(kNameSpaceID_None == aNameSpaceID) ||
|
||||
(kNameSpaceID_Unknown == aNameSpaceID),
|
||||
"html content only holds HTML attributes");
|
||||
#endif
|
||||
|
||||
if ((kNameSpaceID_HTML != aNameSpaceID) &&
|
||||
(kNameSpaceID_None != aNameSpaceID) &&
|
||||
(kNameSpaceID_Unknown != aNameSpaceID)) {
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
return NS_CONTENT_ATTR_NOT_THERE;
|
||||
}
|
||||
|
||||
nsHTMLValue value;
|
||||
|
|
|
@ -784,15 +784,17 @@ nsresult
|
|||
nsGenericHTMLElement::GetAttribute(PRInt32 aNameSpaceID, nsIAtom *aAttribute,
|
||||
nsString &aResult) const
|
||||
{
|
||||
#if 0
|
||||
NS_ASSERTION((kNameSpaceID_HTML == aNameSpaceID) ||
|
||||
(kNameSpaceID_None == aNameSpaceID) ||
|
||||
(kNameSpaceID_Unknown == aNameSpaceID),
|
||||
"html content only holds HTML attributes");
|
||||
#endif
|
||||
|
||||
if ((kNameSpaceID_HTML != aNameSpaceID) &&
|
||||
(kNameSpaceID_None != aNameSpaceID) &&
|
||||
(kNameSpaceID_Unknown != aNameSpaceID)) {
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
return NS_CONTENT_ATTR_NOT_THERE;
|
||||
}
|
||||
|
||||
nsHTMLValue value;
|
||||
|
|
Загрузка…
Ссылка в новой задаче