(Please disregard this email if you already received a copy of it)

How should overflow be handled when parsing integers?

Step 8 of the parsing algorithm in both 
<http://dev.w3.org/html5/spec/Overview.html#rules-for-parsing-integers> and 
<http://dev.w3.org/html5/spec/Overview.html#non-negative-integers> doesn't 
mention how to handle integer overflow when interpreting the result of a 
sequence of base-ten integers.

Currently in WebKit we consider such overflow a parsing error. Is there any 
reason not to consider overflow a parsing error? Regardless, I suggest 
codifying the handling of overflow in the aforementioned sections.

This issue came up recently in WebKit with respect to the parsing of the 
maxlength attribute (https://bugs.webkit.org/show_bug.cgi?id=68981). 

Dan

Reply via email to