pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove aliases for attributes

ezhlobo opened this issue · comments

For now we have very few aliases for attributes:

switch (name) {
case 'for':
name = 'htmlFor';
break;
case 'maxlength':
name = 'maxLength';
break;
case 'class':
name = 'className';
break;
}

I think we should get rid of it to get the same experience as with jsx and react. Unless you know good reason to do that, this way we will make more aliases to be compatible more with plain html.

Done in v7.0.0