Forum How do I...?

Show values for number type input boxes

jwooley
Hi!

I have a form with input elements with the number type, say this is the html:

<body>
<h1>Test page</h1>
<label>Count</label>
<input type="number" id="count" style="width: 100px;" value="2"/>
</body>

The number field does not display when I convert this html page to a PDF, but upon changing the type to text it displays fine. Likewise, on another page I got the elements to show but no set value would show in the PDF. Does Prince not handle these types, or am I doing something incorrectly?
mikeday
The Prince default HTML style sheet includes this rule:
input[type="password"], input[type="text"], input[type="email"] {
    display: inline-block;
    white-space: pre;
    overflow: hidden;
    content: attr(value, string, " ");
    width: attr(size, ex, 10em);
    height: 1.2em;
    border: inset 1px gray;
}

This needs to be extended to apply to input[type="number"] as well.
uftimmy
Ideally this would also work on input type="date", as well.