![]() |
#1 |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
HTML recipe output
The absence of a <!doctype...> declaration in HTML output for a recipe puts IE9 into quirks mode. I don't see any way to control this via the recipe API. Is this something that accomodated? IE9 quirks mode is so antiquated a lot of CSS doesn't work the way it should. I'm thinking ahead to KF8 which is HTML5/CSS3 (apparently) and wondering if the absence of the doctype will be an issue.
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Why do we care about IE9? The HTML output from the recipe system is not guaranteed to be any specific thing (it depends on the HTML offered by the source website, so adding a doctype isn't really feasible).
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
Quote:
The point is, as far as I can see calibre DELETES the doctype of the source. The easiest resolution (and most general) would be to retain the doctype. |
|
![]() |
![]() |
![]() |
#4 |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
One other thing along the same lines--news.py currently replaces the HTML5 tags ('article', 'aside', 'header', 'footer', 'nav', 'figcaption', 'figure', 'section') with 'div' -- something which should probably be controlled by a recipe API parameter in the near future.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure, if it turns out that it is necessary for something, changes could always be made. Note that currently no reader that I know of requires a doctype. EPUB (the only current format where this would be relevant), requires XHTML 1.1 so the doctype is superfluous.
Ebook reader application typically dont have to care about the long legacy of html soup present on the larger web. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTMLZ - Single HTML File Output | user_none | Calibre | 22 | 05-19-2011 02:33 AM |
Calibre Recipe HTML content differs from raw html of index.html. | krunk | Calibre | 4 | 09-20-2010 09:48 PM |
Mixed fonts in Calibre output (HTML to anything) | jasonb57 | Calibre | 2 | 09-06-2010 11:01 AM |
Is it possible to specify output format in recipe file | madcow_x2 | Calibre | 3 | 01-07-2010 04:10 PM |
Is there an intermediate html output? | Seabound | Calibre | 2 | 01-27-2009 01:46 AM |