Projects ⇒ Bugs ⇒ #982: default theme XHTML 1.0 invalid, simple sollution. Latest CVS. ⇒ CPG Dragonfly™ CMS
Bug #982 default theme XHTML 1.0 invalid, simple sollution. Latest CVS.
Project: Dragonfly 9.0.3 -> 9.2 Themes Category: Themes
Submitted: Sunday, August 26, 2007 (13:58:34) Modified: Sunday, August 26, 2007 (21:47:08)
Status: Bogus Assigned to:
PHP Version: 5.2 HTTPD Server: Apache 2.2

View/Vote Add Comment

by: whatrevolution
Description:
------------
I found this first in 9.1.2.1 core stable, and just now in today's CVS Snapshot.

/themes/default/template/header.html
Replace Line 3 with:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{S_LANGCODE}" dir="{S_TEXTDIR}" lang="{S_LANGCODE}">

Now. I found this forum thread, which had this problem solved last month. I found it after I wrote this bug report, and the forum solution is the same.

The bug is in the latest CVS Snapshot, in both "default" and "dragonfly" themes, and is not being fixed by most dragonfly themers/users, since the thread is marked [solved] but CVS and stable do not have it.

Reproduce code:
---------------
/themes/default/template/header.html

Line 3:
<html dir="{S_TEXTDIR}" xml:lang="{S_LANGCODE}">

Expected result:
----------------
"Validation Output" wrote
This Page Is Valid XHTML 1.0 Transitional!


Actual result:
--------------
I chose a random cpgnuke.com member from the "Who Is Where" block, and validated their profile listed website.

http://validator.w3.org/check?uri=http://www.3ddesktops.co.uk/

The first error:
"Validation Output" wrote
Line 6, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml.


That's the same error I got on my test site.

All themes that are built from the default template probably still contain this bug. I'll forum this, so you can CVS the fix and complete this ticket.

That's the only error I get for my test site, default theme.
by: Phoenix
You're mixing versions without examining and understanding what is going on in cvs.
by: whatrevolution
Taking conversation back to http://cpgnuke.com/Forums/viewtopic/t=20391.html
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español