AW: [opencms-dev] Interesting Behaviour: WYSIWYG editor removes empty anchors
Mark Miller
mark.miller at hema.ch
Tue Apr 6 12:08:02 CEST 2004
I get round this by using a blank gif ... eg.
<a name='wobble'><img src='images/blanker.gif' width='1px'
height='1px'></a>Text to jump to
and then create my blanker.gif as a 1 x 1 gif with a transparent
background ... keeps all agents happy.
Kind regards,
Mark Miller
Hema Computersysteme AG
Frauholzstrasse 9a
6422 Steinen
Phone: +41 (0) 41 833 88 88
info at hema.ch
www.hema.ch
-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Geoff Winkless
Gesendet: 06 April 2004 11:55
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Interesting Behaviour: WYSIWYG editor removes
empty anchors
I've searched for this one (honest!).
Some bizarre behaviour: when using the WYSIWYG editor on OpenCMS 5.0.1
to edit a file which has empty anchors (eg:
<a name="wibble"></a>some text to jump to
the tags are removed.
If you do
<a name="wibble>some text to jump to</a>
the tags remain. Unsure if this is intentional but it's a gotcha to
watch out for, since quite a few HTML designers I know use empty name
anchors.
The w3c is somewhat ambiguous:
===============================
http://www.w3.org/TR/REC-html40/struct/links.html#adef-name-A
Note. User agents should be able to find anchors created by empty A
elements, but some fail to do so. For example, some user agents may not
find the "empty-anchor" in the0following HTML fragment:
<A name="empty-anchor"></A>
<EM>...some HTML...</EM>
<A href="#empty-anchor">Link to empty anchor</A>
===============================
It seems that although not recommended, empty anchors are nonetheless
valid HTML.
Geoff
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list