This here's a recipe for unpleasantness.

Mal ,'Objects In Space'


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


§ ita § - Nov 17, 2002 8:25:01 pm PST #1577 of 10000
Well not canonically, no, but this is transformative fiction.

Well, in theory tables are very easy in that t /table closes any open t tr and any t /table or t /tr closes an open t td

However, we'd have to go in both directions, because t /table all by itself (as in someone typed in t tableborder=0 just whacks a page. That bothers me to no end.


Typo Boy - Nov 17, 2002 9:32:30 pm PST #1578 of 10000
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

Again though it seems there are ways to spot these errors. It is fixing errors that runs into problems. So don't fix errors. Spot errors , and than put the user back in the form with an error mesage. Simplfies your job, and puts repair onus where it belongs - on the user.


John H - Nov 17, 2002 10:07:44 pm PST #1579 of 10000

I wish it were as easy as just "spot errors". HTML is a complicated language, with many flavours and variations.

Any Perl guru worth his salt (insert encryption gag here) will tell you that you need to use an HTML-parsing module in order to do the subject justice, and there's no such thing in PHP.

For me, the central issue is the unfixability of that Betsy error from before. That's a big-ass problem. You could click on edit, but you couldn't use the edit form that appeared, right?

Can I log in to the test site to figure out why? Or wouldn't that help?

I repeat the idea of a "safe mode edit" for admins only, in which, prior to the post appearing for edit, every < and > get replaced with [[[ and ]]], any arbitrary marker*, so that rather than trying to fix Betsy's broken <a whatever> code, we're fixing her [[[a whatever]]] code, which by definition, can't break any page it appears on.

Then you'd re-save, and re-replace.

* only not bloody percentage signs -- I loathe the use of %% as a code marker since spending many hours under the hood of WX...


§ ita § - Nov 17, 2002 10:18:03 pm PST #1580 of 10000
Well not canonically, no, but this is transformative fiction.

Jon's fixed the editability thing -- he's moved the FORM tag.


Jon B. - Nov 17, 2002 10:47:38 pm PST #1581 of 10000
A turkey in every toilet -- only in America!

I repeat the idea of a "safe mode edit" for admins only, in which, prior to the post appearing for edit, every get replaced with [[[ and ]]], any arbitrary marker*, so that rather than trying to fix Betsy's broken code, we're fixing her [[[a whatever]]] code, which by definition, can't break any page it appears on.

I very much like this idea. My change to the edit page will prevent another Betsy-mess from being editable, but who's to say another, different sort of uneditable post won't ever appear again?


Hil R. - Nov 17, 2002 10:49:41 pm PST #1582 of 10000
Sometimes I think I might just move up to Vermont, open a bookstore or a vegan restaurant. Adam Schlesinger, z''l

The problem with the edit page was that it was reproducing the page-breaking post, right? So why not have a safe-edit page that just has the post as typed in the posting box at the bottom, without the actual post at the top?


§ ita § - Nov 17, 2002 10:51:42 pm PST #1583 of 10000
Well not canonically, no, but this is transformative fiction.

We're flailing wildly with scope here.

I agree with the idea of an emergency edit page, but we of course have to choose a < substitute less like a hug.

I'm with John on the craziness of finding errors and presenting a useful error message to the hapless user. Dammit, man, can't you hack WX and gank us the code?

edit: Hil, that's Occammish in its brilliance.


Jon B. - Nov 17, 2002 10:56:20 pm PST #1584 of 10000
A turkey in every toilet -- only in America!

Hil, that's Occammish in it's brilliance.

Damn. Give that girl a medal.


John H - Nov 17, 2002 11:43:47 pm PST #1585 of 10000

What they said.


Karl - Nov 18, 2002 1:07:13 am PST #1586 of 10000
I adore all you motherfuckers so much -- PMM.

Any Perl guru worth his salt (insert encryption gag here) will tell you that you need to use an HTML-parsing module in order to do the subject justice, and there's no such thing in PHP.

John, you might want to take a look at [link] -- but I can't vouch for the quality of the code.