[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Preventing tags from collapsing
> (it's very intuitive to go looking for a switch to turn off the > minimisation...) Yes but in the case of minimising, or not, <textarea> at least the setting of such a switch would produce something correct when viewed as html or xhtml. What would worry me though is sending documents that contained EMPTY elements such as <br/> or even <br /> with an html mime type. There the / is a syntax error (or does entirely the wrong thing, depending on exactly which SGML declaration for HTML you are using) so basically you are _relying_ on non-existing error reporting by popular browsers in order to send out bad html but have it display. (It may be 100% valid XHTML, but if you are sending it as HTML then it is just HTML with syntax errors it seems to me.) There are good reasons for browsers not reporting errors since the reader may have no way of fixing the errors anyway, but I thought the usual advice was to be strict in what you sent out and forgiving in what you accepted. This advice seems to be warped in the case of (X)HTML as HTML validity is so undervalued that it is acceptable (even the W3C does it for their own pages) to send out invalid html so long as its valid in some other language, and to rely on the browsers to be lax enough not to report the syntax differences. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|