- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Wed, 28 Sep 2016 09:16:39 -0700
- To: Steven Pemberton <steven.pemberton@cwi.nl>
- Cc: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Received on Wednesday, 28 September 2016 16:17:27 UTC
For reference after today's call: We decided to deprecate `mediatype` for 2 reasons: - the `mediatype` attribute and the `mediatype` child element were doing completely different things - using `accept` to specify the accepted mediatypes is compatible with HTML So it makes sense to keep the `mediatype` attribute deprecated. If we wanted an attribute to match the child element's function, we could introduce `mediatyperef` and `filenameref`. But I don't think we absolutely need to do this right now. -Erik On Wed, Sep 28, 2016 at 4:35 AM, Steven Pemberton <steven.pemberton@cwi.nl> wrote: > In 8.1 https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The > _XForms_Core_Form_Controls_Module > > For <upload> it says @mediatype (xs:string) [deprecated]. > > Since the addition of AVTs surely this should be de-deprecated: > > <upload ref="mail/attachment" > accept="video/*,image/*,.txt,.pdf" > label="Select attachment:" > mediatype="{@mediatype}"> > <filename ref="@filename"/> > </upload> > > > It looks like filename should be an optional attribute as well. > > Steven > >
Received on Wednesday, 28 September 2016 16:17:27 UTC