Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!! Strict => <!DOCTYPE html> #210

Closed
gavinhughes opened this issue Jul 8, 2010 · 3 comments
Closed

!!! Strict => <!DOCTYPE html> #210

gavinhughes opened this issue Jul 8, 2010 · 3 comments

Comments

@gavinhughes
Copy link

!!! Strict is returning HTML 5 doctype.

@nex3
Copy link
Collaborator

nex3 commented Jul 8, 2010

I assume you're using Rails 3? If so, this isn't a bug. Rails 3 defaults to HTML5 output, and so Haml running under Rails 3 defaults to :format => :html5, which causes this.

@mindless
Copy link

I'm experiencing the same bug in sinatra

!!! Strict still outputs to the html doctype. actually changing the doctype to anything other than html 5 does not seem to modify it.

@nex3
Copy link
Collaborator

nex3 commented Jul 29, 2010

Do you have the :format option set to :html5? You can check by adding = haml_buffer.options[:format] to your template.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants