Thread: Kobo Bug thread
View Single Post
Old 04-12-2018, 03:28 AM   #978
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by chrisridd View Post
Highlight the text "ante.&quot" at the end of the 4th paragraph. Choose "Highlight".

Switch to annotations.

The text is displayed as:

That's incorrect - something has converted the trailing text to a double quote.
That's more common than you might think, and it has a long history. Somewhere along the line, some people got the idea that the semicolon terminator character for HTML entities was optional, and "forgiving" web browsers were coded to correct for that mistake - just as they were to handle improperly nested tags and other common issues.

That's what you're seeing here. An ampersand, the letters "quot", and a semicolon constitute the HTML entity for the " character. I haven't looked at the firmware, but I'd wager that the Annotations module uses the web browser's rendering engine, and that that engine is designed to forgive dropped semicolons. Making the engine stricter can come at the price of exposing bad code in other books as being bad.
Rev. Bob is offline   Reply With Quote