These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

New <location> element

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

New <location> element

Postby chris.f.jay@gmail.com » Mon Jul 09, 2007 1:17 pm

I noticed the <time> element in HTML 5. Excellent idea!

What about adding a <location> element, to indicate geographical location?

There would be optional latitude, longitude, altitude, head, tilt and range attributes (following GeoBloggersconventions), in addition to text content.

For example,

Code: Select all
<p>We are meeting at <location>Canary Wharf</location>, <time>8 Aug, 5pm</time></p>.


or

Code: Select all
<location>Canary Wharf <img src="canarywharf.jpg"/></location>


or

Code: Select all
<p>Please send mail to <location>99 Canada Square, Canary Wharf, London, E14 0XX</location>.</p>


It's basically a properly semantic version of geo-tagged microformats, and has similar uses - for example, it could enable pop-up online maps if you click on them. If both a location and a time are present, it could integrate with your calendar.

In addition, it would be great to enable <location> in forms, so the user has help (e.g. a map) to pick the appropriate place before submitting the form.

And it may help resolve some of the uncertainties surrounding <address>...

What do you think?
chris.f.jay@gmail.com
<h6>
 
Posts: 3
Joined: Mon Jul 09, 2007 1:08 pm

Postby zcorpan » Wed May 27, 2009 5:56 pm

HTML5 now has "vevent" as microdata which can integrate with the calendar.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest