Re: Regexp for xhtml compliant matching

From: Date: Wed, 03 Dec 2003 16:42:51 +0000
Subject: Re: Regexp for xhtml compliant matching
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24093@lists.php.net to get a copy of this message
Hi, Klaus, Perhaps I am displaying my ignorance, but...
add an embeded html document, and it's not so easy: <html>
    <head>
        <title />
    </head>
    <body>
        <p>some content</p>
        <!-- embedded documents are possible, -->
        <!-- though still rather uncommon -->
        <html>
            <head><title /></head>
            <body><p>some content</p></body>
        </html>
    </body>
</html>
Is it legal HTML (or XHTML) to have an HTML tag within another HTML tag? Not to start an XML discussion...
It's not !

« previous php.pear.dev (#24093) next »