There hit been whatever adroit tricks to create newborn bespoken tags in cyberspace Explorer, much as the createElement trick. However, I never realized that cyberspace Explorer itself provides a artefact to delimitate newborn tags in the markup and hit them styled, since cyberspace Explorer 5!

Some info from the MSDN substantiation on this feature, named “Using Custom Tags In cyberspace Explorer”. The gimmick lies in making trusty you namespace things. For example, in the MSDN docs for this feature the warning of creating a newborn JUSTIFY attach is given:


<HTML XMLNS:MY>
<MY:JUSTIFY>
   This paragraph demonstrates sample
   practice of the bespoken MY:JUSTIFY attach in a document.
   By patch the paragraph in move and end
   MY:JUSTIFY tags, the contained
   book is justified within the given width. Try
   resizing the pane to avow that the
   noesis is justified within a 500-pixel width.
   And don't block to right-click anywhere on the
   pane and "View Source".
</MY:JUSTIFY>

You crapper modify call this with CSS!


<HTML XMLNS:MY>
<STYLE>
@media every {
   MY:JUSTIFY  { text-align:justify; width:500 }
}
</STYLE>

The docs then go on to handle applying an cyberspace Explorer ‘behavior’ to this bespoken surroundings to provide it swollen abilities:

Custom tags embellish much more engrossing when practical with a DHTML behavior. Introduction to DHTML Behaviors (or behaviors) are practical to elements on a page, the aforementioned artefact styles are, using cascading call sheets (CSS) attributes. solon specifically, the planned CSS activity concept allows a Web communicator to take the positioning of the activity and administer that activity to an surroundings on a page.

Using DHTML in cyberspace Explorer 4.0.0, it is doable to create ultimate enlivened effects, much as air text, by manipulating the function of elements on a tender over time. Beginning with cyberspace Explorer 5, this functionality crapper be encapsulated in a behavior, practical to a bespoken <InetSDK:FLY> tag, and enwrapped around blocks of book on a page. This crapper be practical to drive book to control from different directions.

I’m feat to do more investigating on this functionality today to wager how unfathomable it goes, but if genuine it makes it easier to create application shims for cyberspace Explorer for things same SVG, MathML, etc., including HTML 5 (if we namespace the HTML 5 elements, required to intend this to work).

The think I’m hunting for an deciding to the createElement gimmick is I’ve institute that it doesn’t impact with nested bespoken tags, which limits its usefulness. For example, I’ve institute the mass to not start the DOM correctly:

HTML:

  1.   <custom_container>
  2.      <custom_child></custom_child>
  3.   </custom_container>
  4. </body>
  5. </html>
  6.