bug #68955 (r=vidur, sr=jst, a=choffman) This patch prevents the short-circuit optimization of the image src attribute

This commit is contained in:
rpotts%netscape.com 2001-06-25 06:18:42 +00:00
parent 80e24a55d5
commit 733367d8b8

View File

@ -499,6 +499,10 @@ nsHTMLImageElement::StringToAttribute(nsIAtom* aAttribute,
aResult.SetEmptyValue();
return NS_CONTENT_ATTR_HAS_VALUE;
}
else if (aAttribute == nsHTMLAtoms::src) {
aResult.SetStringValue(aValue);
return NS_CONTENT_ATTR_HAS_VALUE;
}
else if (ParseImageAttribute(aAttribute, aValue, aResult)) {
return NS_CONTENT_ATTR_HAS_VALUE;
}