Client-side validation based on the specification (using js-webshims). Fixes for tests.