W3C home > Mailing lists > Public > public-vocabs@w3.org > January 2012

Re: Does order of itemscope and itemprop matter?

From: Mehershad Dahmubed <mehershad@gmail.com>
Date: Thu, 5 Jan 2012 13:25:17 -0800
Cc: public-vocabs@w3.org
Message-Id: <7877627C-0EDB-4D46-AD35-CD2E2B2C243E@gmail.com>
To: Dan Brickley <danbri@danbri.org>
Thank you Dan and Jeni. 
That does put aside some headache for me and reduces a fix issue in HamlPy.
Cheers
M :)

On Jan 5, 2012, at 8:56 AM, Dan Brickley wrote:

> On 5 January 2012 12:43, Mehershad Dahmubed <mehershad@gmail.com> wrote:
> 
>> Forgive me if this question sounds silly but there is a reason why I have to ask this.
> 
> It's a perfectly fine question to ask!
> 
>> I understand the syntax that is advertise is:
>> <div itemscope itemprop="<value>">
>> 
>> Due to the HamlPy library in current use on my system, even after my own fixes added, the library outputs:
>> <div itemprop="<value>" itemscope>
>> 
>> due to the way ast.literal_eval evaluates the dictionary key/value pairs. I don't why it swaps the order but that's where it stands.
>> 
>> So I was curious if the order really mattered or where I stand right now is fine too?
> 
> It shouldn't matter. As I type this I see Jeni also replied :)
> 
> In general, if people have 'simple' questions like this, don't feel
> bad about asking them since others are likely thinking the same thing.
> It also helps standards folk understand how to improve the
> documentation...
> 
> Dan
Received on Thursday, 5 January 2012 23:44:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:58 GMT