From mattraymond at earthlink.net Wed Feb 2 08:00:21 2005
From: mattraymond at earthlink.net (Matthew Raymond)
Date: Wed, 02 Feb 2005 11:00:21 -0500
Subject: [whatwg] [WA1] Idea for Calendar Markup
Message-ID: <4200F915.9060803@earthlink.net>
I like the idea of a calendar in Web Applications 1.0, but I really
hate the way they're currently implemented. For one thing, if the
|class| attribute contains the name of a calendar attribute, how do you
style the element? What happens if you use |class| to style something,
and the class happens to be the name of a calendar attribute? Does it
style that attribute.
Nope, I prefer to stick with good old-fashioned elements. Here's an
example of what I'd like to see, minus the fallback content:
|
|
|
|
|
|
|
|
|
|
|
|
Basic stuff like the summary and the start and end dates are defined
specifically. The rest of the calendar event attributes are defined with
. A WA1-compliant UA would then assign the
|value| attribute as the value of the calendar event attribute. If
|value| is not specified, the child contents are used. The
element is a special case in that it requires elements to be
in the child contents if |value| is undefined.
All contents inside that are not calendar-related
elements or the contents of calendar-related elements are ignored. As a
result, the following would provide proper fallback content:
|
|
|
Upcoming Events
|
|
Summary
|
Status
|
Class
|
Categories
|
Start Date
|
End Date
|
|
|
|
| That thing we did that was so fun.
|
|
CONFIRMED
|
PRIVATE
|
Work
|
|
|
|
|
|
| 02/30/05 7:00 PM
|
|
| 02/30/05 9:00 PM
|
|
|
|
|
|
The above should render in legacy user agents as a table, with
values unimportant to presentation not rendered. Yet, for a WA1 UA, it
yields the same calendar as the first example.
Note that in both examples, if the |type| of a element is
unknown to the user agent, the value can simply be ignored. The
would have a set of standardized |type| values that all user agents
would support, then individual user agent vendors could implement
extensions, with the recommended nomenclature being something like this:
x-[company or organization]-[attribute name]
This should give us a reasonable amount of flexibility and
extensibility without creating a complicated markup scheme. If
necessary, and could be rolled into , but
I'd prefer to have these separate, since they're likely to always be used.
That's all for now. Thoughts welcome.
From ian at hixie.ch Thu Feb 3 05:36:54 2005
From: ian at hixie.ch (Ian Hickson)
Date: Thu, 3 Feb 2005 13:36:54 +0000 (UTC)
Subject: [whatwg] Web Forms 2.0
In-Reply-To: <41FE8360.6000607@yahoo.com>
References: <41FC2D55.6030608@yahoo.com>
<41FE8360.6000607@yahoo.com>
Message-ID:
On Mon, 31 Jan 2005, Daniel Brooks wrote:
>
> Ah, that makes sense. Perhaps a single sentance that states that they
> are counted as two form controls just like is described elsewhere (with
> a reference), but that they are otherwise skipped.
The spec says:
| For image controls, instead of using the name given by the name
| attribute, the field's name is checked against two names, the first
| being the value of the name attribute with the string .x appended to it,
| and the second being the same but with .y appended instead. Thus image
| controls are handled as if they were two controls.
|
| If the identified form control is a file upload control, a push button
| control, or an image control, then the field element is now skipped.
> Ah, it's in the third paragraph, but now that I read it again I see that
> it says 'from script', not 'form script', so I guess it's ok, but 'for a
> script' or 'for scripts' would be easier to read. The whole sentance is
> "There is no way from script to detect this situation because that would
> open the way for some privacy or security leaks."
Done.
Cheers,
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
From ian at hixie.ch Thu Feb 3 05:59:44 2005
From: ian at hixie.ch (Ian Hickson)
Date: Thu, 3 Feb 2005 13:59:44 +0000 (UTC)
Subject: [whatwg] Re: several messages
In-Reply-To: <41FF0B32.8050604@earthlink.net>
References: <41F659E0.1040709@earthlink.net>
<851c8d3105012705432ecbf2d0@mail.gmail.com>
<41F91945.7060906@earthlink.net>
<851c8d31050127084967914a93@mail.gmail.com>
<41F925ED.8040400@earthlink.net>
<851c8d310501280256759eb54b@mail.gmail.com>
<41FA3EEF.1000206@earthlink.net>
<41FA8B25.4020001@earthlink.net>
<0D62341D-7180-11D9-85E7-003065B8CF0E@iki.fi>
<851c8d3105012902545fce5f43@mail.gmail.com>
<41FBCBB8.5030306@earthlink.net> <41FE681F.60200@cam.ac.uk>
<41FF0B32.8050604@earthlink.net>
Message-ID:
On Mon, 31 Jan 2005, Matthew Raymond wrote:
>>
>> It has problems, as mentioned elsewhere in the thread:
>>
>> * It is easy for authors to not include any fallback, which makes it
>> worse than the equivalent.
>
> If the legacy fallback is simply an , then inheritance handles it
> nicely. If you start with this:
>
> | Format: YYYY-MM-DD
But you don't. Many, if not most, WF2 documents will be new documents.
There is no existing content. Authors would just do:
...or some such, and be done with it.
> Therefore, I see no reason why a webmaster would choose to drop their
> legacy content when upgrading their websites to use and its
> siblings.
The problem is assuming the Web author is upgrading a Web site in the
first place. It could be a new one.
> The only issue here is whether or not a grandfather or soccer mom who
> knows virtually nothing about legacy support would put in the proper
> legacy content. For these individuals, you simply write a tutorial that
> tells them to do something like this:
>
> |
>
> This can be explained to the user easily enough: "Pretend you're going
> to enter the date as text, then slap tags around it." It's not
> rocket surgery.
But it's more complicated than the current text, which works for both new
and old browsers. Sure, the fallback isn't as ideal when the author is
trying hard to provide fallback, but (as described elsewhere in this
thread) I simply don't see that these particular features (date) will be
interesting to authors of that caliber.
> > * The fallback and non-fallback controls have different names.
>
> This is only true of the 3SC scenario, and in that situation the server
> script can easily be rewritten to handle the situation.
I thought we had to assume the server couldn't be changed?
>> * The datetime types don't really need comprehensive fallback, given
>> that the three cases that they could replace are:
>> 1. Text inputs, which would be improved, not hurt, by the new
>> types,
>
> Except you never solved the formatting hints problem to anyone's
> satisfaction
I still don't understand what is wrong with the short amount of black-box
JavaScript I proposed. It handles more cases than your proposals with no
work on the UA implementor's behalf.
Not to mention that many of the authors who fall into this "1" category
simply don't provide formatting hints at all. The authors who are likely
to care about fallback formatting hints simply wouldn't use text inputs in
current pages anyway, and therefore aren't, IMHO, part of this category.
> nor did you explain how to handle legacy sites that use + DHTML
> solutions.
That would be category 3 below.
> Elements like , as seen above, solve this problem in a simple,
> straight-forward and effective manner.
IMHO it is neither simple, nor straight-forward, nor effective, and has
serious drawbacks, as I have described. It certainly isn't a bad solution,
but it isn't, IMHO, any better than what we have already.
> > 2.