Re: [WSG] Time element question

2012-05-22 Thread Phil Archer

Hi Tom,

(Different forum, still me ;-) )

My understanding is that yes you can (put anything you like in the 
text). It's the @datetime data that is restricted to a machine-readable 
format. If, however, you don't give the @datetime value then the content 
of the element itself must be a valid date. So this is OK:


time datetime=2012-05-22T20:20Znow/time

and this is OK

time2012-05-22/time

HTH

Phil.

On 22/05/2012 19:43, Tom Livingston wrote:

Hello list,

i wasn't able to find an answer on google specifically for what my
question is, so here goes:

when using the time element, can you put ANY text within the open and
close tags? Like:

time datetime=2012-02-0302.03.12 - Asia Pacific/time

Is the addition of  - Asia Pacific ok to do here? Wasn't sure if
*any* text was ok to be inside the time tags.

I found a lot of info on the datetime attribute, but not if the above
type of thing is allowed or not.

Thanks



--


Phil Archer
W3C eGovernment
http://www.w3.org/egov/

http://philarcher.org
@philarcher1


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] Time element question

2012-05-22 Thread Tom Livingston
On Tue, May 22, 2012 at 4:22 PM, Phil Archer ph...@w3.org wrote:
 Hi Tom,

 (Different forum, still me ;-) )

Ha! Thanks for remembering me! ;-)


 My understanding is that yes you can (put anything you like in the text).
 It's the @datetime data that is restricted to a machine-readable format. If,
 however, you don't give the @datetime value then the content of the element
 itself must be a valid date. So this is OK:

 time datetime=2012-05-22T20:20Znow/time

 and this is OK

 time2012-05-22/time

 HTH

 Phil.


Thanks for the info!



-- 

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***