bug 13526 - allowed cellpadding, cellspacing to be percent value
git-svn-id: svn://10.0.0.236/trunk@47914 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d768a81fb7
commit
650c4f32aa
@ -842,7 +842,7 @@ nsHTMLTableElement::StringToAttribute(nsIAtom* aAttribute,
|
||||
/* attributes that resolve to pixels, with min=0 */
|
||||
if ((aAttribute == nsHTMLAtoms::cellspacing) ||
|
||||
(aAttribute == nsHTMLAtoms::cellpadding)) {
|
||||
if (nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel)) {
|
||||
if (nsGenericHTMLElement::ParseValueOrPercent(aValue, aResult, eHTMLUnit_Pixel)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -842,7 +842,7 @@ nsHTMLTableElement::StringToAttribute(nsIAtom* aAttribute,
|
||||
/* attributes that resolve to pixels, with min=0 */
|
||||
if ((aAttribute == nsHTMLAtoms::cellspacing) ||
|
||||
(aAttribute == nsHTMLAtoms::cellpadding)) {
|
||||
if (nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel)) {
|
||||
if (nsGenericHTMLElement::ParseValueOrPercent(aValue, aResult, eHTMLUnit_Pixel)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user