Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #823 - cleaned up invalid HTML in debug error template. Thanks,…

… Sune

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bb505a87ac473250dbff48ac8390013461aa7f1b 1 parent b160356
Jacob Kaplan-Moss authored November 17, 2005

Showing 1 changed file with 10 additions and 8 deletions. Show diff stats Hide diff stats

  1. 18  django/views/debug.py
18  django/views/debug.py
@@ -145,6 +145,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
145 145
     #requestinfo h3 { margin-bottom:-1em; }
146 146
   </style>
147 147
   <script type="text/javascript">
  148
+  //<!--
148 149
     function getElementsByClassName(oElm, strTagName, strClassName){
149 150
         // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
150 151
         var arrElements = (strTagName == "*" && document.all)? document.all :
@@ -188,6 +189,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
188 189
       s.innerHTML = s.innerHTML == uarr ? darr : uarr;
189 190
       return false;
190 191
     }
  192
+    //-->
191 193
   </script>
192 194
 </head>
193 195
 <body>
@@ -276,7 +278,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
276 278
           <th>Value</th>
277 279
         </tr>
278 280
       </thead>
279  
-      </tbody>
  281
+      <tbody>
280 282
         {% for var in request.GET.items %}
281 283
           <tr>
282 284
             <td>{{ var.0 }}</td>
@@ -286,7 +288,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
286 288
       </tbody>
287 289
     </table>
288 290
   {% else %}
289  
-    <p>No GET data<p>
  291
+    <p>No GET data</p>
290 292
   {% endif %}
291 293
 
292 294
   <h3 id="post-info">POST</h3>
@@ -298,7 +300,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
298 300
           <th>Value</th>
299 301
         </tr>
300 302
       </thead>
301  
-      </tbody>
  303
+      <tbody>
302 304
         {% for var in request.POST.items %}
303 305
           <tr>
304 306
             <td>{{ var.0 }}</td>
@@ -308,7 +310,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
308 310
       </tbody>
309 311
     </table>
310 312
   {% else %}
311  
-    <p>No POST data<p>
  313
+    <p>No POST data</p>
312 314
   {% endif %}
313 315
 
314 316
   <h3 id="cookie-info">COOKIES</h3>
@@ -320,7 +322,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
320 322
           <th>Value</th>
321 323
         </tr>
322 324
       </thead>
323  
-      </tbody>
  325
+      <tbody>
324 326
         {% for var in request.COOKIES.items %}
325 327
           <tr>
326 328
             <td>{{ var.0 }}</td>
@@ -330,7 +332,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
330 332
       </tbody>
331 333
     </table>
332 334
   {% else %}
333  
-    <p>No cookie data<p>
  335
+    <p>No cookie data</p>
334 336
   {% endif %}
335 337
 
336 338
   <h3 id="meta-info">META</h3>
@@ -341,7 +343,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
341 343
         <th>Value</th>
342 344
       </tr>
343 345
     </thead>
344  
-    </tbody>
  346
+    <tbody>
345 347
       {% for var in request.META.items|dictsort:"0" %}
346 348
         <tr>
347 349
           <td>{{ var.0 }}</td>
@@ -360,7 +362,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
360 362
         <th>Value</th>
361 363
       </tr>
362 364
     </thead>
363  
-    </tbody>
  365
+    <tbody>
364 366
       {% for var in settings.items|dictsort:"0" %}
365 367
         <tr>
366 368
           <td>{{ var.0 }}</td>

0 notes on commit bb505a8

Please sign in to comment.
Something went wrong with that request. Please try again.