![]() |
|
![]() |
||
![]() |
![]() |
|
[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date] Re: domain distinction between @role and @class is unenforceably vague [was: Re: p in address tag?]
From: Orion Adrian <orion.adrian@gmail.com>
Date: Fri, 11 Nov 2005 11:11:48 -0500 Message-ID: <abd6c8010511110811qffc0f46h91171090a4ab7b49@mail.gmail.com> To: www-html@w3.org On 11/10/05, Kelly Miller <lightsolphoenix@gmail.com> wrote: > Orion Adrian wrote: > > ><address id="creator role="creator_address"> > > <span about="#creator" property="author">John Foliot</span> > > <span about="#creator" property="company">WATS.ca</span> > > <span about="#creator" property="city_state">Ottawa, ON</span> > > <span about="#creator" property="country">Canada</span> > > <span about="#creator" property="email">foliot@wats.ca</span> > > <span about="#creator" property="website">http://www.wats.ca</span > > ></address> > > > >Though a simpler, more concise version would be: > > > ><address role="creator_address"> > > <author>John Foliot</author> > > <company>WATS.ca</company> > > <city>Ottawa</city> > > <state>ON</state> > > <country>Canada</country> > > <email>foliot@wats.ca</email> > > <website>http://www.wats.ca</website > > ></address> > > > > > We're back at my original point (sort of). Wouldn't this be somewhat > more semantically relevant? > > <address id="creator role="creator_address"> > <p about="#creator" property="author">John Foliot</p> > <p about="#creator" property="company">WATS.ca</p> > <p about="#creator" property="city_state">Ottawa, ON</p> > <p about="#creator" property="country">Canada</p> > <p about="#creator" property="email">foliot@wats.ca</p> > <p about="#creator" property="website">http://www.wats.ca</p > > </address> > > or even > > <address id="creator role="creator_address"> > <l about="#creator" property="author">John Foliot</l> > <l about="#creator" property="company">WATS.ca</l> > <l about="#creator" property="city_state">Ottawa, ON</l> > <l about="#creator" property="country">Canada</l> > <l about="#creator" property="email">foliot@wats.ca</l> > <l about="#creator" property="website">http://www.wats.ca</l > > </address> > > Span is meant as a generic containing element, is it not? As a result, > I think we can find a better solution than span here. I would agree that "l" is a better choice here, but I believe "p" is not. If for no other reason than that paragraphs often have non-zero margins and specifying the display rules for address and p would be simpler if p couldn't be imbedded in structured blocks like addresses. Besides l fits better with the semantics you're trying to deliver except in one case which is <l about="#creator" property="city_state">Ottawa, ON</l> which should probably be: <l><span about="#creator" property="city">Ottawa</span>, <span about="#creator" property="state">ON<span></l> There's no semantic need for symmetry here and the seperation does us more good especially if we also add zip code which is common for some countries. -- Orion AdrianReceived on Friday, 11 November 2005 16:12:03 GMT |
|
||||||||||||||||