Posted 18 years ago
by Jason Sobell
Version: 4.0.0257
Platform: .NET 2.0
Environment: Windows XP (32-bit)

If a schema Element specifies 'mixed="false"' then it can't contain text, so should be rendered as an empty tag.
The auto-complete function currently auto-enters a closing tag and leaves the cursor in the middle, which is valid from a schema point of view but makes a mess of things like <br/> in XHTML.
Could the system do an auto-correct as follows:
<
<b
<br
<br>
<br/>
i.e. When the closing tag is found and the element doesn't allow content, then just close the tag correctly?
Perhaps this could be a property, or for maximum flexibility you could allow a dictionary of tags names to be handled this way?
Cheers,
Jason
The auto-complete function currently auto-enters a closing tag and leaves the cursor in the middle, which is valid from a schema point of view but makes a mess of things like <br/> in XHTML.
Could the system do an auto-correct as follows:
<
<b
<br
<br>
<br/>
i.e. When the closing tag is found and the element doesn't allow content, then just close the tag correctly?
Perhaps this could be a property, or for maximum flexibility you could allow a dictionary of tags names to be handled this way?
Cheers,
Jason