thiemowmde added a comment.

This is what I have in mind:

  • <span class="…" data-…="…">2015</span>
  • <span><span class="…" data-…="…">2015</span>, <span class="…" data-…="…">2016</span></span>

A single value is wrapped in a span, and can have additional attributes. Two values must be wrapped in individual spans, otherwise it would not be possible to have value-specific attributes.

The outer span is only necessary to fulfill the guarantee to always return single DOM element.

The outer span could even have a specific class name. Or be a list. But I would not do anything like this in the first iteration. Just spans, please. Make this as trivial as possible. I would also avoid commas, if possible.



To: hoo, thiemowmde
Cc: Izno, Aklapper, Lydia_Pintscher, daniel, aude, Lucie, thiemowmde, hoo, D3r1ck01, Wikidata-bugs, Mbch331
Wikidata-bugs mailing list

Reply via email to