-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Terse mode only enabled after the doctype has been processed #1918
Comments
Thanks for reporting. This is true of any code that is "above" the doctype. Essentially the default doctype is something akin to xhtml, but it changes to the more modern html doctype when it sees |
Deassigning this to 2.0.0. It's not of blocking significance. |
agree. Shall I leave the issue open? |
Yes please. On Sun, Nov 1, 2015 at 1:33 AM Andreas Leidig [email protected]
|
I just ran into this bug, and it manifested in a slightly different and unusual way. We had a mixin that appeared in a template AFTER a
I'm assuming this is because the extends happens after the mixin is parsed or something. As a workaround for now, if you put the mixin inside of the |
Honestly at this point pug should just REMOVE the whole concept of terse mode and always render the attributes according to the HTML5 standard. |
I'm also facing this problem as it's now common in the HTML5 standard to have terse attributes but pug has this issue. |
Rendering a tag with an attribute that does not have a value, like
<div ui-view></div>
works only if done from within one jade file but not via included mixin.See pull request #1917
PR is only for documentation.
Question: Is this a bug, feature or "tragic" side effect?
The text was updated successfully, but these errors were encountered: