[Webkit-unassigned] [Bug 104358] base64DecodeInternal() is not conforming to HTML5(window.atob) spec.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 10 08:50:44 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=104358
--- Comment #4 from Sanghyun Park <sh919.park at samsung.com> 2012-12-10 08:53:09 PST ---
Thanks for your kind concern. I have tried double-checking to make sure about mismatching between TC and Spec.
Failed 14 test cases which are proper. However, 2 failed TCs have below bugs.
Let atob("ab="). (- this test is contained the "http://w3c-test.org/html/tests/approved/base64.htm")
According to No. 4 of aboved spec,
Because length of "ab=" is not divisible by 4, cannot remove the "=".
According to No. 6 of aboved spec,
"=" is not in the following list of characters and character ranges("+" (U+002B), "/" (U+002F), ASCII digits, uppercase ASCII letters and lowercase ASCII letters).
So,should throw an InvalidCharacterError exception and abort.
but in Webkit, do not following No. 4 spec and always remove ends with "=" characters, so do not throw an error.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list