https://bugzilla.wikimedia.org/show_bug.cgi?id=28776

--- Comment #3 from Brett Zamir <[email protected]> 2011-06-12 05:46:53 UTC ---
Hi,

@Bawolff: Thanks very much for the info on enabling microdata attributes.

Although HTML5 may technically still be an in progress specification, Microdata
has been endorsed by Google, Microsoft, and Yahoo, though http://schema.org .
My feeling is that the time has come for higher-level semantics to be made
available, especially for sites like Wikisource which could particularly
benefit from allowing richly semantic markup, such as we are now discussing in
preparing an HTML5 Microdata serialization for TEI (Text Encoding Initiative).

The Microdata specification (at http://www.w3.org/TR/html5/microdata.html )
demonstrates <link/> being used with @itemprop and @href and
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element
explains that a <link/> will not be treated as a link without @rel, but the
element can exist without @rel using just @itemprop. So, perhaps disallowing
@rel (and probably @type) would then be sufficient to limit this tag to behave
as a purely semantic information. 

Likewise, for in-body meta tags, one only needs to whitelist @itemprop and
@content (and ideally harmless global attributes like @id, @title, and @lang).

The following is a sample of a proposed serialization approach for TEI (a
language used in the academic world for marking up classical literature, and
which I think ought to be allowable on the likes of Wikisource). The following
is adapted from code within the first example at
http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-note.html , preserving
all of the semantics for round-tripping.

<aside itemprop="note">
  <meta itemprop="place" content="bottom"/>
  <meta itemprop="type" content="gloss"/>
  <link itemprop="resp" href="#MDMH"/>
  <dfn xml:lang="de" lang="de" itemprop="term">Malerisch</dfn>. This word has,
in the German, two
 distinct meanings, one objective, a quality residing in the object,
 the other subjective, a mode of apprehension and creation. To avoid
 confusion, they have been distinguished in English as
<span itemprop="mentioned">picturesque</span> and
<span itemprop="mentioned">painterly</span> respectively.
</aside>

<div itemprop="respStmt" id="MDMH" style="display:none;">
 <div itemprop="resp">translation from German to English</div>
 <div itemprop="name">Hottinger, Marie Donald Mackie</div>
</div>

Note that <meta/> is here used to reflect attributes from TEI (e.g., to
indicate that this note is a gloss), while <link/> is used to reference
additional hidden meta-data (in this case, information about who is responsible
for the note). <link/> might also be used for the likes of TEI's <ptr/> elment
which can indicate a relationship to one or more targets from and to anywhere
(including optionally using XPointer to indicate the semantic relationship) but
which need not be visible. This is one way to allow for example, what TEI calls
stand-off markup: the ability to reference a text (e.g., a famous authoritative
work) from another text (e.g., a commentary).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to