[thelist] validate this

rudy r937 at interlog.com
Fri Sep 7 20:46:38 CDT 2001


>  document.write ("<style type='text/css'
>  media='all'>@import 'fancy.css';</style>")
>
>  how do i change that to validate?
>
>  Error: end tag for element "STYLE" which is not open

hi george

break the tag name into pieces -- the validator is just getting confused,
so you have to use some flim-flammery

   document.write ("<"
          +"style type='text/css' media='all'>"
          +"@import 'fancy.css';<"
          +/style>")


rudy





More information about the thelist mailing list