W3C home > Mailing lists > Public > public-html@w3.org > October 2010

[Bug 10988] New: add slider element

From: <bugzilla@jessica.w3.org>
Date: Thu, 07 Oct 2010 07:54:51 +0000
To: public-html@w3.org
Message-ID: <bug-10988-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10988

           Summary: add slider element
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: jmichae3@yahoo.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


something that would add wonderful (and needed) interactivity would be vertical
slider and horizontal slider HTML controls as one element "slider" with an
attribute of "orientation" or "layout" (whatever works best and fits with the
existing spec). (Isn't layout being used in css3?)  since css doesn't mesh with
html spec, shouldn't be a problem.

this element does not need to have flow content, I think it should be a
singleton element, but it's up to you how you want to spec that part.  If you
want a close tag, go ahead.

it should have a value attribute which should be read/write.  if you set the
value attribute, it should change the position of the slider.  if you set a
wrong value, it should select the next or previous closest position.

any slider is essentially limited by the resolution of the screen.  you can't
get any more resolution to the slider than the resolution of the screen.  so
you can specify the height and width in px. anything else wouldn't make sense.
you could do it, but it would be up to the user to handle the slider
calculations. 

this element(s) should be accompanied by an actual slider control in the user
agent.

if the author calculates wrong, I suppose the control should either use the
last value submitted (if the value attribute is even there) or (I think) should
give the string "" which is not a number and should easily indicate an error,
whichever you feel is more appropriate.  

I was thinking that server-side scripting and javascript can easily be coded to
handle this kind of "" error with an if statement in a function to handle .

tic marks always start from zero if they are present.

attributes:
-----------
height=length
width=length
layout=vertical|horizontal  (defaults to horizontal)
value=integer|real
min=integer|real
max=integer|real
steps=integer|real
ticmajorstep=integer|real
ticminorstep=integer|real
and the usual global attributes.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 7 October 2010 07:54:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:20 UTC