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

Re: Does order of itemscope and itemprop matter?

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 5 Jan 2012 11:54:29 -0500
Cc: public-vocabs@w3.org
Message-Id: <EF321230-872E-4808-8E71-7ACBE83BF79D@jenitennison.com>
To: Mehershad Dahmubed <mehershad@gmail.com>
On 5 Jan 2012, at 06:43, Mehershad Dahmubed wrote:
> 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?

The order of attributes in HTML doesn't matter.

Jeni Tennison
Received on Thursday, 5 January 2012 16:54:51 UTC

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