You are not logged in.
Pages: 1
First let me make it clear that i think xinha is absolutely brilliant. And imho is beats the competition hands down.
I just seem to have a persistant problem with the way xinha 'processes' html.
It seems that when you switch between wysiwyg and source view - xinha processes the code and makes it neater.
Whilst it does this it sometimes strips out tags it shouldn't and adds in tags like tbody which weren't there before.
Also by placing adding in line breaks - sometimes that can alter the page layout, say if you had two images next to each other.
I think it also behaves slightly differently between FF and IE.
Is there anyway to just disable this behaviour so that it just leaves the souce code as it is.
I've enabled fullscreen and gethtml plugins. They've helped but are not the solution.
Adam
Offline
Ok, I thought that may be the case.
My main problem is the random disappearance of bookmarks ie <a name="main"></a> and span tags.
This behaviour seems to be random and I can't reproduce it everytime. It's only occurred in IE so far.
I know it's not much to go on but is this a known problem?
Offline
Well, those certainly shouldn't disappear UNLESS they are invalidly placed within the HTML. If your HTML is not valid, or not well-formed then anybody's guess as to how the browser will construct a DOM from it. An example of an invalid thing...
<table>
<a name="main"></a>
<tr>
Not saying thats what you're doing, but that would be a common cause.
James Sleeman
Offline
Thanks,
It's not me personally, it's a client so I wouldn't rule it out!
Offline
Random disappearance of <a href="xxx"></a> tags (i.e. anchors) is caused by a simple bug which I have reported in ticket 831 http://xinha.python-hosting.com/ticket/831 . This is the text of the report:
The following line in function checkEmpty(el) eats anchors on a page during a cleanup operation:
if ( /^(a|span|b|strong|i|em|font)$/i.test(el.tagName) && !el.firstChild)
{
HTMLArea.removeFromParent(el);
++stats.empty_tags;
}
The problem is the a in the list of tags to remove. Anchors are by definition empty tags, but they shouldn't be removed from a page during cleanup because this will break links. Removing the a in the above list solves the problem. While we're here, why not add empty div and p tags to this list?
Offline
Sometimes empty divs are used as containers to load dynamic content into...
Offline
i think thats what he meant ray. the point still stands that <a name="xxx"></a> should not be automatically removed.
Offline
Yes, just to confirm that even relatively "complex" anchors such as
<a class="anchor" id="myplace" title="myplace"></a>
get wiped out by this cleaning subroutine "bug".
Offline
Pages: 1