View Single Post
Old 11-27-2013, 11:01 AM   #29
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,856
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Jellby View Post
"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
Attached Files
File Type: epub background_image_test_ruben.epub (68.2 KB, 268 views)
RbnJrg is offline   Reply With Quote