[Bug 12911] Incorrect order of "a" properties in itemref example

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12911

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-06-08 14:52:05 UTC ---
The spec says:

In the following example, the "a" property has the values "1" and "2", in that
order, but whether the "a" property comes before the "b" property or not is not
important:

<div itemscope itemref="x">
 <p itemprop="b">test</p>
 <p itemprop="a">2</p>
</div>
<div id="x">
 <p itemprop="a">1</p>
</div>

I say:

This seems to be wrong.
<http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#crawl-the-properties>
clearly sorts all properties in tree order, so the order should be "2", "1" in
this case.

I've verified with http://foolip.org/microdatajs/live/ that implementing the
crawl algorithm (mostly) as specified doesn't do what the example claims.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 8 June 2011 14:52:08 UTC