Quote:
Originally Posted by Jellby
"In theory"? The only restriction I'm aware with <svg> is that it can be wherever <img> is allowed. This means it can be in <div> (or <p> or <hX>), but not directly inside <body> or <blockquote>, for instance. Is there some other restriction? Do you have a link for that?
|
If you for example, in Sigil, enclose a svg wrapper inside a <blockquote> you'll see that Sigil allows that and shows the svg perfectly in both, the Book View and Preview. But if after that you want to validate the ePub with FlighCrew, you'll get a message saying:
element 'svg' is not allowed for content model '(p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|
blockquote|address|fieldset|table|switch|form|noscript|ins|d el|script)'
(The curious thing is that, in that list, also is included
div 
)
Of course, the svg COULDN'T BE inside <blockquote> tags but it WORKS and also WORKS in ADE!!! (below I attach a working ePub with a svg enclosed in blockquotes tags; of course, it doesn't validate, but working).
So, in order to avoid problems, I decided that the better thing was to enclose the svg inside a DIV.
Quote:
(Anyway, this is something that only affects automatic TOC generation/update with Sigil. You can always create the NCX by hand and add whatever links and names you want, regardless of the HTML code.)
|
Agree. For that reason is that I told Psymon that if that was his problem, then it was a trivial thing to solve it