A HTML page structure is something like that:

<html>
<head> ... </head>
<body> ... </body>
</html>

Drupal allows me to add things inside the tag, using the hook: drupal_set_html_head, so I can make something likle that:

<head>
<link rel ... >
...
</head>

But Drupal doesn't allow me to add attributes in the tag, if I want to, I have to modify a template page "page.tpl.php" which is specific of a certain theme, I think that the possibility of adding attributes in the tag is necessary so drupal pages can be in conformance with another standards, for example, the eRDF when needed. This page shows some attributes that can go in the head tag:
http://oreilly.jungles.ru/webdesign/xhtml/ch03_07.htm

For example, the module I'm writing need to be in conformance with the eRDF specification, to accomplish that I need a "profile" attribute in the HEAD tag, I need this:

<head profile="http://purl.org/NET/erdf/profile">

But I have to edit the "page.tpl.php" of the theme I'm using, I think there should be some function like: drupal_set_html_head_attributes.

I was following this page in order to add RDF metadata inside the HTML: http://research.talis.com/2005/erdf/wiki/Main/RdfInHtml

What do you guys think?

Comments

rmanola’s picture

Assigned: rmanola » Unassigned
effulgentsia’s picture

Title: Attributes in the HEAD Tag » Profile attribute in the HEAD Tag
Status: Active » Fixed

RDFa and the profile attribute are in. Please re-open if there's other valid attributes for the HEAD tag that are missing. Adding flexible attribute support may make sense if there's sufficient use-case.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.