@@ -284,7+284,7 @@ class ExtendedDocument extends DOMDocument {
static function initHTML5($doc = null) {
if (is_null($doc)) { $doc = new ExtendedDocument(); }
static function initHTML5($doc = null) {
if (is_null($doc)) { $doc = new ExtendedDocument(); }
- $doc->loadHTML5('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html><html></html>'); // this seems to be the only way to get the DOCTYPE set properly.
+ $doc->loadHTML5('<?xml version="1.0" encoding="utf-8"?>'."\n".'<!DOCTYPE html>'."\n".'<html></html>'); // this seems to be the only way to get the DOCTYPE set properly.