Invalid HTML added outside page tags

hass - January 19, 2008 - 14:35
Project:Devel
Version:7.x-1.x-dev
Component:devel_themer
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

This code makes my site totally invalid:

<span id="thmr_394" class="thmr_call">
  <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

...

</html>
</span>
<br />
<b>Fatal error</b>:  Allowed memory size of 37748736 bytes exhausted (tried to allocate 7882206 bytes) in <b>C:\Inetpub\wwwroot\drupal6\includes\common.inc</b> on line <b>2300</b><br />

Aside how much memory does devel require? We should add hook_requirement()...

#1

hass - January 19, 2008 - 15:10
Component:devel» devel_themer

#2

moshe weitzman - January 21, 2008 - 17:38
Status:active» by design

#3

hass - January 21, 2008 - 22:03
Status:by design» active

Moshe, why are you marking as by design? Wrong HTML code is by design? Are you really sure?

#4

moshe weitzman - January 22, 2008 - 01:04
Status:active» by design

invalid HTML is by design here. this is not meant for production use.

#5

hass - January 22, 2008 - 07:58

However this is for production or not - isn't there no way to get this fixed? If not i'm made to turn of devel_themer while developing only to figure out if my site is valid... this makes the module unusable, while a validator should be in place - every time.

#6

moshe weitzman - January 22, 2008 - 15:28

no, it isn't possible to fix and still give info on page.tpl.php theme call. just disable this module before validating. there is a handy link in the devel block. i disagree that makes the module "totally unusable" but if you think that, don't use it.

#7

hass - January 22, 2008 - 17:34

It's not unusable, while i cannot switch off/on in practical use the submodule every two seconds to get a validation in parallel.

 
 

Drupal is a registered trademark of Dries Buytaert.