google-code-export / digitalus-cms

Automatically exported from code.google.com/p/digitalus-cms
1 stars 1 forks source link

Anchors in headings get deleted #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new page or pick an existing one
2. On the HTML editor, switch to source code and enter a heading containing
an anchor:
<h4><a id="5.1.1-Referential-Relationships"></a>5.1.1 Referential
Relationships</h4>

What is the expected output? What do you see instead?

Expect to see a heading that can be navigated to via the anchor, but the
anchor is deleted upon entering into the text area. You can check by
switching back to source code, it is:

<h4>5.1.1 Referential Relationships</h4>

What version of the product are you using? On what operating system?

Digitalus 1.8

Please provide any additional information below.

-

Original issue reported on code.google.com by kwut...@web.de on 24 Jan 2010 at 3:09

GoogleCodeExporter commented 9 years ago
This is a serious bug to me.

Original comment by kwut...@web.de on 24 Jan 2010 at 3:32

GoogleCodeExporter commented 9 years ago
When trying name instead of id it works:

<h4><a name="5.1.1-Referential-Relationships"></a>5.1.1 Referential 
Relationships</h4>

Anchor is not deleted. However, name="" is not XHTML compliant, since this is a
requirement for my project, it's a serious issue to me, as this won't pass XHTML
validation.

Original comment by kwut...@web.de on 24 Jan 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Hello Karsten,

I cannot see why the markup shouldn't validate.
I have the same markup on one of my pages and it validates "XHTML 1.0 Strict".

Nevertheless, to see whether this could be changed in the code, it would be 
nice to
know which digitalus version You are using and (even more important) which 
editor
(fckeditor, or anything else). It might be an option of this editor.

Cheers,
LT.

Original comment by lowtower1974@gmail.com on 24 Jan 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Digitalus 1.8, as written above.

I'm going for XHTML 1.1 validation... I haven't tried it actually, so you might 
be
right. I just wanted to make a point here for future HTML code using anchors 
with
id="...".

Yes, I'm using fckeditor. Yeah, fckeditor had problems with newer XHTML code, I
remember that.

Karsten

Original comment by kwut...@web.de on 25 Jan 2010 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by lowtower1974@gmail.com on 9 Feb 2010 at 10:36