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.
You are here
[Forum bug] Not closed tags
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
Of course you're right. But it sometimes happens because of a typo. And shouldn't make the rest of the page bold
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
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.
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.
Just another reason direct HTML usage on a message board is a bad idea...
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.
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