This service tunnels HTTP requests and changes the MIME type of text/html
resources to application/xml
, application/xhtml+xml
or any other MIME type. This allows accurate testing with XHTML user agents.
When an input document is not well-formed, the unmodified source is output. An XHTML user agent will then detect the well-formedness violation. Otherwise, a comment <!-- XHTML Proxy has successfully processed this page. -->
is added at the end of the page.
Testing XHTML documents in XHTML user agents is important as there are subtle differences between HTML and XHTML:
document.write()
is not supported in XHTMLDIV
or table > tbody > tr
work in HTML, but not in XHTML
might not get resolved by XHTML user agentsDon't hesitate to send your comments to Christoph Schneegans (christoph@schneegans.de).
HTTP requests from this service always contain the header User-Agent: XHTML Proxy (+https://schneegans.de/xp/)
. Please inform me if you observe excessive traffic to your site.