Re: [WICG/webcomponents] [dom-parts] Declarative syntax for creating DOM Parts (Issue #1003)

One serious shortcoming where microdata falls short as a replacement for processing instructions is in specifying attributes that we want to turn into a part.

Maybe, if the performance is significantly improved by using processing instructions for this, it could be an interim solution.  I kind of find it difficult to picture servers emitting these processing instructions long term just for that, and seems like one of those things that would get introduced and rarely used and quickly forgotten.  

But the limitation is really a significant shortcoming, in my view, of the microdata standard.  Much valuable information that would be useful for search engines (and hydrating) is contained in aria- attributes as well as such as attributes like title, value, and alt.

This one would require a new global microdata attribute:

```html
<img alt="Bear rummaging through garbage" aria-label="Photo by Simone de Beauvoir" title="Click on photo for more info"  itempropmap="photoCaption: alt; photoDescription: title; photographer: aria-label">
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1003#issuecomment-1548601186
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1003/1548601186@github.com>

Received on Monday, 15 May 2023 21:21:53 UTC