Bug 679653 - Makes li.value follow rules for integer reflection. r=mounir
authorAtul Aggarwal <atulagrwl@gmail.com>
Wed, 31 Aug 2011 12:34:07 +0200
changeset 76265 2ace1d703abeac6d947f85363c96d26ee4b35df7
parent 76261 c7e6f57e173220fddbd6a0542df2f2d03465edae
child 76266 7a8b51e5be412ea0ac1662ed36b53ca4ee939f73
push id147
push usertim.taubert@gmx.de
push dateThu, 01 Sep 2011 12:02:38 +0000
treeherderfx-team@7d3d1c2c75f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs679653
milestone9.0a1
Bug 679653 - Makes li.value follow rules for integer reflection. r=mounir
content/html/content/src/nsHTMLLIElement.cpp
--- a/content/html/content/src/nsHTMLLIElement.cpp
+++ b/content/html/content/src/nsHTMLLIElement.cpp
@@ -135,17 +135,17 @@ nsHTMLLIElement::ParseAttribute(PRInt32 
 {
   if (aNamespaceID == kNameSpaceID_None) {
     if (aAttribute == nsGkAtoms::type) {
       return aResult.ParseEnumValue(aValue, kOrderedListItemTypeTable,
                                     PR_TRUE) ||
              aResult.ParseEnumValue(aValue, kUnorderedListItemTypeTable, PR_FALSE);
     }
     if (aAttribute == nsGkAtoms::value) {
-      return aResult.ParseIntWithBounds(aValue, 0);
+      return aResult.ParseIntValue(aValue);
     }
   }
 
   return nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
                                               aResult);
 }
 
 static void