Hi, I''ve tried to change my layouts to HTML 4.01 DOCTYPE, but then the page didn''t pass w3 validation. Validation fails in the line that corresponds to the following: <%= stylesheet_link_tag "depot", :media => "all" %> This is rendered as <link href="/stylesheets/depot.css?1181336605" media="all" rel="Stylesheet" type="text/css" /> Change the final "/>" to ">" and the page is validated. Are you sure HTML 4.01 is allowed ? How can I make stylesheet_link_tag and other constructs to correctly produce HTML 4.01 output ? It would be really nice if I fully converted my pages to HTML 4.01. Any help ? Thanks, On Dec 31 2006, 8:42 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, you can useXHTML1.0/1.1 orHTML4.01. It really depends on what > browsers you''ll support and it''s different for everyone. > > Good luck, > > -Conrad > > On 12/31/06, nick <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > hi, which version ofxhtml(orhtml) do you use with rails? (1.0/1.1, > > strict, transitional, frame) > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jeanpierre-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-17 04:07 UTC
Re: Rails and HTML 4.01 (not XHTML)
calling back an old one - perhaps better than starting a new thread for an unfinished topic though. so how does one successfully use a HTML 4.01 strict DOCTYPE with rails helpers and hope to validate? i added the following to my application_helper file which seems to do the trick for stylesheets but this is trying a symptom def other_stylesheet_link_tag(*sources) out = stylesheet_link_tag sources out.sub(/\ \/\>$/, ''>'') end stylesheet_link_tag calls stylesheet_tag which calls tag tag has an open argument to leave tags open, but unfortunately there isn''t any way to access it from stylesheet_link_tag. any other suggestions? < http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#M001032>cheers, jean-pierre On Sat, Jun 9, 2007 at 4:28 PM, hdante <hdante-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi, > > I''ve tried to change my layouts to HTML 4.01 DOCTYPE, but then the > page didn''t pass w3 validation. Validation fails in the line that > corresponds to the following: > > <%= stylesheet_link_tag "depot", :media => "all" %> > > This is rendered as > > <link href="/stylesheets/depot.css?1181336605" media="all" > rel="Stylesheet" type="text/css" /> > > Change the final "/>" to ">" and the page is validated. > > Are you sure HTML 4.01 is allowed ? How can I make > stylesheet_link_tag and other constructs to correctly produce HTML > 4.01 output ? It would be really nice if I fully converted my pages to > HTML 4.01. > > Any help ? Thanks, > > On Dec 31 2006, 8:42 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, you can useXHTML1.0/1.1 orHTML4.01. It really depends on what > > browsers you''ll support and it''s different for everyone. > > > > Good luck, > > > > -Conrad > > > > On 12/31/06, nick <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > > > > hi, which version ofxhtml(orhtml) do you use with rails? (1.0/1.1, > > > strict, transitional, frame) >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Too funny that I just figured out the same thing. Why is Rails generating this additional character? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---