View Single Post
Old 02-23-2010, 10:21 AM   #210
Hamlet53
Nameless Being
 
Quote:
Originally Posted by Valloric View Post
You get karma for making me laugh.

But what non-fatal errors are you talking about?



That's HTML Tidy. It's configured to preserve named entities and character references, but sometimes it just ignores that and does its own thing. Yeah. That's right. It's a lovely piece of code, that Tidy.

But really... everything in an epub is Unicode. There are things like & nbsp; that you want to see in the code, but other than those hard-to-distinguish characters, I really don't see the point of character references. So personally, I'm not that bothered by it.

And either way, an epub renderer doesn't care.
Usually the event happens when switching from code few to book view. I suspect that it does have something to to with TIDY. It often is trigered by open tags.

One thing I've noticed about the use of TIDY; it often 'corrects' code in a way I don't want. My HTML editor of choice is HTML Kit and this includes TIDY as a plugin. However, it produces a side-by-side comparison of original code and corrected with changes highlighted.