[whatwg] Suggestion: <ignore> element.
mattraymond at earthlink.net
Thu Jul 1 08:11:07 PDT 2004
I'd like to suggest a new element called <ignore>. This new element
would act similar to a standard comment, but it would not remove its
children from the DOM. Instead, the children would simply remain
inactive within the <ignore> element until moved somewhere else. This
element has the following benefits:
1) It has a semantic meaning, which is that its contents should be ignored.
2) It can easily be rendered by browsers using the "display: none" style.
3) When it degrades in legacy browsers, its contents are rendered. Not
only does this mean you can use it as a proper replacement for a
repetition template with repeat-start="0", but you can also use it to
suppress legacy scripting:
<script language="ECMAScript" src="legacy.js"></script>
Using this method, you don't have to add in code that checks for
WF2. You simply encapsulate the <script> element in <ignore> and it
More information about the whatwg