[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: whitespace before the trailing slash

Subject: Re: whitespace before the trailing slash
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 3 Mar 2000 17:39:18 GMT
html trailing slash
> Not for HTML, but rather for another DTD which requires the whitespace
> syntax.

No DTD can require any particular white space within a tag.

The only reason for doing it is to use XML syntax on existing HTML
browsers and exploit their lax error handling.

HTML is not a XML language so <br /> should be an error but it turns out
that certain well known browsers accept it as long as the space is
there, but that isn't because the HTML dtd requries a space, it is just
because the parsing in HTML browsers is sufficiently broken that they
accept anything that looks more or less like html, so may as well use
this fact to get an xhtml browser `for free'.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.