You are here

[Forum bug] Not closed tags

9 posts / 0 new
Last post
m2
Offline
Last seen: 13 years 10 months ago
Joined: 2006-12-12 12:00
[Forum bug] Not closed tags

When I don't close a tag in a post...
EDIT: It's a problem only with preview. To reproduce it, just leave unclosed tag in reply and click preview.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Yeh, well

You shouldn't be leaving it open anyway.
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

m2
Offline
Last seen: 13 years 10 months ago
Joined: 2006-12-12 12:00
LOL

Of course you're right. But it sometimes happens because of a typo. And shouldn't make the rest of the page bold Biggrin

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
It can

It's completely up to the browser how to determine how it handles incorrect HTML tags.
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

m2
Offline
Last seen: 13 years 10 months ago
Joined: 2006-12-12 12:00
It's not about handling it

It's not about handling it by web browser.
I think that whatever I write, it should affect only my post, not the whole page. So script should check for for such tags and either close or remove them.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 39 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Can't

There isn't a module to do this in Drupal at the moment. So, the moderators just have to keep an eye on careless posters.

Sometimes, the impossible can become possible, if you're awesome!

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 6 days ago
Joined: 2006-04-07 08:44
Just another reason direct

Just another reason direct HTML usage on a message board is a bad idea...

Vintage!

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 39 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
It makes no difference

Actually, it's no different than a BBCode or other processor. Those processors just do:
1. Ditch all less than a greater than symbols and replace them with html identites
2. Replace the bbcode with html start and ends

Having an unclosed <i> is no different from an unclosed [i]. Either way, you need a comment processor that checks for proper end tags and adds them in. And, right now, Drupal doesn't have one.

Sometimes, the impossible can become possible, if you're awesome!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Exactly

It's even worse when you have an RSS aggregator like my Lilina and most of the feeds people add aren't valid.
On that note, I'd like to recommend HTML Purifier which does an excellent job. There's Drupal module too.
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

Log in or register to post comments