← Back to team overview

mahara-contributors team mailing list archive

[Bug 912028] Re: Add HTML5 client-side validation to pieforms

 

Having done some more testing on this - the html5 way of doing 'required' on a field is not as good as the current way.
It alerts you to a field needing filling in but if you scroll up/down the overlaid quote box moves with the scroll in FF.

Also I believe the behaviour of some of the HTML elements vary amongst
supported browsers. So if we are going to shift to using HTML5 rather
than our inbuilt way of handling these things we will need to take that
into account.

Things that will need to be dealt with when switching to HTML5:

* The changing of the doctype from 'html transitional 4.01' to 'html'
could muck up a bunch of css styles.

* The HTML way of doing things could be worse than the current js/css
way.

* The htmlpurifier doesn't seem to want to accept the 'DOCTYPE html'
option by the looks of some Internet searches I did.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/912028

Title:
  Add HTML5 client-side validation to pieforms

Status in Mahara ePortfolio:
  Triaged

Bug description:
  HTML5 adds new attributes on form elements to enable some basic
  client-side form validation:

    http://www.marcozehe.de/2011/12/05/from-wai-aria-to-html5-and-back-
  or-maybe-not/

  We should add that to pieforms so that all of our forms get it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/912028/+subscriptions


References