File: 1002_fix_serve_html-friendly-xhtml.patch

package info (click to toggle)
librdf-endpoint-perl 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 608 kB
  • sloc: perl: 2,256; xml: 191; makefile: 11; sh: 5
file content (16 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix serve HTML-friendly XHTML
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2012-06-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/RDF/Endpoint.pm
+++ b/lib/RDF/Endpoint.pm
@@ -481,7 +481,7 @@
 			my $gen			= RDF::RDFa::Generator->new( style => 'HTML::Head', namespaces => { %$ns } );
 			$gen->inject_document($doc, $sdmodel);
 			
-			my $writer	= HTML::HTML5::Writer->new( markup => 'xhtml', doctype => DOCTYPE_XHTML_RDFA );
+			my $writer	= HTML::HTML5::Writer->new( markup => 'xhtml', polyglot => 1, doctype => DOCTYPE_XHTML_RDFA );
 			$content	= encode_utf8( $writer->document($doc) );
 			$response->status(200);
 			$response->headers->content_type('text/html');