- From: Jonas Sicking <jonas@sicking.cc>
- Date: Tue, 14 Jul 2009 00:43:18 -0700
On Thu, Jun 18, 2009 at 9:33 AM, Smylers<Smylers at stripey.com> wrote: > It also doesn't seem to match browser behaviour: the <ol> element's > start attribute is an integer, so I tried this out in various browsers: > > ?<ol start=+4> > ? ?<li>Plus four > ?</ol> > > All the ones I had to hand (Firefox, Opera, Konqueror, Dillo, Lynx, > Links, and W3M) numbered the element with "4". [snip] > To check that it is specifically the plus sign they are ignoring and not > any non-digit character I also tried: > > ?<ol start=H2SO4> > ? ?<li>Acid test > ?</ol> > > That should cause parsing an integer to abort and so the default of > start=1 to be used. ?Opera, Links, and W3M get that right. ?Konqueror, > Dillo, and Lynx all also seem to manage the aborting, but use a default > of zero instead. ?Firefox parses the "2" out of "H2SO4", seemingly using > the first integer it can find in the attribute, so possibly isn't > special-casing "+". What does IE do in these two examples? It appears webkit treats the first one as start=4 and the second as start=0. / Jonas
Received on Tuesday, 14 July 2009 00:43:18 UTC