View Single Post
Old 07-27-2013, 12:21 PM   #5
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Quote:
Originally Posted by tshering View Post
If you look at the xhtml files, you will notice that in each file the tag <span class="koboSpan" id="kobo.6.2"> is not closed before the next kobo tag, <span class="koboSpan" id="kobo.6.3">, opens.
This is just tag nesting, perfectly valid and absolutely essential to some designs and layouts.

Quote:
Originally Posted by tshering View Post
Instead, it is closed at the end of the chapter.
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.

Quote:
Originally Posted by tshering View Post
You can try this: put </span> in front of <span class="koboSpan" id="kobo.6.3"> in each file, and delete the last but one </span> in the paragraph (= in the chapter).
With the spans being properly balanced as they are, this would actually not be a good thing Not saying the way it is now doesn't break highlighting (I've never tried nor has it been reported to me).
jgoguen is offline   Reply With Quote