private static bool AddRange(RangeBuilder builder, String left, String right) { int l = Convert.ToInt32(left, 16); int r = Convert.ToInt32(right, 16); if (l > r || r > 1114111) { // Although Firefox follows the spec (and therefore the second condition), it seems it's ignored in Chrome or Edge return(false); } builder.AddRange(l, r); return(true); }