Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Keeping markup inside values #4

Closed
chaals opened this issue Feb 16, 2017 · 3 comments
Closed

Keeping markup inside values #4

chaals opened this issue Feb 16, 2017 · 3 comments

Comments

@chaals
Copy link
Collaborator

chaals commented Feb 16, 2017

For various reasons - internationalisation, accessibility, … - it is helpful to have rich / marked up text for content, but microdata currently strips everything back to raw text. Is it possible to change that.

@danbri
Copy link
Contributor

danbri commented Apr 21, 2017

Here's some RDFa, which gets around this using a @datatype attribute to control parsing of property values:

 <span property="name">Rug</span>
 <div property="description" datatype="rdf:XMLLiteral">
    My awesome rug:
    <ul>
      <li>Surface 4m<sup>2</sup></li>
      <li>Really <em>ties</em> the room together</li>
    </ul>
  </div>
</div>`

@chaals chaals changed the title Getting markup inside values Keeping markup inside values May 2, 2017
@chaals
Copy link
Collaborator Author

chaals commented May 23, 2017

I think we can close this. It's known, you can use RDFa if you want the functionality, and it doesn't seem to have generated howls of discontent.

There are specific consequences, e.g. for internationalisation and accessibility, but they can be dealt with in more focused issues.

@chaals chaals closed this as completed May 23, 2017
@danbri
Copy link
Contributor

danbri commented May 23, 2017

If I was the I18N reviewer I would be tempted to make a fuss. We'll see!

chaals pushed a commit that referenced this issue May 24, 2017
fix #42, #36
See also #4

Add an accessibility considerations section, flesh out a bit of i18n (basically, microdata isn't that good at it, you might want RDFa), clarify privacy and security sections a bit.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants