Open sebilasse opened 2 years ago
Good catch. IMO example 79 and 80 are 'invalid' according to the current version of the spec. By the look of other examples, ex 79 could isntead be:
{
"@context": "https://www.w3.org/ns/activitystreams",
"summary": "A simple note",
"type": "Note",
"content": "This is all there is.",
"icon": {
"type": "Image",
"name": "Note icon",
"url": {
"type": "Link",
"href": "http://example.org/note.png",
"width": 16,
"height": 16
},
}
}
In current scraped spec data line 4598
But then see e.g. Example 79 and 80 in the spec. where it is treated of Domain
Object
…I think,
width
andheight
is needed for both,Object
s likeImage
as well as forLink
.In @redaktor, width and height are measured for each image if missing and is also needed for building
srcset
/ responsive design.