Bug 27810

Summary: Illegal values for <ol start> cause list numbering start at 0 (should start at 1)
Product: WebKit Reporter: Darin Adler <darin>
Component: DOMAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch mitz: review+

Description Darin Adler 2009-07-29 12:52:54 PDT
Hixie recently mentioned this on the whatwg list. IE and the HTML 5 specification both agree that if the start attribute of an ordered list element has a value that can't be parsed, list numbering should start with 1 as if the start attribute was not present at all. Easy to fix.
Comment 1 Darin Adler 2009-07-29 14:17:48 PDT
Created attachment 33742 [details]
patch
Comment 2 Darin Adler 2009-07-29 16:29:16 PDT
Sending        LayoutTests/ChangeLog
Adding         LayoutTests/fast/lists/ol-start-parsing.html
Adding         LayoutTests/platform/mac/fast/lists/ol-start-parsing-expected.checksum
Adding  (bin)  LayoutTests/platform/mac/fast/lists/ol-start-parsing-expected.png
Adding         LayoutTests/platform/mac/fast/lists/ol-start-parsing-expected.txt
Sending        WebCore/ChangeLog
Sending        WebCore/html/HTMLOListElement.cpp
Transmitting file data .......
Committed revision 46561.
http://trac.webkit.org/changeset/46561