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?
请先登录再写评论。
This is a bug. Please create ticket.
On 04.05.2010 4:25, Glen Stampoultzis wrote:
>
>
>
>
>
>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
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>
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
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.