X
Tap here to go to the mobile version of the site.

Support Forum

Part way through a particular web page, HTML stops being rendered

Posted

I have an internal web page, and one of my users reported to me that it looked wrong in Firefox 5.0.

The page just has VERY simple HTML; it doesn't use CSS, but it has font tags with colors specified. The code has been generated by code, so it is completely uniform from line to line. Everything renders correctly for so many lines, and then all of a sudden the HTML stops rendering, and the remaining content of the file is displayed in plain text. You can easily View Source on the page and verify that the code is intact and correct. I am baffled by this issue that only seems to affect Firefox 5.o.

Although it's an internal web page, I've made a version of it publically available in case somebody would like to take a look at it. Any insight you have will be appreciated!

http://pulseofradio.com/public/posts/test.asp

I have an internal web page, and one of my users reported to me that it looked wrong in Firefox 5.0. The page just has VERY simple HTML; it doesn't use CSS, but it has font tags with colors specified. The code has been generated by code, so it is completely uniform from line to line. Everything renders correctly for so many lines, and then all of a sudden the HTML stops rendering, and the remaining content of the file is displayed in plain text. You can easily View Source on the page and verify that the code is intact and correct. I am baffled by this issue that only seems to affect Firefox 5.o. Although it's an internal web page, I've made a version of it publically available in case somebody would like to take a look at it. Any insight you have will be appreciated! http://pulseofradio.com/public/posts/test.asp

Modified by Voidsong

Chosen solution

I think you are not closing your FONT color tags correctly. For example:


<FONT face='arial' size=-1>6/13/2011 5:02:52 AM(EST): <STRONG><FONT COLOR='RED'>WUUQ </STRONG></FONT><FONT COLOR='BLACK'>logged in as: <STRONG><FONT COLOR='RED'>prepcw6 </STRONG></FONT><FONT COLOR='BLACK'> from <STRONG><FONT COLOR='RED'>66.18.36.6 </STRONG></FONT><FONT COLOR='BLACK'><HR>

When you start a run of BLACK, you aren't ending it. Each line ends with an opening FONT color tag. This results in deep nesting that apparently exceeds some threshold in Firefox.

Second, you've crossed the STRONG and FONT tags:


<STRONG><FONT>text node</STRONG></FONT>

This would be better written:


<STRONG><FONT>text node</FONT></STRONG>

For efficiency, if the STRONG tags are always red, you could use CSS and get rid of all the font color tags.


<style type="text/css"> body {color:black} strong {color:red} </style>
Read this answer in context 0

Additional System Details

Sites Affected

http://pulseofradio.com/public/posts/test.asp

Installed Plug-ins

  • LogMeIn, Inc. Remote Access Components
  • Office Plugin for Netscape Navigator
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.0
  • Shockwave Flash 10.3 r181
  • Adobe Shockwave for Director Netscape plug-in, version 11.5.8.612
  • Next Generation Java Plug-in 1.6.0_23 for Mozilla browsers
  • Yahoo Application State Plugin version 1.0.0.7
  • 4.0.60310.0
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • wpidetector
  • BlackBerry WebSL Browser Plug-In
  • Google Update
  • XStandard (Unicode)
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • DRM Netscape Network Object

Application

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

More Information

Application Basics
Name
Firefox
Version
5.0
User Agent
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Profile Directory
Open Containing Folder
Enabled Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Firebug
1.8.0b5
true
firebug@software.joehewitt.com
Java Console
6.0.23
true
{CAFEEFAC-0016-0000-0023-ABCDEFFEDCBA}
Java Quick Starter
1.0
true
jqs@sun.com
LogMeIn, Inc. Remote Access Plugin
1.0.0.664
true
LogMeInClient@logmein.com
Web Developer
1.1.9
true
{c45c406e-ab73-11d8-be73-000a95be3b12}
BarTab
2.0
false
bartap@philikon.de
Microsoft .NET Framework Assistant
1.1
false
{20a82645-c095-46ed-80e3-08825760534b}
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.places.smartBookmarksVersion
2
browser.startup.homepage_override.buildID
20110615151330
browser.startup.homepage_override.mstone
rv:5.0
browser.tabs.warnOnClose
false
extensions.lastAppVersion
5.0
general.useragent.extra.microsoftdotnet
(.NET CLR 3.5.30729)
gfx.blacklist.direct2d
3
gfx.blacklist.layers.direct3d10
3
gfx.blacklist.layers.direct3d10-1
3
gfx.blacklist.layers.direct3d9
3
gfx.blacklist.layers.opengl
3
gfx.blacklist.webgl.angle
3
gfx.blacklist.webgl.opengl
3
network.cookie.prefsMigrated
true
places.history.expiration.transient_current_max_pages
32201
places.last_vacuum
1308110604
print.print_printer
Copier 1
print.printer_Copier_1.print_bgcolor
false
print.printer_Copier_1.print_bgimages
false
print.printer_Copier_1.print_command
print.printer_Copier_1.print_downloadfonts
false
print.printer_Copier_1.print_edge_bottom
0
print.printer_Copier_1.print_edge_left
0
print.printer_Copier_1.print_edge_right
0
print.printer_Copier_1.print_edge_top
0
print.printer_Copier_1.print_evenpages
true
print.printer_Copier_1.print_footercenter
print.printer_Copier_1.print_footerleft
&PT
print.printer_Copier_1.print_footerright
&D
print.printer_Copier_1.print_headercenter
print.printer_Copier_1.print_headerleft
&T
print.printer_Copier_1.print_headerright
&U
print.printer_Copier_1.print_in_color
true
print.printer_Copier_1.print_margin_bottom
0.5
print.printer_Copier_1.print_margin_left
0.5
print.printer_Copier_1.print_margin_right
0.5
print.printer_Copier_1.print_margin_top
0.5
print.printer_Copier_1.print_oddpages
true
print.printer_Copier_1.print_orientation
0
print.printer_Copier_1.print_pagedelay
500
print.printer_Copier_1.print_paper_data
9
print.printer_Copier_1.print_paper_height
11.00
print.printer_Copier_1.print_paper_size_type
0
print.printer_Copier_1.print_paper_size_unit
0
print.printer_Copier_1.print_paper_width
8.50
print.printer_Copier_1.print_reversed
false
print.printer_Copier_1.print_scaling
1.00
print.printer_Copier_1.print_shrink_to_fit
true
print.printer_Copier_1.print_to_file
false
print.printer_Copier_1.print_unwriteable_margin_bottom
0
print.printer_Copier_1.print_unwriteable_margin_left
0
print.printer_Copier_1.print_unwriteable_margin_right
0
print.printer_Copier_1.print_unwriteable_margin_top
0
print.printer_Copier_2_(Mailroom).print_bgcolor
false
print.printer_Copier_2_(Mailroom).print_bgimages
false
print.printer_Copier_2_(Mailroom).print_command
print.printer_Copier_2_(Mailroom).print_downloadfonts
false
print.printer_Copier_2_(Mailroom).print_edge_bottom
0
print.printer_Copier_2_(Mailroom).print_edge_left
0
print.printer_Copier_2_(Mailroom).print_edge_right
0
print.printer_Copier_2_(Mailroom).print_edge_top
0
print.printer_Copier_2_(Mailroom).print_evenpages
true
print.printer_Copier_2_(Mailroom).print_footercenter
print.printer_Copier_2_(Mailroom).print_footerleft
&PT
print.printer_Copier_2_(Mailroom).print_footerright
&D
print.printer_Copier_2_(Mailroom).print_headercenter
print.printer_Copier_2_(Mailroom).print_headerleft
&T
print.printer_Copier_2_(Mailroom).print_headerright
&U
print.printer_Copier_2_(Mailroom).print_in_color
true
print.printer_Copier_2_(Mailroom).print_margin_bottom
0.5
print.printer_Copier_2_(Mailroom).print_margin_left
0.5
print.printer_Copier_2_(Mailroom).print_margin_right
0.5
print.printer_Copier_2_(Mailroom).print_margin_top
0.5
print.printer_Copier_2_(Mailroom).print_oddpages
true
print.printer_Copier_2_(Mailroom).print_orientation
0
print.printer_Copier_2_(Mailroom).print_pagedelay
500
print.printer_Copier_2_(Mailroom).print_paper_data
9
print.printer_Copier_2_(Mailroom).print_paper_height
11.00
print.printer_Copier_2_(Mailroom).print_paper_size_type
0
print.printer_Copier_2_(Mailroom).print_paper_size_unit
1
print.printer_Copier_2_(Mailroom).print_paper_width
8.50
print.printer_Copier_2_(Mailroom).print_reversed
false
print.printer_Copier_2_(Mailroom).print_scaling
1.00
print.printer_Copier_2_(Mailroom).print_shrink_to_fit
true
print.printer_Copier_2_(Mailroom).print_to_file
false
print.printer_Copier_2_(Mailroom).print_unwriteable_margin_bottom
0
print.printer_Copier_2_(Mailroom).print_unwriteable_margin_left
0
print.printer_Copier_2_(Mailroom).print_unwriteable_margin_right
0
print.printer_Copier_2_(Mailroom).print_unwriteable_margin_top
0
privacy.sanitize.migrateFx3Prefs
true
security.warn_viewing_mixed
false
Graphics
Adapter Description
Matrox Millennium G550
Vendor ID
102b
Device ID
2527
Adapter RAM
Unknown
Adapter Drivers
G400DHD
Driver Version
6.0.6.0
Driver Date
2-6-2009
Direct2D Enabled
Blocked on your graphics card because of unresolved driver issues.
DirectWrite Enabled
false (0.0.0.0, font cache n/a)
WebGL Renderer
(WebGL unavailable)
GPU Accelerated Windows
0/1

jscher2000
  • Top 10 Contributor
3235 solutions 29539 answers

Chosen Solution

I think you are not closing your FONT color tags correctly. For example:


<FONT face='arial' size=-1>6/13/2011 5:02:52 AM(EST): <STRONG><FONT COLOR='RED'>WUUQ </STRONG></FONT><FONT COLOR='BLACK'>logged in as: <STRONG><FONT COLOR='RED'>prepcw6 </STRONG></FONT><FONT COLOR='BLACK'> from <STRONG><FONT COLOR='RED'>66.18.36.6 </STRONG></FONT><FONT COLOR='BLACK'><HR>

When you start a run of BLACK, you aren't ending it. Each line ends with an opening FONT color tag. This results in deep nesting that apparently exceeds some threshold in Firefox.

Second, you've crossed the STRONG and FONT tags:


<STRONG><FONT>text node</STRONG></FONT>

This would be better written:


<STRONG><FONT>text node</FONT></STRONG>

For efficiency, if the STRONG tags are always red, you could use CSS and get rid of all the font color tags.


<style type="text/css"> body {color:black} strong {color:red} </style>
I think you are not closing your FONT color tags correctly. For example: <br>&lt;FONT face='arial' size=-1>6/13/2011 5:02:52 AM(EST): &lt;STRONG>&lt;FONT COLOR='RED'>WUUQ &lt;/STRONG>&lt;/FONT>&lt;FONT COLOR='BLACK'>logged in as: &lt;STRONG>&lt;FONT COLOR='RED'>prepcw6 &lt;/STRONG>&lt;/FONT>&lt;FONT COLOR='BLACK'> from &lt;STRONG>&lt;FONT COLOR='RED'>66.18.36.6 &lt;/STRONG>&lt;/FONT>&lt;FONT COLOR='BLACK'>&lt;HR> When you start a run of BLACK, you aren't ending it. Each line ends with an opening FONT color tag. This results in deep nesting that apparently exceeds some threshold in Firefox. Second, you've crossed the STRONG and FONT tags: <br>&lt;STRONG>&LT;FONT>text node&lt;/STRONG>&LT;/FONT> This would be better written: <br>&lt;STRONG>&LT;FONT>text node&LT;/FONT>&lt;/STRONG> For efficiency, if the STRONG tags are always red, you could use CSS and get rid of all the font color tags. <br><style type="text/css"> body {color:black} strong {color:red} </style>
jscher2000
  • Top 10 Contributor
3235 solutions 29539 answers

By the way, it's due to the new stricter HTML parser in Firefox 4+. To verify, you can turn it off. Please save any unfinished work first.

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the filter box, type or paste html5 and pause while the list is filtered

(3) Double-click html5.parser.enable to toggle it to false (it should turn bold).

Then return to the problem page and reload.

By the way, it's due to the new stricter HTML parser in Firefox 4+. To verify, you can turn it off. Please save any unfinished work first. (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful. (2) In the filter box, type or paste '''html5''' and pause while the list is filtered (3) Double-click '''html5.parser.enable''' to toggle it to false (it should turn bold). Then return to the problem page and reload.

Question owner

Thank you. I knew the malformed HTML was not optimal (it had never been a priority to fix as it was just one of many poorly-coded legacy pages I inherited), but I was fascinated by the fact it worked in every other browser, and especially by the fact that it rendered fine most of the way down the page and then suddenly stopped! I appreciate your explaining that it had to do with the stricter HTML parser and/or exceeding a nesting threshold.

If only we lived in a world where all web browsers interpreted things the same...

Thank you. I knew the malformed HTML was not optimal (it had never been a priority to fix as it was just one of many poorly-coded legacy pages I inherited), but I was fascinated by the fact it worked in every other browser, and ''especially ''by the fact that it rendered fine most of the way down the page and then suddenly stopped! I appreciate your explaining that it had to do with the stricter HTML parser and/or exceeding a nesting threshold. If only we lived in a world where all web browsers interpreted things the same...