Comments (8)
It's also annoying if one uses the HTML4 doc type and Django itself doesn't output HTML4 compliant markup -- but that's another argument.
I do agree, however, that the debug toolbar should match Django's default doc type, so I'll be cleaning this up. Thanks for the report.
from django-debug-toolbar.
Debug toolbar is now XHTML complaint. If you find areas that are still not valid, please let me know. Commit: 930669f
from django-debug-toolbar.
I have:
DEFAULT_CONTENT_TYPE = 'application/xhtml+xml'
XTHML-compliant browsers just refuse to render the page.
Is this worth a release?
from django-debug-toolbar.
My goal here is to match Django's default output of XHTML tagged content and not get in the way of validating your markup. I would hope those that do need to serve their content as XML aren't using the toolbar in any sort of production environment. If you're testing locally and want to validate, it's easy enough to turn off the toolbar while you're doing so. Any specific validation errors I'm happy to fix, however.
from django-debug-toolbar.
You're right, it's not meant for production.
I got the master branch and had another problem (document.write), I'll fork and fix it.
from django-debug-toolbar.
Fixed. The toolbar now works fine in xhtml, please pull.
from django-debug-toolbar.
Pulled. Thanks for the patch!
from django-debug-toolbar.
I added a test in 186fcb3.
from django-debug-toolbar.
Related Issues (20)
- Move Django Debug Toolbar to Django Commons HOT 6
- Checkboxes not all right-aligned HOT 3
- Error after update to 4.4.1 (debug_toolbar.E001) The Django Debug Toolbar can't be used with tests HOT 5
- Version 4.4.1 changes the look of DRF browsable API HOT 8
- Just Enabling Debug Toolbar as Middleware creates Delays of Several Seconds on each request HOT 12
- I can no longer use iptools.IpRangeList for INTERNAL_IPS HOT 5
- SVG definitions have width in rem which throws console errors HOT 5
- Time panel in Debug Toolbar not clickable due to missing <a> tag HOT 1
- There is a delay in response to requests. HOT 1
- Using the toolbar with Replit HOT 4
- Dark mode text needs higher contrast
- AttributeError: This StreamingHttpResponse instance has no `content` attribute. Use `streaming_content` instead. HOT 5
- Jinja2 dependency breaks default install HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 2
- Release 4.4.4 seems to require Jinja2 HOT 3
- What time measures the "domLoading" entry under the time panel? HOT 2
- Crash on non-text views
- History sidebar panel keeps loading infinitely? HOT 6
- ImportError in 4.4.6 release cannot import name '_HTML_TYPES' from 'debug_toolbar.middleware' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-debug-toolbar.