Re: cvs: php-src /ext/dom/tests dom005.phpt

From: Date: Thu, 30 Oct 2003 08:10:46 +0000
Subject: Re: cvs: php-src /ext/dom/tests dom005.phpt
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5095@lists.php.net to get a copy of this message
Hi On 10/29/03 6:04 AM, Ilia Alshanetsky wrote:
iliaa Wed Oct 29 00:04:41 2003 EDT
  Modified files:                  /php-src/ext/dom/tests	dom005.phpt   Log:
Fixed test. Index: php-src/ext/dom/tests/dom005.phpt diff -u php-src/ext/dom/tests/dom005.phpt:1.1 php-src/ext/dom/tests/dom005.phpt:1.2 --- php-src/ext/dom/tests/dom005.phpt:1.1 Mon Oct 27 12:36:44 2003 +++ php-src/ext/dom/tests/dom005.phpt Wed Oct 29 00:04:40 2003 @@ -15,13 +15,13 @@ --EXPECT-- --- save as XML <?xml version="1.0" standalone="yes"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
My system (libxml2-2.6.0 on Mac OS X 10.3) outputs lowercase html in the doctype.. I don't know, if libxml2 changed that on purpose. But both doctypes seem to validate... I'll ask on their mailinglist. To make the test work again, should we just str_replace("DOCTYPE html","DOCTYPE HTML",...) for the test? Or is their a better way to make it work with both outputs? chregu
<html><head><title>Hello world</title></head><body><p> This is a not well-formed<br/> html files with undeclared entities </p></body></html> --- save as HTML -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head><title>Hello world</title></head> <body><p>


« previous php.internals (#5095) next »