Quote:
Originally Posted by DaleDe
Where does the idea that HTML5 does not support named characters? It certainly does and if iBooks doesn't then it is not HTML5 compliant. The list of Named character references is in our wiki. This list is a superset of entities and certainly includes nbsp.
|
HTML5 does support named entities, however, the epub3 standard does not support them
without additional entity declarations in the doctype, because epub3 content docs (=HTML files) need to be formatted as HTML5 XHTML files. For more information, see the
official epub3 specs.
BTW, you can easily test this for yourself. Create a new epub3 book, insert named entities such as and have it checked by epubcheck.
For example, the following code will fail epubcheck:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
</head>
<body>
<p> </p>
</body>
</html>
it'll only pass epubcheck if an entity definition is added:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html [
<!ENTITY nbsp " ">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
</head>
<body>
<p> </p>
</body>
</html>