p4ulypops / jquery-clean

Automatically exported from code.google.com/p/jquery-clean
0 stars 0 forks source link

Not Expected output #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Used demo site http://www.antix.co.uk/Content/Demos/jQuery-htmlClean/Test.htm
2.Entered code :
<select name="dept" style="width:200px;" multiple ><option value="aa" 
>aitem1</option><option value="bb" selected=1>bitem2</option><option value="cc" 
>bitem3</option><option   >ditem4</option><option   >eitem5</option></select>
3.checked format

What is the expected output? What do you see instead?
Expected:
<select name="dept" style="width:200px;" multiple>
    <option value="aa">aitem1</option>
    <option value="bb" selected=1>bitem2</option>
    <option value="cc">bitem3</option>
    <option>ditem4</option>
    <option>eitem5</option>
</select>

Got op:
<select name="dept">aitem1bitem2bitem3ditem4eitem5</select>

Please provide any additional information below.

Original issue reported on code.google.com by wankhede...@gmail.com on 11 Jul 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Thanks for spotting this
got munged in my recent site update - all fixed now

Original comment by antixsof...@gmail.com on 11 Jul 2013 at 9:11

GoogleCodeExporter commented 9 years ago
Am I suppose to update js, since i was trying same input locally. and got 
unexpected o/p as mentioned above.

Thanks,
Ganesh 

Original comment by wankhede...@gmail.com on 11 Jul 2013 at 9:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
will you please verify it again, its not indenting the code.
PFA for further reference. 

Original comment by wankhede...@gmail.com on 11 Jul 2013 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
this is because the formatting only indents element which are not considered 
inline. both select and option are considered inline so not formatted.

I raised this issue
http://code.google.com/p/jquery-clean/issues/detail?id=34&thanks=34&ts=137354451
2

Original comment by antixsof...@gmail.com on 11 Jul 2013 at 12:08