You never know if a girl's gonna say 'yes', or if she's gonna laugh in your face and pull out your still-beating heart and crush it into the ground with her heel.

Xander ,'Help'


Buffistas Building a Better Board  

Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.

To-do list


John H - Nov 28, 2002 2:34:21 am PST #1753 of 10000

Thinking about my function, why would it need to return an error.

There are only two kinds of strings in the world. Those with unclosed HTML tags and those without. The string "" is a member of the second group.

So the array returned by it should just be ([true|false], content), right? The empty post thing would be handled elsewhere already.


Rob - Nov 28, 2002 7:22:57 am PST #1754 of 10000

I still think we should disallow table tags altogether (sorry, ita).

I think we should ignore the problem until we see it happening once a week. When it starts happening that frequently, we should make the board either fix or reject such posts.

Thinking about my function, why would it need to return an error.

Right now, maybe not, but perhaps it will need to in the future. How about we change the boolean to an integer, where zero is success without change, 1 means success and the message was changes, and anything negative is an error?


§ ita § - Nov 28, 2002 8:55:29 am PST #1755 of 10000
Well not canonically, no, but this is transformative fiction.

I admit I've been skimming the gory code details, because I've been so excited that I could.

What's the overhead involved in opening unmatched closes as well as closing unmatched opens? It's symmetrical, it's the full problem, and it means that the table thing's not a problem.

Very easy for me to say, what with someone else writing the code.


Theodosia - Nov 28, 2002 12:49:17 pm PST #1756 of 10000
'we all walk this earth feeling we are frauds. The trick is to be grateful and hope the caper doesn't end any time soon"

Did t strike just get knocked out? I had a "strike" tag in my last message in Sunnydale Press and when I went back to check on it, the strike doesn't work -- though when I went into Edit mode, the formatted tags were still there.


Rob - Nov 28, 2002 1:27:53 pm PST #1757 of 10000

What's the overhead involved in opening unmatched closes as well as closing unmatched opens?

We're already set up to do it, the problem is, where would you put the open?

Also, Jon claimed in Jon B "Buffistas Building a Better Board" Nov 28, 2002 4:17:40 am EST that even having matched <td></td> pairs outside of <table></table> would cause problems, so there's a little more algorithmic work to do to figure out how to handle such a case.

One idea I had was to throw a <table> right before a bare <td>, and close it after the </td>.


§ ita § - Nov 28, 2002 1:43:37 pm PST #1758 of 10000
Well not canonically, no, but this is transformative fiction.

I'd open right before the close. Make an empty tag.

Connie, <strike> works for me -- if it's still in when you go edit, then it's being sent to the page. Anything disallowed is stripped server side ... I'll go look in Press and see what I see.


John H - Nov 28, 2002 2:54:44 pm PST #1759 of 10000

How about we change the boolean to an integer, where zero is success without change, 1 means success and the message was changed, and anything negative is an error?

Will do. That's the philosophy that gave me such error messages as "Missing resource error -39" I'm guessing. Not that it ever helps.

Just a note about strike, since I think Netscape 3 there's been a shortcut for it, just <s>, but that's not on the list.

If you can come up with a formula for fixing bad TDs, then bring it on, but I think it's harder than it seems.

One thing we haven't done is change this:

You may use HTML or quick-edit formatting.

to, say:

You may use HTML or quick-edit formatting. But be careful! Bad code -- links and tables particularly -- can cause big problems.

Another thought, what's the status of the long-link fixer function?

The next project in mind is the bad HREF thing.

Can someone come up with a formula for that which we can translate into a regex? Like what's the formula for:

<a href="blah.html'>test</a> [any bloody code whatsoever including none at all]

so that we can catch it?


Rob - Nov 28, 2002 4:06:59 pm PST #1760 of 10000

That's the philosophy that gave me such error messages as "Missing resource error -39" I'm guessing.

Nope, it's the philosophy that reporting such numbers to the user might help that leads to you seeing them. I recommend we never do that.


John H - Nov 28, 2002 4:19:16 pm PST #1761 of 10000

Fair enough, but, speaking of that, what's the means by which we tell the user that their post had to be fixed?

When I post now, I just go back to the thread, and not necessarily at the page which contains my post.

What's a polite, technically elegant way to tell people "your post had bad HTML in it and we've fixed it for you?" without disrupting their posting/reading experience or embarassing them in public?


Rob - Nov 28, 2002 5:14:19 pm PST #1762 of 10000

Perhaps we could add another link like "edit" and "delete", perhaps "errors", that could lead to a page where we describe what the errors where and how they were corrected.