Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > IE 8 loses last tag(s) and displays </ at bottom of page

Reply
Thread Tools Display Modes

IE 8 loses last tag(s) and displays </ at bottom of page

 
 
Martin Kultermann
Guest
Posts: n/a

 
      06-24-2010
Hi everyone, I have a java web app that generates HTML pages and sends them
to IE 8 clients.

The HTML appears to be well formed and includes all required ending tags and
I have verified that the entire HTML stream is flushed to the client and that
the proper content length is set in the response headers.

On some pages, the client page seems to cut off somewhere near the end of
the HTML (sometimes within a hidden input definition or usually within the
trailing </html> tag.

The view source shows me that the end of the html is missing which explains
why the </ appears at the end of the page.

It does not happen on every page and I have been unable to determine the
pattern that makes it happen.

Any ideas on what may be causing this or where to look will be greatly
appreciated.

Cheers

Martin Kultermann
eStar Communications
 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a

 
      06-24-2010

"Martin Kultermann" <> wrote in
message news:1426A9E7-F0AB-4450-A97A-...
> Hi everyone, I have a java web app that generates HTML pages and sends
> them
> to IE 8 clients.
>
> The HTML appears to be well formed and includes all required ending tags
> and
> I have verified that the entire HTML stream is flushed to the client and
> that
> the proper content length is set in the response headers.
>
> On some pages, the client page seems to cut off somewhere near the end of
> the HTML (sometimes within a hidden input definition or usually within the
> trailing </html> tag.
>
> The view source shows me that the end of the html is missing which
> explains
> why the </ appears at the end of the page.
>
> It does not happen on every page and I have been unable to determine the
> pattern that makes it happen.
>
> Any ideas on what may be causing this or where to look will be greatly
> appreciated.
>
> Cheers
>
> Martin Kultermann
> eStar Communications


You're going to have to look at tracing the underlying data packets and see
if there's a problem there, IE will just render what is has been sent. I'm
guessing that the Content-Length will be off slightly - you may think it's
correct, but if you're sending any unicode characters and not taking into
account double bytes, for instance, you could be a few bytes off on your
length calculation.

Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look at
the response data headers and content for these requests.

--
Dan

 
Reply With Quote
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      06-24-2010
Developer-specific resources include:

MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/For...opment/threads

Tip: When posting in Developer forums, always include a link to your web
site or test pages in your first post.

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/d...b-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/...easeNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/


Martin Kultermann wrote:
> Hi everyone, I have a java web app that generates HTML pages and sends
> them
> to IE 8 clients.
>
> The HTML appears to be well formed and includes all required ending tags
> and
> I have verified that the entire HTML stream is flushed to the client and
> that the proper content length is set in the response headers.
>
> On some pages, the client page seems to cut off somewhere near the end of
> the HTML (sometimes within a hidden input definition or usually within the
> trailing </html> tag.
>
> The view source shows me that the end of the html is missing which
> explains
> why the </ appears at the end of the page.
>
> It does not happen on every page and I have been unable to determine the
> pattern that makes it happen.
>
> Any ideas on what may be causing this or where to look will be greatly
> appreciated.
>
> Cheers
>
> Martin Kultermann
> eStar Communications


 
Reply With Quote
 
Martin Kultermann
Guest
Posts: n/a

 
      06-24-2010
Thanks a lot Dan, I think this is solved.

I was writing the client response stream to a file as well to help with the
diagnosis.
The length of that file reported by Windows, the Content Length that I
placed into the response header and the body size reported by Fiddler are all
exactly the same.

Then I tried removing the Content Length header to see if that makes a
difference and it did, it now seems to work.

I was under the impression that performance would suffer if you did not
specify a content length, because the client would not know when the stream
is done or might wait for more. Do you know if that's true?

"Dan" wrote:

>
> "Martin Kultermann" <> wrote in
> message news:1426A9E7-F0AB-4450-A97A-...
> > Hi everyone, I have a java web app that generates HTML pages and sends
> > them
> > to IE 8 clients.
> >
> > The HTML appears to be well formed and includes all required ending tags
> > and
> > I have verified that the entire HTML stream is flushed to the client and
> > that
> > the proper content length is set in the response headers.
> >
> > On some pages, the client page seems to cut off somewhere near the end of
> > the HTML (sometimes within a hidden input definition or usually within the
> > trailing </html> tag.
> >
> > The view source shows me that the end of the html is missing which
> > explains
> > why the </ appears at the end of the page.
> >
> > It does not happen on every page and I have been unable to determine the
> > pattern that makes it happen.
> >
> > Any ideas on what may be causing this or where to look will be greatly
> > appreciated.
> >
> > Cheers
> >
> > Martin Kultermann
> > eStar Communications

>
> You're going to have to look at tracing the underlying data packets and see
> if there's a problem there, IE will just render what is has been sent. I'm
> guessing that the Content-Length will be off slightly - you may think it's
> correct, but if you're sending any unicode characters and not taking into
> account double bytes, for instance, you could be a few bytes off on your
> length calculation.
>
> Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look at
> the response data headers and content for these requests.
>
> --
> Dan
>
> .
>

 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      06-25-2010
It depends on the web server, and if it's a true stream or just buffered
content. If it's buffered, most web servers will add the Content-Length
header themselves. If there's no header, the browser will just accept the
data until the connection is closed, so this shouldn't cause you any
problems unless your application never closes the TCP socket after sending
the data.

Dan


"Martin Kultermann" <> wrote in
message news:676D9AF0-3A74-4882-9C72-...
> Thanks a lot Dan, I think this is solved.
>
> I was writing the client response stream to a file as well to help with
> the
> diagnosis.
> The length of that file reported by Windows, the Content Length that I
> placed into the response header and the body size reported by Fiddler are
> all
> exactly the same.
>
> Then I tried removing the Content Length header to see if that makes a
> difference and it did, it now seems to work.
>
> I was under the impression that performance would suffer if you did not
> specify a content length, because the client would not know when the
> stream
> is done or might wait for more. Do you know if that's true?
>
> "Dan" wrote:
>
>>
>> "Martin Kultermann" <> wrote in
>> message news:1426A9E7-F0AB-4450-A97A-...
>> > Hi everyone, I have a java web app that generates HTML pages and sends
>> > them
>> > to IE 8 clients.
>> >
>> > The HTML appears to be well formed and includes all required ending
>> > tags
>> > and
>> > I have verified that the entire HTML stream is flushed to the client
>> > and
>> > that
>> > the proper content length is set in the response headers.
>> >
>> > On some pages, the client page seems to cut off somewhere near the end
>> > of
>> > the HTML (sometimes within a hidden input definition or usually within
>> > the
>> > trailing </html> tag.
>> >
>> > The view source shows me that the end of the html is missing which
>> > explains
>> > why the </ appears at the end of the page.
>> >
>> > It does not happen on every page and I have been unable to determine
>> > the
>> > pattern that makes it happen.
>> >
>> > Any ideas on what may be causing this or where to look will be greatly
>> > appreciated.
>> >
>> > Cheers
>> >
>> > Martin Kultermann
>> > eStar Communications

>>
>> You're going to have to look at tracing the underlying data packets and
>> see
>> if there's a problem there, IE will just render what is has been sent.
>> I'm
>> guessing that the Content-Length will be off slightly - you may think
>> it's
>> correct, but if you're sending any unicode characters and not taking into
>> account double bytes, for instance, you could be a few bytes off on your
>> length calculation.
>>
>> Try something like Fiddler2 http://www.fiddler2.com/fiddler2/ and look
>> at
>> the response data headers and content for these requests.
>>
>> --
>> Dan
>>
>> .
>>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59