Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-07-12 10:23:08

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

XINHA messes up HTML v4.01 compliant code to non working XHTML code!

Maby I missed some configuration here, maby Xinha is supposed to be XHTML compliant in default mode and I have to force it to be HTML v4.01. I have notioced all <br> becomes <br />, however no browser seems to have problems rendering this code in HTML v4.01. Today I found a page for one of our customers which had broken terribly due to Xinha's XHTML features, take this line :

<p><br><iframe width="468" scrolling="no" height="73" frameborder="0" src="http://www.somewhere.com/"></iframe></p>

Try entering this in the Xinha editor, it will quickly become :

<p><br /><iframe width="468" scrolling="no" height="73" frameborder="0" src="http://www.somewhere.com/" /></p>

The problem is the iFrame which doesnt render well within HTML v4.01 with the /> ending. Ill look into the .js to see if I missed something, but I think you should be aware of this everyone.

Offline

#2 2005-07-12 11:10:31

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: XINHA messes up HTML v4.01 compliant code to non working XHTML code!

I see that adding "iframe" to the variable at HTMLArea._closingTags solves the problem.

As another user mentioned in a entirely different post, adding a space inbetween also solves it, example :

<iframe src="..."> </iframe> as opposed to : <iframe src="..."></iframe>

However, remembering adding a " " here and there for no apparent reason cant be expected by the common users who's only goal is creating a working WYSIWYG page.

Last edited by kimss (2005-07-12 16:42:28)

Offline

#3 2005-07-17 23:38:05

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: XINHA messes up HTML v4.01 compliant code to non working XHTML code!

Indeed, iframe requires a full closing tag, as does script (with src) I believe.  Can you submit that as a ticket for Version 1.0, thanks.


James Sleeman

Offline

Board footer

Powered by FluxBB