Created attachment 51005 [details] Testcase This test fails: http://samples.msdn.microsoft.com/ietestcenter/css3/selectors/ValidWhitespace.htm
Created attachment 77859 [details] Patch Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
Comment on attachment 77859 [details] Patch Changing the tokenizer but not updating CSSSelector::RareData::parseNth is not going to work correctly. It seems the test case here was insufficient to detect that. Please work on a patch that changes both the tokenizer and the parser to allow spaces!
(In reply to comment #2) > (From update of attachment 77859 [details]) > Changing the tokenizer but not updating CSSSelector::RareData::parseNth is not going to work correctly. It seems the test case here was insufficient to detect that. Please work on a patch that changes both the tokenizer and the parser to allow spaces! Thank you for your review, Darin. I was under the impression that CSSSelector::RareData::parseNth already allows the spaces, but I could be wrong. CSSSelector::RareData::parseNth uses String::find() to find the sign + or -, and does not assume that the sign follows immediately after n. CSSSelector::RareData::parseNth uses String::toInt() to find the value of b, and that already knows how to skip leading spaces. Do you have a specific case in mind that could fail ?
RareData::parseNth() looks like it deals with whitespace OK. Darin, are you OK with the patch?
(In reply to comment #3) > I was under the impression that CSSSelector::RareData::parseNth already allows the spaces You are right. Sorry, I was wrong!
The commit-queue encountered the following flaky tests while processing attachment 77859 [details]: http/tests/appcache/progress-counter.html bug 51913 (author: michaeln@google.com) The commit-queue is continuing to process your patch.
Comment on attachment 77859 [details] Patch Clearing flags on attachment: 77859 Committed r75039: <http://trac.webkit.org/changeset/75039>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/75039 might have broken Leopard Intel Debug (Tests)