test
posted , tagged testing
In a few places, being able to consume the HTML id
attribute would be useful.
I'd propose a new 'id' attribute on the microformats object (not a property)
i.e.
<div class="h-feed" id="updates">
<a class="u-author h-card" href="https://example.com">Max Mustermann</a>
<i class="h-entry">[...]</li>
[...]
would produce output like
{
"items": [
{
"type": [ "h-feed"],
"id": "updates", <------------------
"properties": {
"author": ...
},
"children": [
{
"type": [
"h-entry"
],
...
}
This format should be completely backwards compatible.
uid
?In the discussion in IRC and in , it was also proposed to automatically imply a uid
property based on the document URL and the id as a fragment.
I don't think this is a good idea for a few reasons:
uid
, if redirects are involved. Feed consumers should follow HTTP 302/307, but not remember those URLs. As such, the correct thing to remember is not the URL of the resulting document + a fragment, but the URL the redirect was found at + the fragment. The parser can not construct this, since it isn't aware of that URL.uid
could be a problem if the author later adds one, e.g. because they added a dedicated for the feed that didn't exist before