Re: Does order of itemscope and itemprop matter?

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 UTC