mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
bug 13526 - allowed cellpadding, cellspacing to be percent value
This commit is contained in:
parent
d7bc730b0d
commit
9557749da7
@ -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…
Reference in New Issue
Block a user