Opened 13 years ago

Closed 13 years ago

#394 closed defect (fixed)

v4.01 complient code gets messed up by Xinha as xhtml

Reported by: Kim Steinhaug Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

Some code gets messed up by Xinha as its turned into XHTML style code, which we dont really want in HTML v4.01

The property in Xinha which seems to already address this is HTMLArea._closingTags
This should however be expanded with more tags.

Add the following tag : iframe

Maby also look into script with src, could be a problem.

Forumrefer : http://xinha.gogo.co.nz/punbb/viewtopic.php?id=311

Attachments (1)

htmlarea_closing.diff (1.1 KB) - added by ianb@… 13 years ago.
Patch to fix this bug

Download all attachments as: .zip

Change History (3)

comment:1 Changed 13 years ago by ianb@…

This got me too, but with 'textarea'. So at least script, textarea, and iframe should be added.

Actually, this table should be used: http://www.w3.org/TR/REC-html40/index/elements.html

Every tag there that doesn't have anything in the "end tag" column should be in that list. It's a long list, but I suspect for most it's uncommon for them to be empty, so it hasn't come up. However, once they show up empty the page gets all corrupted because Xinha turns them into an opening tag with an XHTML closing (which is ignored in HTML 4), which means the tag is dangling.

Changed 13 years ago by ianb@…

Patch to fix this bug

comment:2 Changed 13 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

Applied changeset:412

Note: See TracTickets for help on using tickets.