Fixed up argument parsing issue with table align=left/right (bug 7352)
git-svn-id: svn://10.0.0.236/trunk@48433 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -170,7 +170,7 @@ nsHTMLTableColGroupElement::StringToAttribute(nsIAtom* aAttribute,
|
||||
|
||||
/* other attributes */
|
||||
else if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseTableHAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseTableCellHAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ nsHTMLTableColGroupElement::AttributeToString(nsIAtom* aAttribute,
|
||||
choff, repeat
|
||||
*/
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::TableHAlignValueToString(aValue, aResult)) {
|
||||
if (mInner.TableCellHAlignValueToString(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user