Skip to content

Protoypes with data dash

James Cambron edited this page Mar 5, 2019 · 14 revisions

This page is for prototyping syntax from https://raw.githack.com/w3c/personalization-semantics/rewrite-prototype/content/index.html

with "data-attribute"

Note that use cases are fully described at https://github.com/w3c/personalization-semantics/wiki/Use-cases

Use with different alternative text

  • <span data-alternative-numberfree="most">92%</span>
  • <h1 data-alternative-easylang="form to ask for money if you have a disability or if you are ill">Disability claims under CD 356 / US </h1>

or

  • <span data-numberfree="most">92%</span>
  • <h1 data-easylang="form to ask for money if you have a disability or if you are ill">Disability claims under CD 356 / US </h1>

(I like this less as it is less clear what it is)

Use with symbol

  • <img data-map-symbol="http://blisssymbolics.org/refnumber/001" href="mysymb.bmp">

or

  • <img data-alteritve-symbol="http://blisssymbolics.org/refnumber/001" href="mysymb.bmp">

or

  • <img data-purpose-symbol="http://blisssymbolics.org/refnumber/001" href="mysymb.bmp"> or

  • <img data-purpose="http://blisssymbolics.org/refnumber/001" href="mysymb.bmp"> (overloaded?)

Use with field, destination and action (purpose )

  • <lable data-field="name">your name</lable> or

  • <lable data-purpose-field="name">your name</lable>

or

  • <lable data-purpose="fieldName">your name</lable> (i dislike this - it is overloaded or how the data- is used in the field)

or

  • <lable data-purpose="Name">your name</lable> (i dislike this the most - it is overloaded and authors will put the name attribute on the wrong type of thing)