Fix col/colspan confusion (regression). b=107453 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@165931 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -247,17 +247,16 @@ nsHTMLTableColElement::IsAttributeMapped(const nsIAtom* aAttribute) const
|
||||
|
||||
static const MappedAttributeEntry* const col_map[] = {
|
||||
attributes,
|
||||
span_attribute,
|
||||
sCommonAttributeMap,
|
||||
};
|
||||
|
||||
static const MappedAttributeEntry* const colspan_map[] = {
|
||||
attributes,
|
||||
span_attribute,
|
||||
sCommonAttributeMap,
|
||||
};
|
||||
|
||||
// we don't match "span" if we're a <col>
|
||||
// XXXldb Should this be reflected in the mapping function?
|
||||
// we only match "span" if we're a <col>
|
||||
if (mNodeInfo->Equals(nsHTMLAtoms::col))
|
||||
return FindAttributeDependence(aAttribute, col_map,
|
||||
NS_ARRAY_LENGTH(col_map));
|
||||
|
||||
Reference in New Issue
Block a user