Git Product home page Git Product logo

Comments (8)

robhudson avatar robhudson commented on July 19, 2024

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.

robhudson avatar robhudson commented on July 19, 2024

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.

g2p avatar g2p commented on July 19, 2024

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.

robhudson avatar robhudson commented on July 19, 2024

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.

g2p avatar g2p commented on July 19, 2024

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.

g2p avatar g2p commented on July 19, 2024

Fixed. The toolbar now works fine in xhtml, please pull.

from django-debug-toolbar.

robhudson avatar robhudson commented on July 19, 2024

Pulled. Thanks for the patch!

from django-debug-toolbar.

aaugustin avatar aaugustin commented on July 19, 2024

I added a test in 186fcb3.

from django-debug-toolbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.