Emmet: Allowing boolean attributes

Created on 3 Feb 2013  ·  3Comments  ·  Source: emmetio/emmet

When I type the following text into an editor that understands emmet:

div.fragment>pre>code.javascript[contenteditable]
it expands to:

<div class="fragment">
    <pre><code class="javascript" contenteditable=""></code></pre>
</div>

Which is almost perfect, except that the boolean attribute shouldn't have the quotes. Would it be possible modify the statement above so that it creates nodes with boolean attributes with no values. Right now, I have to manually delete the ="" sign. Thanks

<div class="fragment">
    <pre><code class="javascript" contenteditable></code></pre>
</div>
Enhancement

Most helpful comment

Awesome. This should be include in cheatsheet or official guide. It's very helpful in the world of AngularJS/ReactJS now

All 3 comments

+1

I find this especially annoying when developing for AngularJS, where have a lot of directives that are attributes without values.

Yes please.

Awesome. This should be include in cheatsheet or official guide. It's very helpful in the world of AngularJS/ReactJS now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicothin picture nicothin  ·  18Comments

corysimmons picture corysimmons  ·  5Comments

HeikoMamerow picture HeikoMamerow  ·  16Comments

sergeche picture sergeche  ·  25Comments

deathmood picture deathmood  ·  15Comments