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

Error in order of testing types #10

Open
ericol opened this issue Jun 6, 2013 · 0 comments
Open

Error in order of testing types #10

ericol opened this issue Jun 6, 2013 · 0 comments

Comments

@ericol
Copy link

ericol commented Jun 6, 2013

I'm trying to use this library with some simple examples. But I can't make it produce a valid doctype. On debugging, it seems the order of the types is incorrect.
This is the test haml I'm using:

doctype 5
html(lang="en")
  head
    title= pageTitle
  body
    #container.col

And this is the result I get:

<doctype>5</doctype>
<html lang="en">
  <head>
    <title>HAML test</title>
  </head>
  <body>
    <div id="container" class="col"></div>
  </body>
</html>

If I move the line 118 that contains ,'DOCUMENT_TYPE' above line 115 (,'TAG') I get the correct result.

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

1 participant