[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTML fragments in content constructs
It is a very common use-case that HTML content in an Atom entry will
be embedded amongst some other HTML and a bunch of other Atom entries.
So is there any restriction on the type of HTML tags that are allowed
in a content construct?
It is usual for entry content to be labeled as @type="text/html", but
really contain HTML fragments - not full HTML.
Should both of these be allowed:
a)
<atom:content mode="xml" type="application/xhtml+xml">
some <b>mixed</b> content
</atom:content>
b)
<atom:content mode="xml" type="application/xhtml+xml">
<html>
<head><title>Title</title></head>
<body><p>A complete file</p></body>
</html>
</atom:content>
Should we define what is expected in terms of the XHTML DTD [1] so
that people know how to frame the content - Eg: %Flow or %Block or
%Inline ?
Or is this out of our scope?
A few possible proposals:
i) Just add a note to the spec to say that content constructs MAY
contain fragments of the media type that they are declared to
contain.
ii) Say that HTML content SHOULD comply to a particular element set
such as %Flow
iii) Add an attribute such as @framing="full|fragment" to the content
construct.
or all of the above?
[1] http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
or http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
--
Dave