@@ -226,25 +226,15 @@ <h4>Relationship to HTML</h4>
226226
227227 < p > The [[html]] standard defines a single content model with rules for expressing a tag set using
228228 either the < a data-cite ="html#syntax "> HTML syntax</ a > or the < a
229- data-cite ="html#the-xhtml-syntax "> XML syntax</ a > . EPUB 3 allows authoring of content
230- documents using either of these syntaxes even though the [[html]] standard < a
231- data-cite ="html/xhtml.html#the-xhtml-syntax "> no longer recommends the use of the XML
232- syntax</ a > . The Working Group recognizes that XML remains an integral technology in the
233- publishing ecosystem and will not remove support for the XML syntax from EPUB 3. Regardless,
234- publishers that prefer to keep using the XML syntax will need to monitor future support for it,
235- and might have to adapt to the HTML syntax to gain access to some features of [[html]].</ p >
236-
237- < div class ="issue " data-number ="2715 " title ="Adoption of the HTML syntax ">
238- < p > The change to allow both syntaxes of HTML is an open issue in EPUB 3.4. The above paragraph
239- was added to help explain the change, but would be amended if the HTML syntax is not
240- adopted.</ p >
241- </ div >
229+ data-cite ="html#the-xhtml-syntax "> XML syntax</ a > . EPUB 3, however, only allows authoring of
230+ content documents using the XML syntax, in what are referred to as [=XHTML content
231+ documents=].</ p >
242232
243- < p > The < a href ="#sec-xhtml "> HTML profile defined by this specification</ a > inherits all definitions
233+ < p > The < a href ="#sec-xhtml "> XHTML profile defined by this specification</ a > inherits all definitions
244234 of semantics, structure and processing behaviors from [[html]] unless otherwise specified.</ p >
245235
246236 < p > In addition, this specification < a href ="#sec-xhtml-extensions "> defines a set of extensions</ a >
247- to the [[html]] document model that can be included in [=HTML content documents=] .</ p >
237+ to the [[html]] document model that can be included in XHTML content documents.</ p >
248238 </ section >
249239
250240 < section id ="sec-overview-relations-svg ">
@@ -498,35 +488,6 @@ <h3>Terminology</h3>
498488 </ div >
499489 </ dd >
500490
501- < dt >
502- < dfn class ="export "> HTML content document</ dfn >
503- </ dt >
504- < dt >
505- < small > (formerly < dfn class ="export "> XHTML content document</ dfn > )</ small >
506- </ dt >
507- < dd >
508- < p > An [=EPUB content document=] that conforms to the profile of [[html]] defined in < a
509- href ="#sec-xhtml "> </ a > .</ p >
510- < p > HTML content documents can be expressed in either the < a data-cite ="html#syntax "> HTML
511- syntax</ a > or the < a data-cite ="html#the-xhtml-syntax "> XML syntax</ a > [[html]].</ p >
512- < div class ="note ">
513- < p > EPUB 3 previously supported only the XML syntax of [[html]] via what were called XHTML
514- content documents. The change of name to HTML content documents is not to give priority
515- to the HTML syntax but to better reflect that [[html]] is the common standard for both
516- syntaxes. The term "XHTML" used to refer to [[xhtml11]], but that was replaced by the
517- XML syntax of [[html]] in 2011, which also officially superseded [[xhtml11]] in
518- 2018.</ p >
519- </ div >
520- < div class ="issue " data-number ="2715 " title ="Adoption of the HTML syntax ">
521- < p > The change to allow both syntaxes of HTML is an open issue in EPUB 3.4. It is important
522- to note that EPUB 3 is already based on [[html]] and this change only makes the HTML
523- syntax valid to use. Because EPUB 2's XHTML content documents were implemented using
524- [[xhtml11]], some authors mistakenly assume EPUB 3's XHTML content documents use the
525- same technology and that this change represents a move to a new standard.</ p >
526- < p > This new definition will be amended if the HTML syntax is not adopted.</ p >
527- </ div >
528- </ dd >
529-
530491 < dt >
531492 < dfn class ="export "> linked resource</ dfn >
532493 </ dt >
@@ -648,6 +609,23 @@ <h3>Terminology</h3>
648609 chain</ a > .</ p >
649610 </ dd >
650611
612+ < dt >
613+ < dfn class ="export "> XHTML content document</ dfn >
614+ </ dt >
615+ < dd >
616+ < p > An [=EPUB content document=] that conforms to the profile of [[html]] defined in < a
617+ href ="#sec-xhtml "> </ a > .</ p >
618+ < p > XHTML content documents are expressed using the < a data-cite ="html#the-xhtml-syntax "> XML
619+ syntax</ a > [[html]].</ p >
620+ < div class ="note ">
621+ < p > Although the [[html]] standard no longer refers to the XML syntax as "XHTML", the name
622+ XHTML was still current at the time EPUB 3.0 was developed. The name "XHTML content
623+ document" was also used in EPUB 2, so keeping it unchanged was intended to help ease
624+ transition to the new format. Unlike in EPUB 2, XHTML in this document does not refer to
625+ [[xhtml11]], which was officially superseded in 2018.</ p >
626+ </ div >
627+ </ dd >
628+
651629 < dt >
652630 < dfn class ="export "> unique identifier</ dfn >
653631 </ dt >
@@ -987,21 +965,12 @@ <h3>Core media types</h3>
987965 < tr >
988966 < th colspan ="3 " id ="cmt-grp-html " class ="tbl-group "> HTML</ th >
989967 </ tr >
990- < tr >
991- < td id ="cmt-html ">
992- < code > text/html</ code >
993- </ td >
994- < td >
995- < a href ="#sec-xhtml "> HTML content documents</ a >
996- </ td >
997- < td > HTML documents that use the < a data-cite ="html#syntax "> HTML syntax</ a > [[html]]</ td >
998- </ tr >
999968 < tr >
1000969 < td id ="cmt-xhtml ">
1001970 < code > application/xhtml+xml</ code >
1002971 </ td >
1003972 < td >
1004- < a href ="#sec-xhtml "> HTML content documents</ a >
973+ < a href ="#sec-xhtml "> XHTML content documents</ a >
1005974 </ td >
1006975 < td > HTML documents that use the < a data-cite ="html#the-xhtml-syntax "> XML syntax</ a >
1007976 [[html]]</ td >
@@ -3061,10 +3030,10 @@ <h2>Package document</h2>
30613030 < section id ="sec-package-intro " class ="informative ">
30623031 < h3 > Introduction</ h3 >
30633032
3064- < p > The [=package document=] is an XML document that consists of a set of elements that each encapsulate
3065- information about a particular aspect of an [=EPUB publication=]. These elements serve to centralize
3066- metadata, detail the individual resources, and provide the reading order and other information
3067- necessary for its rendering.</ p >
3033+ < p > The [=package document=] is an < a href =" #sec-xml-constraints " > XML document</ a > that consists of a set
3034+ of elements that each encapsulate information about a particular aspect of an [=EPUB publication=].
3035+ These elements serve to centralize metadata, detail the individual resources, and provide the
3036+ reading order and other information necessary for its rendering.</ p >
30683037
30693038 < p > The following list summarizes the information found in the package document:</ p >
30703039
@@ -5864,40 +5833,51 @@ <h4>The <code>itemref</code> element</h4>
58645833 < h2 > EPUB content documents</ h2 >
58655834
58665835 < section id ="sec-xhtml ">
5867- < h3 > HTML content documents</ h3 >
5868-
5869- < div class ="ednote ">
5870- < p > Support for the HTML syntax is still an < a href ="https://github.com/w3c/epub-specs/issues/2715 "
5871- > open issue</ a > in the EPUB 3.4 revision. It is < b > < i > at risk</ i > </ b > , depending on authors'
5872- and implementers' feedback. This specification introduces it as a core media type and also
5873- minimally adds requirements for its authoring in this section to begin making readers aware of
5874- the proposed change.</ p >
5875-
5876- < p > Much of this specification, and the Reading Systems specification [[epub-rs-34]], continues to
5877- refer only to XHTML content documents and their authoring requirements, a number of which need
5878- resolving (e.g., providing an < a href ="#sec-epub-type-attribute "> alternative to the
5879- < code > epub:type</ code > attribute</ a > ). These references and requirements will be updated
5880- once it is clearer that support will definitely be added in this revision. Until then, the
5881- specification should be read as also supporting HTML wherever it currently refers to XHTML,
5882- despite the support inconsistencies.</ p >
5883-
5884- < p > To provide feedback on this change, please add comments to < a
5885- href ="https://github.com/w3c/epub-specs/issues/2715 "> issue 2715</ a > in the GitHub
5886- tracker.</ p >
5887- </ div >
5836+ < h3 > XHTML content documents</ h3 >
58885837
58895838 < section id ="sec-xhtml-intro " class ="informative ">
58905839 < h4 > Introduction</ h4 >
58915840
5892- < p > This section defines a profile of [[html]] for creating HTML content documents. An instance of an
5893- HTML document that conforms to this profile is a [=core media type resource=].</ p >
5841+ < p > An [=XHTML content document=] is an instance of an < a href ="#sec-xml-constraints "> XML
5842+ document</ a > expressed using the < a data-cite ="html#the-xml-syntax "> XML syntax</ a > of the
5843+ [[[html]]] [[html]].</ p >
5844+
5845+ < p > XHTML content documents that conform to this profile are [=core media type resources=] and one of
5846+ the two formats that constitute [=EPUB content documents=] — that can be used without
5847+ fallbacks in the [^spine^].</ p >
5848+
5849+ < div class ="note ">
5850+ < p > EPUB 3 does not support the < a data-cite ="html#the-html-syntax "> HTML syntax</ a > of [[html]]
5851+ as a core media type. Although both serializations allow the same elements to be expressed,
5852+ not all JavaScript libraries and APIs are designed to handle the XML syntax, in particular
5853+ the shadow DOM. This means, for example, that although the [^template^] element [[html]] can
5854+ be authored in the XML syntax it may not be usable in the same way as in the HTML
5855+ syntax.</ p >
5856+
5857+ < p > The Publishing Maintenance Working Group is aware that the HTML Standard no longer recommends
5858+ the use of the XML syntax. XML, however, is integral to many publishing workflows and
5859+ expected in many vendor ingestion systems and reading systems. It is also not expected that
5860+ support for XHTML will be dropped from browsers, even if there are additional support
5861+ differences between the syntax in the future. Support for the HTML syntax may be addressed
5862+ in a successor format to EPUB 3.</ p >
5863+ </ div >
5864+
5865+ < div class ="note ">
5866+
5867+ < p > Earlier versions of EPUB 3 referred to W3C's HTML5 standard to define EPUB content documents,
5868+ but that standard was largely a snapshot of the HTML Standard maintained by the WHATWG.
5869+ After reaching an < a href ="https://www.w3.org/2019/04/WHATWG-W3C-MOU.html "> agreement</ a > on the development of HTML in 2019, the W3C standard was retired
5870+ and EPUB 3 now exclusively refers to the HTML Standard. It does not mean that EPUB 3 does
5871+ not support HTML5 anymore in XHTML content documents, only that HTML5 is now a marketing
5872+ term that refers to the HTML Standard as the successor to HTML 4.01 and XHTML 1.1.</ p >
5873+ </ div >
58945874 </ section >
58955875
58965876 < section id ="sec-xhtml-req " data-epubcheck ="true "
58975877 data-tests ="https://w3c.github.io/epub-structural-tests/#06-content-document_content-document-xhtml.feature_L21,https://w3c.github.io/epub-structural-tests/#06-content-document_content-document-xhtml.feature_L26,https://w3c.github.io/epub-structural-tests/#06-content-document_content-document-xhtml.feature_L32,https://w3c.github.io/epub-structural-tests/#06-content-document_content-document-xhtml.feature_L529,https://w3c.github.io/epub-structural-tests/#06-content-document_content-document-xhtml.feature_L534 ">
5898- < h4 > HTML requirements</ h4 >
5878+ < h4 > XHTML requirements</ h4 >
58995879
5900- < p > An HTML content document:</ p >
5880+ < p > An XHTML content document:</ p >
59015881
59025882 < ul class ="conformance-list ">
59035883 < li >
@@ -5911,25 +5891,17 @@ <h4>HTML requirements</h4>
59115891 conformance constraints defined therein.</ p >
59125892 </ li >
59135893 < li >
5914- < p id ="confreq-cd-html-docprops-syntax "> MUST either:</ p >
5915- < ul class ="conformance-list ">
5916- < li id ="confreq-cd-html-docprops-syntax-html "> conform to the < a data-cite ="html#writing "
5917- > HTML syntax</ a > [[html]] when defined in the [=epub manifest|manifest=] as
5918- having the media type < code > text/html</ code > ; or</ li >
5919- < li id ="confreq-cd-html-docprops-syntax-xml "> conform to the < a
5920- data-cite ="html#writing-xhtml-documents "> XML syntax</ a > [[html]] when defined in
5921- the [=epub manifest|manifest=] as having the media type
5922- < code > application/xhtml+xml</ code > .</ li >
5923- </ ul >
5894+ < p id ="confreq-cd-html-docprops-syntax-xml "> MUST be an [[html]] document that conforms to
5895+ the < a data-cite ="html#writing-xhtml-documents "> XML syntax</ a > .</ p >
59245896 </ li >
59255897 </ ul >
59265898
5927- < p > Unless specified otherwise, HTML content documents inherit all definitions of semantics,
5899+ < p > Unless specified otherwise, XHTML content documents inherit all definitions of semantics,
59285900 structure, and processing behaviors from the [[html]] specification.</ p >
59295901
59305902 < div class ="note ">
59315903 < p > The recommendation that [=EPUB publications=] follow the accessibility requirements in
5932- [[epub-a11y-12]] applies to HTML content documents. See < a href ="#confreq-a11y "
5904+ [[epub-a11y-12]] applies to XHTML content documents. See < a href ="#confreq-a11y "
59335905 > Accessibility</ a > .</ p >
59345906 </ div >
59355907 </ section >
@@ -6513,7 +6485,7 @@ <h4 id="confreq-cd-scripted-flbk">Scripting fallbacks</h4>
65136485 </ section >
65146486
65156487 < section id ="sec-epub-type-attribute ">
6516- < h3 > The < code > type</ code > attribute</ h3 >
6488+ < h3 > The < code > epub: type</ code > attribute</ h3 >
65176489
65186490 < section id ="sec-structural-semantics ">
65196491 < h4 > Structural semantics</ h4 >
@@ -6541,93 +6513,38 @@ <h4>Structural semantics</h4>
65416513
65426514 < section id ="type-attr-syntax ">
65436515 < h4 > Syntax</ h4 >
6544- < dl >
6545- < dt > XHTML serialization</ dt >
6546- < dd >
6547- < dl class ="elemdef " id ="attrdef-epub-type-xhtml ">
6548- < dt > Attribute Name:</ dt >
6549- < dd >
6550- < p >
6551- < dfn class ="export " data-lt-no-plural ="" data-dfn-type ="element-attr ">
6552- < code > epub:type</ code >
6553- </ dfn >
6554- </ p >
6555- </ dd >
65566516
6557- < dt > Namespace:</ dt >
6558- < dd >
6559- < p >
6560- < code > http://www.idpf.org/2007/ops</ code >
6561- </ p >
6562- </ dd >
6563-
6564- < dt > Usage:</ dt >
6565- < dd >
6566- < p > Refer to the requirements for < a href ="#sec-xhtml-structural-semantics "
6567- > XHTML</ a > , < a href ="#confreq-svg-structural-semantics "> SVG</ a > , and < a
6568- href ="#sec-overlays-def "> media overlays</ a > .</ p >
6569- </ dd >
6570-
6571- < dt > Value:</ dt >
6572- < dd >
6573- < p > A < a data-cite ="xml#NT-S "> whitespace-separated</ a > [[xml]] list of [=compact
6574- URLs=], with restrictions as defined in < a href ="#sec-vocab-assoc "> </ a > .</ p >
6575- </ dd >
6576- </ dl >
6517+ < dl class ="elemdef " id ="attrdef-epub-type-xhtml ">
6518+ < dt > Attribute Name:</ dt >
6519+ < dd >
6520+ < p >
6521+ < dfn class ="export " data-lt-no-plural ="" data-dfn-type ="element-attr ">
6522+ < code > epub:type</ code >
6523+ </ dfn >
6524+ </ p >
65776525 </ dd >
65786526
6579- < dt > HTML serialization </ dt >
6527+ < dt > Namespace: </ dt >
65806528 < dd >
6581- < dl class ="elemdef " id ="attrdef-epub-type-html ">
6582- < dt > Attribute Name:</ dt >
6583- < dd >
6584- < p >
6585- < dfn class ="export " data-lt-no-plural ="" data-dfn-type ="element-attr ">
6586- < code > epub-type</ code >
6587- </ dfn >
6588- </ p >
6589- </ dd >
6529+ < p >
6530+ < code > http://www.idpf.org/2007/ops</ code >
6531+ </ p >
6532+ </ dd >
65906533
6591- < dt > Usage:</ dt >
6592- < dd >
6593- < p > Refer to the requirements for < a href ="#sec-xhtml-structural-semantics "
6594- > HTML</ a > .</ p >
6595- </ dd >
6534+ < dt > Usage:</ dt >
6535+ < dd >
6536+ < p > Refer to the requirements for < a href ="#sec-xhtml-structural-semantics "> XHTML</ a > , < a
6537+ href ="#confreq-svg-structural-semantics "> SVG</ a > , and < a
6538+ href ="#sec-overlays-def "> media overlays</ a > .</ p >
6539+ </ dd >
65966540
6597- < dt > Value:</ dt >
6598- < dd >
6599- < p > A [=ASCII whitespace|whitespace-separated=] [[infra]] list of values that
6600- SHOULD be taken from the EPUB 3 Structural Semantics Vocabulary
6601- [[epub-ssv-11]].</ p >
6602- </ dd >
6603- </ dl >
6541+ < dt > Value:</ dt >
6542+ < dd >
6543+ < p > A < a data-cite ="xml#NT-S "> whitespace-separated</ a > [[xml]] list of [=compact URLs=],
6544+ with restrictions as defined in < a href ="#sec-vocab-assoc "> </ a > .</ p >
66046545 </ dd >
66056546 </ dl >
66066547
6607- < div class ="ednote ">
6608- < p > Support for an HTML serialization of the < code > epub:type</ code > attribute depends on the
6609- addition of support for the < a href ="#sec-xhtml "> HTML syntax</ a > in the EPUB 3.4
6610- revision. It is < b > < i > at risk</ i > </ b > , depending on authors' and implementers'
6611- feedback.</ p >
6612-
6613- < p > The proposed < code > epub-type</ code > will provide similar functionality for HTML content
6614- documents but with some restrictions (namely, no extensibility through the
6615- < code > epub:prefix</ code > attribute). The attribute should be read as a replacement
6616- for < code > epub:type</ code > where this specification and the Reading Systems
6617- specification [[epub-rs-34]] refer to that attribute for XHTML content documents. These
6618- references will be updated once it is clearer that support will definitely be added in
6619- this revision.</ p >
6620-
6621- < p > The < code > epub:type</ code > attribute will remain the sole means of including semantics in
6622- XML grammars in EPUB (i.e., XHTML content documents, SVG content documents, and media
6623- overlay documents).</ p >
6624-
6625- < p > To provide feedback on this change, please open issues in the < a
6626- href ="https://github.com/w3c/epub-specs/issues "> GitHub tracker for the EPUB
6627- specifications</ a > .</ p >
6628- </ div >
6629-
6630-
66316548 < div class ="caution ">
66326549 < p > Although the < code > epub:type</ code > attribute is similar in nature to the [^/role^]
66336550 attribute [[html]], the attributes serve different purposes. The values of the
@@ -11547,6 +11464,7 @@ <h2>Change log</h2>
1154711464 < details id ="changes-epub-33 " open ="open ">
1154811465 < summary > Substantive changes since < a href ="https://www.w3.org/TR/epub-33/ "> EPUB 3.3</ a > </ summary >
1154911466 < ul >
11467+ < li > 11-Nov-2025: Removed support for the HTML syntax.</ li >
1155011468 < li > 10-Oct-2025: Added caution that SHA-1 is being phased out so other methods of protecting fonts
1155111469 than the font obfuscation are advised. See < a
1155211470 href ="https://github.com/w3c/epub-specs/issues/2807 "> issue 2807</ a > .</ li >
0 commit comments