Re: short_open_tag

From: Date: Tue, 12 Dec 2000 16:33:35 +0000
Subject: Re: short_open_tag
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40993@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: >> XHTML files start with a <?xml ?> declaration, making this a >> increasingly common problem. > > Hm. I wonder which browser is out there that can make any use of this? Or > is it just "we are being latest-buzzword-compliant"? Most browsers have no problem dealing with XHTML compliant HTML, that is, they handle <br/> and friends properly. Other XML requirements in XHTML are only additional constraints on case, on attribute quotes and the like. XHTML compliant code has the advantage of being parseable with XML parsers (of course) and thus being easier to handle with tools. You can parse XML without knowing a DTD, you cannot do this with SGML. > MK>> I think short_open_tag = off is the sensible default setting. Among other > > Given that it will break *a real hell of a lot* of existing code - don't > think so. Most people use <? syntax because it's shorter this way (and > ASP-ish too). <? still is a violation of XML, and probably of SGML, too. There was and still is a reason for recommending the use of <?php. Kristian -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/

« previous php.dev (#40993) next »