Ricardo Acras wrote:
> I want to use stylesheet_link_tag to produce the following link
>
> <link href="/stylesheets/printer_friendly.css"
rel="stylesheet"
> title="print" type="text/css" DISABLED/>
Modern HTML should run as close to XHTML as possible, and that DISABLED
attribute is not well-formed XML. You need
disabled=''disabled''. All
argumentless HTML attributes should upgrade along that pattern.
Note that your link is indeed well-formed XML in its last two characters: />
> <%= stylesheet_link_tag "printer_friendly", :title =>
''print''%>
At a guess, add :html => { :disabled=>''disabled'' }
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---