Open elmimmo opened 10 years ago
Just guessing, but any chance this is due to the spec being XHTML5 instead of just plain HTML5? XHTML tends to require more verbose declarations.
http://www.sitepoint.com/web-foundations/differences-html-xhtml/
I do not think so, since what XHTML imposes over HTML is only the stricter generic XML syntax. link
is not an element defined in any way by XML, and thus which attributes it requires and which ones are optional is defined by the HTML spec, XML imposing none.
Applies to Google Play Books too (as of today).
Not technically a bug. The XHTML spec most definitely does specify the required attributes on the link element and the type attribute is one of them: http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_linkmodule
Actually, the attributes listed there are not required. It is just a list of the possible attribute types. If you look at the DTD, you'll see that the entire list is marked as "IMPLIED", and none of them as "REQUIRED". http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/dtd_module_defs.html#a_module_Link
@jstallent You are correct. I hadn't looked at the DTD. The documentation for the XML Schema states that lists separated by commas indicate that the items are required. I should have read that one more closely.
Kindle ignores external stylesheets in KF8 if the declaration of the
link
element lacks thetype
attribute, even though such is not a requirement in HTML5 (but was in XHTML1.1 and before).i.e. This will not work:
but this will:
Both HTML The Living Standard and HTML5 specifications declare the attribute as “purely advisory”.
Interestingly, Kindle Previewer when in Kindle DX mode (but not in any other mode), which purportedly uses the Mobipocket variant inside the .mobi file, not the KF8 variant, does use the external stylesheet, which might imply that the bug does not apply to old Kindle devices.