At 06:05 PM 2/19/2015 -0700, Jesse wrote:
The shortened doctype looks odd, but is the new official recommendation for HTML 5. Koha has changed to this for the OPAC and (I believe the staff side).
Yup, but I tried that (explicitly declaring HTML5) and it throws up dozens of errors (50+ of them yui css) and hundreds of warnings. Putting it back to XHTML substantially decreases the list. Best -- Paul
2015-02-19 17:59 GMT-07:00 Paul A <<mailto:paul.a@navalmarinearchive.com>paul.a@navalmarinearchive.com>: doc-head-open.inc in 3.08 started by adding:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" Â Â "<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3.18 just adds <!DOCTYPE html> -- which gives rise to "errors" in most verification processes (W3C etc). Was there a reason to change this? (Can't find anything in bugs.)
I'm playing with the Google mod_pagespeed in Apache 2.4, and adding the full DOCTYPE seems necessary. I haven't (yet) seen a downside to adding it back in.
Best -- Paul
_______________________________________________ Koha-devel mailing list <mailto:Koha-devel@lists.koha-community.org>Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : <http://www.koha-community.org/>http://www.koha-community.org/ git : <http://git.koha-community.org/>http://git.koha-community.org/ bugs : <http://bugs.koha-community.org/>http://bugs.koha-community.org/
-- Jesse Weaver
--- Maritime heritage and history, preservation and conservation, research and education through the written word and the arts. <http://NavalMarineArchive.com> and <http://UltraMarine.ca>
The shortened doctype looks odd, but is the new official recommendation for HTML 5. Koha has changed to this for the OPAC and (I believe the staff side).
The above is 100% correct, as were the other replies you have received.
Yup, but I tried that (explicitly declaring HTML5)
"<!DOCTYPE html>" explicitly declares an HTML5 document.
of errors (50+ of them yui css)
YUI CSS is not HTML, and thus are completely irrelevant to questions about XHTML vs. HTML5. The W3C's markup validation service will correctly validate HTML5: http://validator.w3.org/ To sum up: The doctype declarations in Koha's OPAC and staff client templates are correct, and are not the cause of your errors. Not all templates are 100% valid, but you should see few errors related to HTML markup. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (2)
-
Owen Leonard -
Paul A