Re: <server> and <script> tags

On Tue, 22 May 2001, Bradley S. Huffman wrote:

> I have a whole bunch of old HTML files with Server-Side
> Javascript (which uses <server>...</server> tags). Tidy screws
> up <,>,& and such between these tags, changing them to &lt;,
> &gt;, &amp; (just like the documentation in parser.c says it
> will).  For my use, the <server> tag needs to be treated like
> the <script> tag.  By grep'ing for 'tag_script' and adding code
> for a 'tag_server' (5 lines in 4 files) and re-compiling, I
> seemed to have solved my problem.
> 
> I'm just curious why <server> tags are handled this way?  I'm
> guessing it has something to do with having a valid XML document
> as output, or another company besides Netscape/iPlanet use this
> tag for a different purpose.

I was unaware of <server>..</server> elements, and these are
not part of any W3C standard. Tidy does provide the means to
declare new tags, but not ones with CDATA content models.

Regards,

-- Dave Raggett <dsr@w3.org> or <dave.raggett@openwave.com>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett 
tel/fax: +44 122 578 3011 (or 2521) +44 771 213 7629 (mobile)

Received on Wednesday, 23 May 2001 06:59:33 UTC