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

Does order of itemscope and itemprop matter?

From: Mehershad Dahmubed <mehershad@gmail.com>
Date: Thu, 5 Jan 2012 03:43:39 -0800
Message-Id: <8838E9B3-B8AE-427A-A622-F185BBAE4124@gmail.com>
To: public-vocabs@w3.org
Forgive me if this question sounds silly but there is a reason why I have to ask this. 
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?

Mehershad D
Received on Thursday, 5 January 2012 16:50:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:48:44 UTC