Obviously, <input type="slider"> doesn’t exist in the spec, however, I want to use it as a placeholder/identifier for a plugin I’m writing.
This plugin will actually replace the <input> with a load of divs to make a slider similar to jQuery UI’s control.
My question is; is using <input type="slider"> simply as an identifier of where to place the jQuery-generated code generally “ok” – will it cause issues of any form, or do I need not worry?
It will be OK since browsers render unknown input types as
<input type="text">. See this page for reference.Edit: As discussed in the comments, a better solution for this problem is probably to use
class="slider"because that is guaranteed to never have any meaning besides the one you use it for, unliketype="slider"which some browser could potentially decide to render differently.