Hmm. I have just retested this using the full editor on the TinyMCE site
and all works well. The trouble I am having is that a link like this:
<h2><a name="top"></a>Heading</h2>
just isn't working as an anchor when I run *my* application in IE6 (it
works on your example page). Pretty much everything else works:
<a name="top"></a>Heading
<h2><a name="top">Heading</a></h2>
<h2>Heading<a name="top"></a></h2>
Even this works:
<h3><a name="top"></a>Heading</h3>
It seems to only break for h1 and h2.
What a completely irritating and silly bug - somewhere in IE6 I think.
Unless others experience this problem I don't see how I can impose on you
to alter TinyMCE to avoid this problem and it is simple enough to grab the
anchor and move it to the end of the heading.
With regards to switching to spans, I have no real problem with that,
except that If I have something like:
<h1>heading</h1>
it might be nicer to end up with:
<h1 id="my_anchor">heading</h1>
rather than:
<h1><span id="my_anchor">heading</span></h1>
With my current configuration:
<h1><span id="my_anchor"></span>heading</h1>
would become:
<h1>heading</h1>
which would obviously not be good - the question would be is this done by
TinyMCE or my own cleanup code.
Cheers,
Scott
Comment by: Scott Eade
2009-03-05 00:51:26
spocke
Anchors will probably be removed and replaced with spans since the name
attribute is deprecated in XHTML strict and HTML 5. I see no problems with
it on IE 6 though works the same as on IE 7 or FF.
2009-01-29 23:41:08
Anonymous
This is nasty. The empty named anchors work in IE7 and Ff, but not in IE6.
Would love to see this fixed as most of my users are still running IE6!
Comments
Anonymous
Hmm. I have just retested this using the full editor on the TinyMCE site
and all works well. The trouble I am having is that a link like this:
<h2><a name="top"></a>Heading</h2>
just isn't working as an anchor when I run *my* application in IE6 (it
works on your example page). Pretty much everything else works:
<a name="top"></a>Heading
<h2><a name="top">Heading</a></h2>
<h2>Heading<a name="top"></a></h2>
Even this works:
<h3><a name="top"></a>Heading</h3>
It seems to only break for h1 and h2.
What a completely irritating and silly bug - somewhere in IE6 I think.
Unless others experience this problem I don't see how I can impose on you
to alter TinyMCE to avoid this problem and it is simple enough to grab the
anchor and move it to the end of the heading.
With regards to switching to spans, I have no real problem with that,
except that If I have something like:
<h1>heading</h1>
it might be nicer to end up with:
<h1 id="my_anchor">heading</h1>
rather than:
<h1><span id="my_anchor">heading</span></h1>
With my current configuration:
<h1><span id="my_anchor"></span>heading</h1>
would become:
<h1>heading</h1>
which would obviously not be good - the question would be is this done by
TinyMCE or my own cleanup code.
Cheers,
Scott
Comment by: Scott Eade
spocke
Anchors will probably be removed and replaced with spans since the name
attribute is deprecated in XHTML strict and HTML 5. I see no problems with
it on IE 6 though works the same as on IE 7 or FF.
Anonymous
This is nasty. The empty named anchors work in IE7 and Ff, but not in IE6.
Would love to see this fixed as most of my users are still running IE6!
Scott
Comment by: Scott Eade