xhtml validation error

evilgenius - August 5, 2009 - 07:30
Project:Framework
Version:6.x-2.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Framework as is works just fine but when I tried adding a <noscriipt> tag inside a block it returns an xhtml validation error.

The following code from w3schools returns a validation error:

<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>

Any clue? Thanks.

Refer to this thread for more information.

#1

andregriffin - August 5, 2009 - 07:50

Try replacing your doctype with HTML5. Don't worry, it degrades gracefully in all browsers (though who really care about IE6 at this point). You can code exactly as in XHTML 1.0 Strict.

Replace the beginning of your page.tpl up to the <title> tag with

<!DOCTYPE html>
<html lang="<?php print $language->language ?>"> 
  <head>
    <meta charset="utf-8" /> 
    <title><?php print $head_title ?></title>

#2

evilgenius - August 10, 2009 - 12:59
Status:active» fixed

It worked great Andre'! Thanks.

#3

System Message - August 24, 2009 - 13:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.