XHTML empty tags reformatted
Posted: Mon Jan 28, 2008 1:32 am
Oxygen 9.1, build 2007122116
When I open an XHTML document containing empty tags (for use in background graphics ), e.g. <div class="background-roundcorner"></div>, then edit in author mode, and when finished go back to text mode, the empty tags have been automatically removed and changed into one-tag formulations, with opening and closing in the same tag (OK for some XHTML tags like <br />, but not for <div>). The empty tags themselves are not edited in author mode, only the normal text content paragraphs.
Before author -mode editing:
After autor editing:
In XHTML this will make the layout break in the browser. I have tried to find out how to turn off the automatic reformulation of the tags, but did not find it.
Thanks in advance!
Gerhard
When I open an XHTML document containing empty tags (for use in background graphics ), e.g. <div class="background-roundcorner"></div>, then edit in author mode, and when finished go back to text mode, the empty tags have been automatically removed and changed into one-tag formulations, with opening and closing in the same tag (OK for some XHTML tags like <br />, but not for <div>). The empty tags themselves are not edited in author mode, only the normal text content paragraphs.
Before author -mode editing:
Code: Select all
<div class="background-roundcorner"></div>
Code: Select all
<div class="background-roundcorner" />
Thanks in advance!
Gerhard