Xander: Am I right, Giles? Giles: I'm almost certain you're not. Though, to be fair, I haven't been listening.

'Sleeper'


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 16, 2002 6:08:07 pm PST #1513 of 10000

Seems to have been fixed, assuming you meant the firefly thread?

[EDIT: and I fixed what you posted here, because it was busting this thread]

Were you just wondering what the asterisks were for?

Ask Jon B but it's normally hidden, and it's a workaround for a certain browser.


Noumenon - Nov 16, 2002 6:14:52 pm PST #1514 of 10000
No other candidate is asking the hard questions, like "Did geophysicists assassinate Jim Henson?" or "Why is there hydrogen in America's water supply?" --defective yeti

Those weren't bottom-of-the-page asterisks, I knew about those. It was something I wasn't expecting produced by the tag-closing function or by the thing's response to my missing quote.

edit: so I posted not to have it fixed, but to say "Is the tag-closer broken?" I don't think we have a tag-closer yet, though.


John H - Nov 16, 2002 6:21:49 pm PST #1515 of 10000

I don't think we have a tag-closer yet, though.

No, we don't.

It was something I wasn't expecting produced by [...] the thing's response to my missing quote.

Well, it's not that unexpected. After all, your link to something.com, if the quote is never closed, becomes a link to the something.com address, plus the whole of the rest of the page from that point onward, doesn't it?

You know what's a really good habit to get into? Any time you type quotes, type both of them right away, then use the left-arrow to put the cursor back between them.

Same for HTML brackets.

Someone from our accountancy department showed me that and I've never looked back. Never miss a closing quote again! Though I sometimes accidentally end up with

A HREF="" something.com
I never end up with
A HREF="something.com [remainder of page]


Noumenon - Nov 16, 2002 6:34:44 pm PST #1516 of 10000
No other candidate is asking the hard questions, like "Did geophysicists assassinate Jim Henson?" or "Why is there hydrogen in America's water supply?" --defective yeti

I liked how HomeSite would type both the quote marks and jump your cursor back between them. Typically, what I'm doing is typing "quote, Ctrl-V, quote," with only a short time to forget the close quote.


John H - Nov 16, 2002 6:42:33 pm PST #1517 of 10000

what I'm doing is typing "quote, Ctrl-V, quote,"

That'll do it -- just do "quote-quote, left-arrow, Ctrl-V" like Homesite does for you. Same keystrokes.


John H - Nov 16, 2002 6:58:30 pm PST #1518 of 10000

ita, when you have a moment, what are the legal tags here?

I really want to think about the tag-closer code again, but are there any legal tags, apart from <br> which don't need closing?


Jon B. - Nov 16, 2002 7:09:02 pm PST #1519 of 10000
A turkey in every toilet -- only in America!

I wouldn't swear to it, but poking around in the test site i found this list in the post-stripping function:

<a> <b> <i> <u> <ul> <ol> <li> <p> <br> <strike> <table> <tr> <td> <th> <font> <pre> <code>


John H - Nov 16, 2002 7:29:32 pm PST #1520 of 10000

Thanks Jon, that's like strip_tags(the list above), right?

So, only really BR, but what about the ones that don't need to be closed for it to work, but should be for the syntax, like P and LI? Hmmm. More thinking required.


Jon B. - Nov 16, 2002 8:05:02 pm PST #1521 of 10000
A turkey in every toilet -- only in America!

that's like strip_tags(the list above), right?

Pretty much, yeah.

what about the ones that don't need to be closed for it to work, but should be for the syntax, like P and LI?

I'd say close them. I'm all for compliant html where possible.

t edit although I see the problem --- you want the t /li to occur before the next t li or t /ul

Similarly, with the P tag.


John H - Nov 16, 2002 9:33:49 pm PST #1522 of 10000

Having thought about it for a while, it's only the tags that would create formatting problems further down the page that need to be handled. An unclosed LI tag won't cause the rest of the page to be indented, but an unclosed OL or UL will. Unclosed P tags won't cause any problems either.

I'm seeing the logic like this:

Go through the post, creating a list of all potential troublesome tags, i.e. when we encounter the first A tag, put it on a list.

When we encounter the next </A>, take that A tag off the list again.

If there's anything on the list at the end, close it.

It needs some more refinement, but that's essentially it, right?