RESOLVED FIXED 39335
Implement the DOCTYPE states for the HTML5 lexer
https://bugs.webkit.org/show_bug.cgi?id=39335
Summary Implement the DOCTYPE states for the HTML5 lexer
Adam Barth
Reported 2010-05-18 17:15:08 PDT
Implement the DOCTYPE states for the HTML5 lexer
Attachments
work in progress (6.43 KB, patch)
2010-05-18 17:15 PDT, Adam Barth
no flags
Patch (12.41 KB, patch)
2010-05-18 19:43 PDT, Adam Barth
eric: review+
Adam Barth
Comment 1 2010-05-18 17:15:59 PDT
Created attachment 56431 [details] work in progress
Adam Barth
Comment 2 2010-05-18 19:43:30 PDT
Eric Seidel (no email)
Comment 3 2010-05-18 19:47:56 PDT
Comment on attachment 56441 [details] Patch Totally need an isWhitespace function. default: 1190 ASSERT_NOT_REACHED(); 1191 break; 1192 } very bad. :p We want the compiler to warn if we're missing an enum value.
WebKit Review Bot
Comment 4 2010-05-18 19:48:43 PDT
Attachment 56441 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebCore/html/HTML5Lexer.cpp:935: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/HTML5Lexer.cpp:966: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/HTML5Lexer.cpp:1001: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/HTML5Lexer.cpp:1115: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/HTML5Lexer.cpp:1163: An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] Total errors found: 5 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Adam Barth
Comment 5 2010-05-18 19:57:50 PDT
Note You need to log in before you can comment on or make changes to this bug.