View Single Post
Old 07-27-2013, 03:10 PM   #13
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by jgoguen View Post
This is just tag nesting, perfectly valid and absolutely essential to some designs and layouts.


I ran every test file through a XML validator and I can't find where this occurs. What I saw is that the worse case is a <span> opened at the start of a paragraph may not close until the end of that same paragraph. Can you point me at a file in either of these test files where a span isn't closed until the very end? That would be a serious problem and I very much doubt that books would display properly.
It is not a question of xml validity. The Kobo software expects that those tags are not nested.


Quote:
Originally Posted by jgoguen View Post
With the spans being properly balanced as they are, this would actually not be a good thing
Why don't you try what I proposed and judge by yourself. My proposal was meant exactly for the test file. Since I propose adding one closing tag at an early position and deleting one later, the balance is still preserved.


Quote:
Originally Posted by jgoguen View Post
Not saying the way it is now doesn't break highlighting (I've never tried nor has it been reported to me).
I thought Davidfor might have reported this, cf. this post.

Last edited by tshering; 07-27-2013 at 03:16 PM.
tshering is offline   Reply With Quote