I dont think its is allowed according to the W3C standards to have <style>
sections inside the <body>. Keep that in mind when insering
css-style-sections. ;-)
-Tommy
>
> WJRANKIN-J6ISH/MDR2c@public.gmane.org wrote:
> > Hi,
> >
> > I''m having difficulty using Prototype''s Insertion
method to insert
> > styles into a document node. Code like this seems to fail:
> >
> > new Insertion.Top(widgets[i], ''<style
type="text/css"></style>'');
> >
> > When I inspect the DOM, the style is nowhere to be found.
> >
> > Any ideas on how to get this to work? Thank you,
>
> Although most browsers will accept CSS declarations inside
> <script></script> tags just about anywhere in a static
HTML-soup document,
> they are only legal within the <head> of the document, not in the
<body>, so
> the DOM rejects adding them dynamically there.
>
> -dave
>
--
Gmail translated to norwegian / Gmail på norsk:
http://www.petitiononline.com/gmailnor/petition.html
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs