Forum Bugs

select input element

Johann
We just tried to convert a page from our (online) code review tool to PDF. Some information is presented via HTML form elements, especially <select>. They were not converted as expected:

Example:
Type: <select name="comment_state_metric|Type|9|1030|1|0">
	        <option value="Info">Info</option>
	        <option value="Style">Style</option>
	        <option selected="selected" value="Suggestion">Suggestion</option>
	        <option value="Minor">Minor</option>
	        <option value="Major">Major</option>
	        <option value="Severe">Severe</option>
	        <option value="Question">Question</option>
	        <option value="Good Job">Good Job</option>
	</select>


We got:
select.png

But we expected "Suggestion" in the box!

Is this a bug, or is it just not implemented yet?

- - -
Johann

  1. select.png1.1 kB
    select tag
mikeday
It's not implemented yet. A quick workaround is to hide all the options except the selected one:
select option { display: none }
select option[selected] { display: table-row }
Johann
A quick workaround is to hide all the options except the selected one


Thank you - works great :-)

- - -
Johann