[Bug 27489] XHTML representation of JSON

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27489

--- Comment #3 from Brett Zamir <brettz9@yahoo.com> ---
And my apologies... I should clarify that the following unfinished branch
reflects my most recently intended syntax:
https://github.com/brettz9/jhtml/tree/unfinished-new-spec

The README of this branch (and its index.html demo file) follow even simpler
rules (though the JavaScript library has not been updated to transform the new
structure).

Besides simplification and avoidance of hidden properties (by avoiding most of
the hidden Microdata properties I had formerly employed), the reason for the
new rules is that in now requiring the <i> tag on null, boolean, and numbers,
they can always be visually distinguished from strings even when no CSS is
applied.

As far as other design choices, my hope was to make as little markup required
as possible to allow for hand-coding. 

Finally, although HTML's "Microdata" (as I required to be present at the root
of these JSON-as-XHTML structures) is not intended for denoting hierarchical
relationships, its itemtype attribute it is the closest thing to namespaces in
plain HTML, and it also should allow for XML/XHTML environments to uniquely
distinguish such encodings from regular XHTML (since using the XHTML namespace
would still be desirable for rendering the documents in XHTML environments).

Also, as Microdata attributes are purely to be used for semantic purposes, it
can be safe for HTML editors and such to whitelist.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 3 December 2014 16:02:41 UTC