Universal HTML Error
winnjewett
Registered Users Posts: 329 Major grins
I have found an HTML error that appears on every single smugmug account. When viewing a Large photo, the following code is written:
<table>
<tr>
<td class="whatever"> whatever's home and links
<tr>
<td>
Both the <td> and <tr> tags are never closed.
-Winn
<table>
<tr>
<td class="whatever"> whatever's home and links
<tr>
<td>
Both the <td> and <tr> tags are never closed.
-Winn
0
Comments
.. obviously does not include mine..:):
Just checked - no errors..
Your account selection? Browser? Cache? OS? UFOs?
Cheers!
Also, I would not be too surprised if there were not more on certain pages. I try to fix them as I catch them, but all of the tables will be replaced with DIVs very shortly.
http://emphoto.smugmug.com/gallery/20059/1/684246/Large
firefox, line 176; ie, line 176;
http://www.moonriverphotography.com/gallery/104587/1/4395713/Large
firefox, line 93; ie, line 96;
http://allisonpetit.smugmug.com/gallery/55950/1/12463114/Large
firefox, line 96; ie, line 99;
http://nik.smugmug.com/gallery/296185/1/11755043/Large
firefox, line 96; ie, line 95;
Nikolai, thank you for your input. It led me to discover what was causing the problem. Most of your galleries have a description. The </td></tr> is contained in this gallery description. So, if a gallery does not have a description, it has an error in it; even your pages.
I still think it's a browser, or something else.
Her'e one of my test galleries: http://nik.smugmug.com/gallery/454594
XP SP2, IE6 - no errors
HTH
The page still renders as it should, so all is well.
IE rulez!:):
Some browsers might require closing tags and throw errors, but generally speaking, plain HTML rendering doesn't require strict adhereance to some mark up rules. IE probably (guessing) either ignores the absence of some tag closings, or counts the instances balancing the display back out. The more recent (last 4 or 5 years) documentations for HTML will usually mention that closing tags once thought unnecessary are now more than a good idea to implement. Some tags just don't matter; the simple ones like {HR} or {P} and are intended as stand alones of course. Nevertheless, in my own codings, I have been more aware to try to remember to close table rows and data in tables now. But old habits do die hard.
Once HTML is used within SCRIPTS, things get a little more dicey. Same with DHTML. I don't yet use Firefox, so I couldn't check with that.
"You miss 100% of the shots you don't take" - Wayne Gretzky
SmugMug API Developer
My Photos
When a website provides its users with a few templates upon which thousands of pages are based, it is the responsibility of the provider (smugmug) to ensure that there are no simple html errors; if only to inspire confidence in its users. In smugmug's case, it is even more critical to ensure proper html from the outset since they let their users tinker with the code themselves.
Smugmug, I challenge you to aspire to zero simple html errors in the future! Are you up to the challenge?
-Winn
Again, as I go through each and every page cleaningn up code, I will keep my eye out for problems.