Re: Strange line breaks

For what it's worth this is IE only (and goes if you push it into quirks
mode (using the developer tools on F12 for example) ) and shows up in
all editions of XML since the 3rd edition.

It's the handling of <a name=""> elements which seem to be set as display
rather than inline.

really the fault is in the document rather (or as well as) in IE as it's
invalid. It has an xhtml DTD declaration at the top and may possibly be
valid to that but that's irrelevant as it's served aa text/html and it
is certainly invalid as HTML.

Spurious line breaks occur in other places as well (such as after the
initial "1" in the table of contents).


If you view the note in Firefox (view selection) then you see

    <a name="dtd" id="dtd">Note
    that it is possible to construct a well-formed document containing a
    </a><a href="#NT-doctypedecl">doctypedecl</a>
     that neith


with a spurious <a name="dtd" id="dtd"> around the first part of the
text This comes about as Firefox tries to recover from the invalid use
of <a../> syntax in the previous heading. Presumably IE8s recovery is
slightly different and has a worse visual effect.


Best would be to generate the spec as html if it is going to be served
as text/html. Failing that, avoid using empty a with name and stick the
ids on the containing element.


Using xslt2's xhtml rather than xml output type might help, assuming
this is still all generated with xmlspec/xslt.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Received on Monday, 21 December 2009 15:04:46 UTC