Contact | Privacy | Datenschutzerklärung | Impressum

defautoclose Tag

Format: <defautoclose >

Context: defautoclose must be used inside a defenv tag (after a inherit tag if present).

Purpose: In general, heitml tags defined by defenv need to be closed by an end tag. If defautoclose is used inside the defenv heitml tries to automatically add a missing end tag.

In some cases this is useful to avoid writing end tags. In general however, the automatic end tag insertion might behave differently than expected. End tag insertion works fine with redefined HTML tags. In fact most existing HTML pages leave out end tags and so defautoclose is really required to process existing pages.

With defautoclose, heitml inserts an end tag in two situations

  • Before another tag of the same kind. This means tags defined with defautoclose can not be (directly) nested.
  • Before a closing tag of an enclosing environment.

For example, let the paragraph tag be redefined as follows:

<defenv p><defautoclose><\p></defenv>

Then, heitml adds end tags to the input before producing the output:

Example:

heitml inputWhat heitml adds to the inputresulting output
<pre><p>This is the first paragraph.<p>This is the second paragraph.</pre> <pre><p>This is the first paragraph.</p><p>This is the second paragraph.</p></pre>

This is the first paragraph.

This is the second paragraph.


This page was dynamically generated by the web application development tool RADpage of H.E.I. Try the AJAX Article (in German) on www.h-e-i.de.
© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
      ? Tag
      assign Tag
      break Tag
      callenv Tag
      dbdatabase Tag
      dbquery Tag
      dbupdate Tag
      def Tag
      defautoclose Tag
      defbody Tag
      defclass Tag
      defcontpara Tag
      defenv Tag
      defhtml Tag
      definpara Tag
      defpara Tag
      defremovecdata Tag
      deftranspara Tag
      defwysiwyg Tag
      for Tag
      forin Tag
      forsep Tag
      if Tag
      elsif Tag
      else Tag
      include Tag
      includeonce Tag
      inherit Tag
      let Tag
      mail Tag
      return Tag
      shell Tag
      while Tag
      writefile Tag
      \ Tag
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum