You are here: Re: Unexpected behavior when creating xhtml documents « PHP Programming Language « IT news, forums, messages
Re: Unexpected behavior when creating xhtml documents

Posted by Edward Z. Yang on 06/08/07 01:19

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marijn wrote:
> unfortunately DOM/XML documentation is very poor by itself. Especially
> concerning this topic. Is the problem solvable by installing another
> DOM/XML Library?

Hi, you are welcome to submit specific concerns and clarifications to
the PHP documentation team at news://news.php.net/php.doc

The DOM extension is built off of libxml, so quirks like these are
likely bugs in libxml and not DOM. Running your snippet on PHP 5.0.3,
with libxml 2.6.11, I get (slightly formatted for readability):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//
W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/
xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Testing the&#13; DOM in PHP5</title>
<base href="http://test.beatter.com"/>
<meta http-equiv="Content-Type" content="application/xhtml+xml;UTF-8"/>
</head>
<body/>
</html>

Which is the expected behavior. As you may already know, 5.2.3 and
2.6.28 are the latest versions for PHP and libxml respectively, so you
may be running on an ancient version of libxml. If this is the case,
please upgrade or recompile the extension with a newer version of libxml.

- --
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <htmlpurifier.org> Anti-XSS HTML Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaK6XqTO+fYacSNoRAj8nAJ94DFXP2vL53rYKZE8oZpqr8JlpbACfWQgX
5kpzr7VMP7744olgYN8T9/M=
=ESgZ
-----END PGP SIGNATURE-----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация