There's a simple trick to fix quite a few pesky validation errors -- swap to
an HTML5 doctype instead of the XHTML spec, which really did go too far. It
mistakenly removes the target attribute from links, for instance, and it's
not until HTML5 that you can nest block-displayed elements within a link, as
we commonly do already. That said, while XML well-formedness is now optional
as before, it can still help in catching layout bugs. And I've known many
systems which make it hard if not impossible to swap doctypes, particularly
if they're adding extra metadata. So an HTML5 doctype might be out of reach
for many...
Louis.
On Mon, Jun 20, 2011 at 1:46 PM, MJ Ray <[log in to unmask]> wrote:
> Ken Irwin <[log in to unmask]>
> > Do catalogs even validate out-of-the-box? (I've never set up an OPAC
> > before, I have no idea what "out-of-the-box" might actually look
> > like.)
>
> Testing the demos suggests that koha 3.2 only fails because of a
> stupid mistake (missing a / on a <hr> when we declare as xhtml)
> and koha 3.4 has a few extra errors that may arise from the recent
> switch to template toolkit.
>
> So validation is definitely achievable with Koha.
>
> Hope that helps,
> --
> MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
> http://koha-community.org supporter, web and LMS developer, statistician.
> In My Opinion Only: see http://mjr.towers.org.uk/email.html
> Available for hire for Koha work http://www.software.coop/products/koha
>
|