html5 validation issues

Bug #1057050 reported by Uranium235
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pluck CMS
Fix Committed
Low
Unassigned

Bug Description

I am trying to make a "valid" html5 template.

I found the following issues:

1.
The action attribute of the form element in the module contactform cannot be empty for html5.
It should point to itself.

Possible fixes in contactform.site.php:

  <form method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" id="contactform">
or
  <form method="post" action="#" id="contactform">
or
reconstruct the current URI with SITE_URL and ...

2.
The metadata generated in functions.site.php

The meta name="language" is invalid for html5 and is redundant, as the attribute lang (and xml:lang) for the html tag serve this purpose. This is also unnecessary for xhtml and one can argue that by now this attribute is obsolete, as (all major) search engines respect the attributes in the html tag.

The meta name="title" is invalid for html5 and is redundant, as the title tag serves this purpose. Similar argument as above.
see http://themeaningofweb.blogspot.de/2008/10/difference-between-and-nametitle-tags.html

If the two meta tags are dropped and the contactform fixed, pages can easily be made html5 "valid".
Haven't checked albums or blog module though.

Related branches

Revision history for this message
Uranium235 (uranium235) wrote :
Changed in pluck-cms:
status: New → Fix Committed
Changed in pluck-cms:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.