Zen Coding

Hi, I was wondering how much of Zen Coding is implemented?

Typing in the following expression I don't get the result I was expecting:

div>ul[dir="ltr"]>li*5

instead it expands to:

<div>
        <ul dir="" ltr
        "">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        </ul></div>



Seems like a bug?
0
Avatar
Permanently deleted user

This is a bug. Please create ticket.

On 04.05.2010 4:25, Glen Stampoultzis wrote:

Hi, I was wondering how much of Zen Coding is implemented?

>

Typing in the following expression I don't get the result I was expecting:

>

div>ul[dir="ltr"]>li*5

>

instead it expands to:

>

<div>
         <ul dir="" ltr
         "">
         <li></li>
         <li></li>
         <li></li>
         <li></li>
         <li></li>
         </ul></div>

>

Seems like a bug?

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5262359#5262359



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

Hey Glen,

Just checked that you can achieve desired behavior by unwrapping attrobute value from quotation.

I.e. the pattern 'div>ul[dir=ltr]>li*5' is expanded to the following:

<div>
    <ul dir="ltr">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>

0
Avatar
Permanently deleted user

Yeah I noticed that but it should work with the quotes (necessary I think if you have something with spaces) so I raised the bug.

http://youtrack.jetbrains.net/issue/IDEA-54714

0
Avatar
Permanently deleted user

That's right, it's a bug and it should be fixed. The point was to provide work-around that allows to achieve desired behavior.

0

请先登录再写评论。