thetooi / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Self closing non-container XML/xHTML items #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem:
Simple input[type='text'] and ^,  will do

Expect output is a self closing input tag like <input type='text' />
The output Zen-coding gave is <input type='text'>

Using Zen-coding 0.6 for Dreamweaver CS4 on a Mac

Original issue reported on code.google.com by kish...@gmail.com on 7 May 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Same issue with img tag.

Original comment by xxb...@gmail.com on 17 May 2010 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by serge....@gmail.com on 12 Dec 2010 at 3:18

GoogleCodeExporter commented 9 years ago
Zen Coding automatically recognize whether your document HTML or XHTML. In 
latter case tags become self-closing.

You can see and modify type of current document with Page Properties dialog 
under Modify menu (default shortcut Ctrl+J) in Title/Encoding tab.

If you working with some sort of template system with page pieces you can make 
XHTML to be default page type in Preferences under Edit menu in New Document 
tab. Works for me at least in CS5.

Maybe reinstalling the extension will help.

At last if nothing helps you can force XHTML mode in source code.

Hope this helps. If not please be more descriptive about things I wrote above.

Original comment by GreLIm...@gmail.com on 12 Dec 2010 at 7:36

GoogleCodeExporter commented 9 years ago
Or I look through version. In 0.6 hint with preferences may not work. I suggest 
you update to new 0.7 version.

Original comment by GreLIm...@gmail.com on 12 Dec 2010 at 7:39