eZ Community » Forums » Developer » Custom tags and UseStrictHeaderRule
expandshrink

Custom tags and UseStrictHeaderRule

Custom tags and UseStrictHeaderRule

Thursday 27 October 2011 9:56:55 am - 1 reply

Hi,

Although I have set the UseStrictHeaderRule to false, the following input does not seem to get stored as intended in the XML-block of an article:

<header level="1">header 1</header>
<header level="2">header 2</header>
<custom name="somecustomtag"><header level="1">header 1</header></custom>

After storing the article as a draft, the content is stored as follows:

<header level="1">header 1</header>
<header level="2">header 2</header>
<custom name="somecustomtag"></custom>
 
<header level="1">header 1</header>

Whereas the following will be stored correctly:

 <header level="1">header 1</header>
<header level="2">header 2</header>
<custom name="somecustomtag">
  <header level="3">header 3</header>
</custom>

This is with the online editor disabled. The UseStrictHeaderRule seems to be picked up correctly. Is this a bug or does the UseStrictHeaderRule not deal with cases like this? Anyone got a workaround for this?

Modified on Friday 28 October 2011 9:11:39 am by S V

Monday 31 October 2011 9:37:02 am

Submitted as a bug: http://issues.ez.no/IssueView.php?Id=18869&activeItem=1

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from