[Webkit-unassigned] [Bug 16696] JSCRE fails fails to match Acid3 regexp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 1 09:49:33 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16696





------- Comment #1 from darin at apple.com  2008-01-01 09:49 PDT -------
There may be a problem with the test here; it looks to me like that expression
requires three "a" characters in a row, so the test string would need to be
"caaat".

But also, our regular expression engine has a bug (and IE shares the bug, which
is one reason I didn't fix it), where we don't recognize the \3 as a
backreference because it's a forward reference. At the time we process it we
don't know that there are 3 capturing brackets in the expression, so we treat
it as an octal escape. To fix that we'll need to scan the regular expression
for the number of brackets first before we do other computations on it. A
simpler test case is just:

    /\1(a)/.exec('aa')

Which will return null in Safari, but should return "a,a".


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list