Question

In Visual Studio 2012 with Web Essentials 3.5 the following Zen Coding item seems to be transformed improperly:

input[name="demo"][type="text"]

Note: Just updated to version web essentials 3.6.5 and I still get the incorrect markup.

It results in :

name attribute converted to value attribute

I expected it to create the name attribute set to a value of demo like the following:

expected result

Does anyone know if this is a bug in Web Essentials 3.5 running under Visual Studio 2012?

Is there a list of bugs somewhere?

Did I type the Zen Code incorrectly? Should I expect a different result?

Was it helpful?

Solution

Okay, because of all the samples people provided me with I began trying even more combinations and finally learned that if I uppercase the NAME attribute, then it works. What?

Here's the zen code which actually works:

input[type="text" NAME="demo"]

or

input[type="text"][NAME="demo"]

Finally, I even tried UPPERCASING one letter in name like (notice uppercase 'A'):

input[type="text"][nAme="demo"]

All these result in:

markup result

Crazy. Mark this down as a bug. :)

OTHER TIPS

Your markup should work... it could be a bug with the Visual Studio plugin. Does it support input:t[name="demo"] ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top