duke-libraries / course-assets

Hydra-based application for archiving course assets
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

'required' attribute in Sufia forms only partially supported in Safari #105

Open coblej opened 10 years ago

coblej commented 10 years ago

http://caniuse.com/#search=required

"Partial support in Safari refers to lack of notice when form with required fields is attempted to be submitted."

dchandekstark commented 10 years ago

@coblej Was this issue created to propose some action?

coblej commented 10 years ago

@dchandekstark No particular action, other than to make note of it and probably to make the project team aware of it (and likely discuss it with them). I think it comes down to how much effort we want to expend accommodating this one particular browser.

jimtuttle commented 10 years ago

@dchandekstark I wasn't aware that any browsers supported required fields in forms without the use of Javascript or similar technology. So, I assume this means that Safari users will be able to submit items without required metadata elements unless we do something special. Is that right?

coblej commented 10 years ago

@jt112 As I understand it, browsers that fully implement HTML5 understand and can respond appropriately with a "required='true'" attribute. If the field is empty, the browser refuses to submit the form and pops an error message up for the (first) empty required field. Most browsers support this. Safari, however, only partially supports it. If you leave a "required='true'" field empty in Safari, it refuses to submit the form but it does not pop up the error message.

dchandekstark commented 10 years ago

@jt112 Yes, @coblej is right. Safari is the only major browser that does not provide a visual clue to the user that the form was not submitted due to missing required field(s).

jimtuttle commented 10 years ago

Well, that's a bummer.