Skip to content Skip to sidebar Skip to footer

Extra Html That I Did Not Write

My program has a bug -- the output has extra junk in it that doesn't belong there. Firebug shows me lines of code that would produce exactly this unwanted junk, but I don't have

Solution 1:

I think this Stack question can better answer why there is random html output. It could also be the browser trying to correct all of the incorrect HTML that is possibly in your code.. in other words, you might have a small error such as your tags are not matched together.. either way, the browser is catching the errors and still producing the exact code that you want. With that being said, it really isn't anything to fret over unless you want to overlook your code and find exactly where the tags may not be matching up.

As I have extremely limited knowledge on ColdFusion, I would suggest a Syntax Checker that another Stack question has gone over. After finding if your syntax is correct or not, this may highlight the exact area that needs to be worked on.

Solution 2:

ColdFusion will not generate <tr> or <td> unless the code says so.

Normally extra white space is not significant and will not alter what is shown on the browser.

If you do have a region that must not have space, add it <cfsilent> make to remove space generation.

Solution 3:

Make sure you are really looking at the correct block of code. The reason I say that is because your CF logic has spaces on either side of the equal sign for the class attribute but the rendered HTML doesn't (I'm not sure if you modified it or not). I use CF daily and have never seen this. When viewing source the browser will add html from time to time like <thead> and <tbody> tags but nothing like in your example. I'd say (1) make sure you are looking at the correct block of code (2) show more of your page so we can follow the process, for instance, what is setting #lineclass#. Just follow the logic, add some cfdumps, or post the full page so we can help more.

Solution 4:

I would be willing to bet your a 1974 Ford Pinto that if you do an extended text search on all of the code in your project, all of the file types, you will find the code that you're considering extra.

Post a Comment for "Extra Html That I Did Not Write"