Forum Moderators: open
<span id='postcolor'><!--QuoteBegin--username+Nov. 03 2007,14:26--><table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td><b>Quote</b> (username @ Nov. 03 2007,14:26)</td></tr><tr><td id="QUOTE"><!--QuoteEBegin--><font color='#000000'>YES! BY THE END OF THE WEEKEND, UPWARDS OF SEVENTEEN PEOPLE WILL KNOW VAGUELY OF YOUR EXISTENCE!!!!!!</font><!--QuoteEnd--></td></tr></table><!--QuoteEEnd--><br><font color='#000000'>That's 17 more than know me now :(<br><br>AL.</font> <!--Signature--><br><br>--------------<br><span id='signature'>personal info: mostly pale / often sleepy<br>current velocity: lackadaisical with a hint of dawdling</span><!--E Signature--></span>
In Firefox (I'm using 3.5.4) the actual message is missing from the page and the tables are shifted (due to the missing code). Additionally, in the Firefox Source viewer from "<!--QuoteBegin" to "<br>--------------<br>" is marked as green and commented out. This would seem to obviously be the reason why it's not displaying. However in IE it displays just fine and doesn't appear as a comment.
Once I edit the post and resave it the code changes to:
<span id='postcolor'><font color='#000000'><!--QuoteBegin--username+Nov. 03 2007,14:26--><div><br />(--username @ Nov. 03 2007,14:26)</div><div id="QUOTEHEAD">QUOTE</div><div id="QUOTE"><!--QuoteEBegin-->YES! BY THE END OF THE WEEKEND, UPWARDS OF SEVENTEEN PEOPLE WILL KNOW VAGUELY OF YOUR EXISTENCE!!!!!!<!--QuoteEnd--></div><!--QuoteEEnd--><br>That's 17 more than know me now :(<br><br>AL.</font> <!--Signature--><br><br>--------------<br><span id='signature'>personal info: mostly pale / often sleepy<br>current velocity: lackadaisical with a hint of dawdling</span><!--E Signature--></span>
This works in both Firefox and IE just fine.
It's impossible from a practical perspective to go back and edit thousands of posts to resave them with the new system, so I was wondering if anybody can "spot the problem" and then I can fix it through some other means. HTML/CSS/SQL/whatever.
Any ideas on why Firefox reads it as a Comment and IE doesn't? Thanks!
[edited by: eelixduppy at 5:07 pm (utc) on Nov. 7, 2009]
[edit reason] disabled graphic smileys [/edit]
White space is not permitted between the markup declaration open delimiter("<!") and the comment open delimiter ("--"), but is permitted between the comment close delimiter ("--") and the markup declaration close delimiter (">"). A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.
<!--QuoteBegin--username+Nov. 03 2007,14:26-->
It does contain double-hyphens at "--username", but that code is identical in both the broken and fixed versions of the code, so I don't see how that specifically can be the problem.
Why doesn't the "comment" end properly at "14:26-->"?
In regards to comments, validating it says:
invalid comment declaration: found name start character outside comment but inside comment declaration<span id='postcolor'><!--QuoteBegin--username+Nov. 03 2007,14:26--><table
And also:
comment declaration started here<span id='postcolor'><!--QuoteBegin--username+Nov. 03 2007,14:26--><table
The bolded "u" and ">" are what was highlighted by the validator.
I'll be honest, that doesn't mean a whole lot to me, can anybody interpret?
Hence what's the doctype in both cases and is there anything in front of it (e.g a xml prologue)
validator:
Make it:
<!--QuoteBegin-username+Nov. 03 2007,14:26-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Here's the thing with the double dashes, if you look above at my original post you'll see that the "fixed" code that works fine in both IE and Firefox also contains the exact same double dashes. So clearly, while a bad idea, it's not what's causing the problem. Any other ideas?