W3C home > Mailing lists > Public > public-forms@w3.org > April 2014

Re: Inconsistent description of attributes on <label> etc.

From: Erik Bruchez <erik@bruchez.org>
Date: Wed, 9 Apr 2014 09:59:35 -0700
Message-ID: <CAAc0PEWt9K+SyAuhwogxoutXZX=h=_N+tALG2kXodYiae-ZjdA@mail.gmail.com>
To: Steven Pemberton <Steven.Pemberton@cwi.nl>
Cc: Forms WG <public-forms@w3.org>
Do you mean:

1. Should <alert> support @appearance at all?
2. Or should <alert appearance="minimal"> mean the same thing as for
<label> and <hint>?

I think <alert> and <help> too should support @appearance, but we
don't have to specify a behavior for <alert appearance="minimal">.

The reason <label appearance="minimal"> and <hint
appearance="minimal"> work if they produce HTML placeholders is that
it's ok if the label or hint disappears once the user starts typing.
But for alert, it's not ok: if you have an invalid value and you
cannot see the alert message, it's always pointless. It would only
makes sense if the alert shows only when the control value is empty.


On Wed, Apr 9, 2014 at 8:37 AM, Steven Pemberton
<Steven.Pemberton@cwi.nl> wrote:
> But not <alert>?
> Steven
> On Wed, 09 Apr 2014 17:05:17 +0200, Erik Bruchez <erik@bruchez.org> wrote:
>> Yes, it should be UI Common.
>> The idea was, for hint and label, to support `appearance="minimal"`.
>> There is an example for hint in the spec:
>>     <hint appearance="minimal">Last, First</hint>
>> It does make sense to have this too:
>>     <label appearance="minimal">
>> Like for hint, the label should/could then be rendered as a
>> placeholder. Maybe the spec should provide an example too.
>> -Erik
>> On Wed, Apr 9, 2014 at 3:26 AM, Steven Pemberton
>> <Steven.Pemberton@cwi.nl> wrote:
>>> Section 8.1
>>> https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_XForms_Core_Form_Controls_Module
>>> says that <label> etc have as attribute sets: Common, Single Item Binding
>>> (author-optional)
>>> But section 8.2.1
>>> https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#ui-commonelems-label
>>> says that they have Common Attributes: Common, UI Common, Single Item
>>> Binding (author-optional)
>>> So which is right? Can you say <label appearance="full"> or not?
>>> Steven
Received on Wednesday, 9 April 2014 17:00:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:14:10 UTC