File: 1002_fix_serve_html-friendly-xhtml.patch

package info (click to toggle)
librdf-endpoint-perl 0.07-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 564 kB
  • ctags: 287
  • sloc: perl: 2,219; makefile: 29; xml: 3
file content (15 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix serve HTML-friendly XHTML
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2012-06-12

--- 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');