Validating number

17 Mar

As @groner has pointed out, that is what the spec says to do.Although technically Chrome also shouldn't allow the input field to contain non-valid data.This is why the number error is never being raised, since it's an empty string, which is perfectly valid.I'm happy to contribute a patch to try to solve this, but would love to get some general direction from core Angular developers as to the general strategy I should use to tackle this. You could also create a simple number type directive yourself that follows the spec and use that.After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads. Such code can now do no harm and is safe to be displayed on a page or inside an e-mail. if quotes are escaped with a slash \ let's remove that.

This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at

Please register to participate in our discussions with 2 million other members - it's free and quick!

Some forums can only be seen by registered members.

Please refer to the errata for this document, which may include some normative corrections.

The previous errata for this document, are also available. This document is also available in these non-normative formats: XML and XHTML with color-coded revision indicators.