xsl-list
[Top] [All Lists]

Re: [xsl] zero width no-break space to prevent tag minimisation

2008-10-16 11:56:51
At 2008-10-16 16:17 +0100, David Carlisle wrote:
     Andrew> I don't think it's a bug... as far as I understand, IE
    Andrew> will always use its SGML parser regardless of whether its
    Andrew> parsing html or xhtml, and because of that <div/> is


This isn't strictly true if you do the right thing and send xhtml with
an xhtml or xml mime type IE does use its XML parser. It just doesn't
render the result the way you expect by default, it renders it as a
folding xml source tree.

The following instance renders correctly in Mozilla and Opera but the underscore bleeds in Internet Explorer from the empty div to the end of the page ... note that a global search and replace of "< " to "<" must be done first as I wanted to avoid mailer problems:

< ?xml version="1.0" encoding="utf-8"?>
< !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";>
< head>
 < title>test< /title>
 < meta http-equiv=
       "Content-type" content='text/html; charset="utf-8"' />
< /head>
< body>
< div>Div is normal< /div>
< div style="font-style:italic">Div is italic< /div>
< div style="text-decoration:underline" />
< div>No underline< /div>
< div style="font-weight:bold">< /div>
< div>No underline or bold< /div>
< /body>
< /html>

Is this not a browser problem?

. . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>