Announcement

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

#1 2006-11-17 06:32:24

rmassart
New member
Registered: 2006-08-16
Posts: 3

Xinha is converting HTML to XHTML

Hi,

Xinha is converting the HTML created into XHTML. For example:

<area coords=".." ... >

Becomes:

<area coords=".." ... />

I've been aware of this for a while and it's never caused me any problems. Until now...

If I try to validate a page (against HTML 4.01 strict) with an image map in it the second form gives a validation error. The first doesn't.

Is there anyway of stopping Xinha from adding these backslashes?

Thanks,
Robin

Offline

#2 2006-11-17 10:53:59

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

Re: Xinha is converting HTML to XHTML

You must be using the getHtml plugin, because the built-in getHtml() function doesn't support the <area> tag (ticket #551). The getHtml plugin was designed to produce XHTML code, but you should be able to get rid of the backslashes by commenting out line 75:

  //  replace(c[4], '<$1$2 />').//terminate singlet tags

I haven't tried this, so I don't know what other problems it might cause.

Offline

#3 2006-11-17 11:12:17

rmassart
New member
Registered: 2006-08-16
Posts: 3

Re: Xinha is converting HTML to XHTML

Ok, thanks. I'll try that. Wasn't aware that I was using any plugins though. But I'll double check.

Thanks,
Robin

Offline

Board footer

Powered by FluxBB