extruct icon indicating copy to clipboard operation
extruct copied to clipboard

Random order in RDFA’s root list

Open Gallaecio opened this issue 5 years ago • 0 comments

In the current state of #127, running tox -e py -- README.rst and looking at the end of the reported diff between actual output and expectations, the order of the 2 dictionaries in the root list of rdfa changes across different executions.

So, sometimes you get:

       'rdfa': [ { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/#header',
                   'http://www.w3.org/1999/xhtml/vocab#role': [ { '@id': 'http://www.w3.org/1999/xhtml/vocab#banner'}]},
                 { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/',

While other times you get:

       'rdfa': [ { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/',
                   …
                   { '@id': 'https://www.optimizesmart.com/how-to-use-open-graph-protocol/#header',
                   'http://www.w3.org/1999/xhtml/vocab#role': [ { '@id': 'http://www.w3.org/1999/xhtml/vocab#banner'}]}]}

I though #116 would fix this, but it did not.

Gallaecio avatar Aug 12 '20 12:08 Gallaecio