Announcement

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

#1 2006-05-22 11:01:58

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Fullpage and head help please!

Hi,

This is driving me nuts.

I have fullpage enabled using xinha_config.fullPage=true

If I start with a blank xinha, the source code shows as:

<html><head /><body></body></html>

What is going on with the head tag?

It should default to:

<html><head></head><body></body></html>

And it won't let me change it!

This is causing me major probs. Please help.

BTW I'm using FF 1.5.

Offline

#2 2006-05-23 04:23:12

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Fullpage and head help please!

I think this is definitely a bug in xinha. Altho I could not find a ticket for it.

A workaround could be to have the default code as:

<html><head><title>Untitled</title></head><body></body></html>

This could be a relatively easy fix for someone that knows the xinha back end.

Offline

#3 2006-05-23 04:58:43

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Fullpage and head help please!

I've found a work around.

change line 5755 from:

if ( HTMLArea.is_ie && root_tag == "head" )

to:

if ( root_tag == "head" )

and rem out line 5766 ie:

//html += txt + '\n';


This is still not perfect tho.
FF tends to keep everything on one line.

While IE seems to play pretty nicely.

Offline

#4 2006-05-23 05:32:16

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Fullpage and head help please!

I took out a few more is_ie statements and have got FF and IE running a bit more similar.

One prob tho is that FF tends to keep and new lines when IE doesn't.

I think the solution would be to strip all new lines first and then process the document.

Offline

#5 2006-05-23 08:42:55

wymsy
Xinha Community Member
From: Massachusetts, USA
Registered: 2005-04-01
Posts: 44
Website

Re: Fullpage and head help please!

Try using the GetHtml plugin. It takes care of all this.

Offline

#6 2006-05-25 05:47:20

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Fullpage and head help please!

Thanks wymsy. That's a great help.

It still looks a little bit buggy and works differently between IE and FF.

But it is a major improvement.

Offline

Board footer

Powered by FluxBB