Lars Smit
2011-Feb-12 07:13 UTC
[PATCH] Suppress the generation of the authenticity_token div
I''ve made a patch for ticket #5901, "suppress the generation of the authenticity_token div" to let a Rails application validate against the W3C Validator. Can someone review this patch? Lighthouse ticket with the patch: https://rails.lighthouseapp.com/projects/8994/tickets/5901-suppress-the-generation-of-the-authenticity_token-div -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Prem Sichanugrist
2011-Feb-12 08:17 UTC
Re: [PATCH] Suppress the generation of the authenticity_token div
I thought I saw a commit like this a while ago. Maybe I was wrong, will confirm when I go back to my workstation. Anyway, would you mind sharing why the validator doesn''t think the current implementation is valid? We might be able to do something about it, as I generally don''t think suppress the token is a good idea :) Sent from my iPhone On 12 ก.พ. 2554, at 14:13, Lars Smit <larssmit@gmail.com> wrote:> I''ve made a patch for ticket #5901, "suppress the generation of the > authenticity_token div" to let a Rails application validate against > the W3C Validator. Can someone review this patch? > > Lighthouse ticket with the patch: > https://rails.lighthouseapp.com/projects/8994/tickets/5901-suppress-the-generation-of-the-authenticity_token-div > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Lars Smit
2011-Feb-12 09:42 UTC
Re: [PATCH] Suppress the generation of the authenticity_token div
I''m wrong about about token is not validating against the W3 Validator; it does validate, my bad. I was assuming this because I''m working on a site that must validate against the Webrichtlijnen (http://www.webrichtlijnen.nl/), these are Dutch accessibility (based on the WCAG) guidelines. One of the guidelines prescribes the separation of HTML and CSS, so we can''t use inline styles like the authenticity token does (it create a div with an inline style). I also think It''s a good practice. In the patch I removed the inline styles and replaced it with a class and the class styles are in the stylesheet now. On 12 feb, 09:17, Prem Sichanugrist <sikand...@gmail.com> wrote:> I thought I saw a commit like this a while ago. Maybe I was wrong, > will confirm when I go back to my workstation. > > Anyway, would you mind sharing why the validator doesn''t think the > current implementation is valid? We might be able to do something > about it, as I generally don''t think suppress the token is a good idea > :) > > Sent from my iPhone > > On 12 ก.พ. 2554, at 14:13, Lars Smit <larss...@gmail.com> wrote: > > > > > > > > > I''ve made a patch for ticket #5901, "suppress the generation of the > > authenticity_token div" to let a Rails application validate against > > the W3C Validator. Can someone review this patch? > > > Lighthouse ticket with the patch: > >https://rails.lighthouseapp.com/projects/8994/tickets/5901-suppress-t... > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails-core@googlegroups.com. > > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.