p4ulypops / jquery-clean

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

Not expected output for select tag #32

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"><option value="aa">aitem1</option><option value="bb" 
selected='1'>bitem2</option><option 
value="cc">bitem3</option><option>ditem4</option><option>eitem5</option></select
>

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

Attachments:

GoogleCodeExporter commented 9 years ago
Hi this is fixed now, thanks for raising the issue

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

GoogleCodeExporter commented 9 years ago
Not working tryied once more time.

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

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:09