Sometimes you learn wrong.
I’ve built myself a little music player that loops sections of songs pretty much as long as one could want. I’m asking the user to pick a minimum duration from 0 seconds to 1 day. This creates an interesting UI problem: the user probably wants to pick something in the realm of 5 minutes, but 5 minutes is only 1 pixel away from 10 minutes on this scale. So I wrote a script that will get and set the value of a range
input logarithmically, so that the left 1/3 covers 10 minutes, the middle 1/3 covers 5 hours, and the right 1/3 covers 1 day. This works great, and the user has fine control within each unit scale.
This creates a further problem, though: the user needs real-time feedback of how I’m converting their input. To do this, I used the change
event, which I’ve been using since I was born into JavaScript. It worked like a charm.
Then 4 days ago, it broke. Chrome broke it by fixing this bug. The behavior described in the bug report (from 2012!) was the behavior I had come to accept as correct. Fixing this bug meant breaking my code, to conform to spec! I had no idea, because I learned this by using it, not by reading the spec.
Should I read the spec of every new tag in HTML5?
Yes.
I’ve learned a lot by doing, but especially in a distributed development field such as the web, the standards do need to be read. A lot of people have broken up the spec into shiny chunks that are easily digested. However, in this case, I can’t find a single mention of the expected behavior of the change
event for [type=range]
. The spec draft at W3.org describes the change
event for inputs, generally, as firing “when the value is committed, if that makes sense for the control, or else when the control loses focus. In all cases, the input
event comes before the corresponding change event (if any).”
I had never even heard of the input
event. This is the event that I should have been using in the first place, since I’m reacting to someone’s input, not their decision (which would be the change
event).
I will continue to learn by doing; I can’t help it, and I can’t do without it. But, the next time I’m aware that I’m doing something new, I’m going to jog over to W3.org to check that I’m leveraging stuff that’s going to be around for a while.
mostbet
jojobet
casibom
jojobet giris
When you need premier roofing solutions, our expert team offer outstanding solutions customized to your needs. Whether it’s addressing damage, we ensure long-lasting quality across any project.
roofing solutions](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Akeley+Pennsylvania+USA.pdf)
roof maintenance](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Alba+Pennsylvania+USA.pdf)
NY roof fixes](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Albion+New+York+USA.pdf)
roofs in Albion PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Albion+Pennsylvania+USA.pdf)
roof solutions](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Aldenville+Pennsylvania+USA.pdf)
repair Alexandria](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Alexandria+Minnesota+USA.pdf)
fixes in Alfred](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Alfred+New+York+USA.pdf)
roof solutions](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Allegany+New+York+USA.pdf)
in Allenwood](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Allenwood+Pennsylvania+USA.pdf)
PA roof fixes](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Allport+Pennsylvania+USA.pdf)
solutions Andover](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Andover+New+York+USA.pdf)
roofing experts](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Annville+Pennsylvania+USA.pdf)
roof fixes](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Ansonia+Pennsylvania+USA.pdf)
roofs in Antes Fort PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Antes+Fort+Pennsylvania+USA.pdf)
WI roof services](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Antigo+Wisconsin+USA.pdf)
in Ararat](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Ararat+Pennsylvania+USA.pdf)
roofs in Archbald PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Archbald+Pennsylvania+USA.pdf)
roof solutions](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Aristes+Pennsylvania+USA.pdf)
OH roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Ashland+Ohio+USA.pdf)
repair Ashland PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Ashland+Pennsylvania+USA.pdf)
roof maintenance](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Ashville+Pennsylvania+USA.pdf)
OR roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Astoria+Oregon+USA.pdf)
roofing solutions](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Atchison+Kansas+USA.pdf)
PA roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Athens+Pennsylvania+USA.pdf)
repair in Athol](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Athol+Massachusetts+USA.pdf)
roofs in Attica New York](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Attica+New+York+USA.pdf)
repair in Auburn NY](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Auburn+New+York+USA.pdf)
roofs in Auburn Pennsylvania](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Auburn+Pennsylvania+USA.pdf)
PA roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Austin+Pennsylvania+USA.pdf)
roofing services](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Avis+Pennsylvania+USA.pdf)
NY roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Avon+New+York+USA.pdf)
City OR roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Baker+City+Oregon+USA.pdf)
repair in Baraboo](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Baraboo+Wisconsin+USA.pdf)
roofs in Barnesville PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Barnesville+Pennsylvania+USA.pdf)
in Barre](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Barre+Vermont+USA.pdf)
NY roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Batavia+New+York+USA.pdf)
repair Bath](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bath+Maine+USA.pdf)
roofs in Bath New York](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bath+New+York+USA.pdf)
repair Beach Lake](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Beach+Lake+Pennsylvania+USA.pdf)
NY roof services](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Beacon+New+York+USA.pdf)
roofs in Bear Lake PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bear+Lake+Pennsylvania+USA.pdf)
in Beaver Meadows](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Beaver+Meadows+Pennsylvania+USA.pdf)
PA roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Beaverdale+Pennsylvania+USA.pdf)
roofs in Bedford Indiana](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bedford+Indiana+USA.pdf)
roofs in Bedford Pennsylvania](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bedford+Pennsylvania+USA.pdf)
ME roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Belfast+Maine+USA.pdf)
repair Belle Fourche](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Belle+Fourche+South+Dakota+USA.pdf)
roofs in Belmont New York](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Belmont+New+York+USA.pdf)
PA roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Benezette+Pennsylvania+USA.pdf)
in Bennington](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bennington+Vermont+USA.pdf)
repair Bentley Creek](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bentley+Creek+Pennsylvania+USA.pdf)
repair in Benton](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Benton+Pennsylvania+USA.pdf)
roofs in Berlin New Hampshire](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Berlin+New+Hampshire+USA.pdf)
PA roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bernice+Pennsylvania+USA.pdf)
roofs in Bernville PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bernville+Pennsylvania+USA.pdf)
roofs in Berrysburg PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Berrysburg+Pennsylvania+USA.pdf)
roofs in Berwick Pennsylvania](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Berwick+Pennsylvania+USA.pdf)
in Bethany](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bethany+Pennsylvania+USA.pdf)
repair in Bethel](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bethel+Pennsylvania+USA.pdf)
repair Bigler](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bigler+Pennsylvania+USA.pdf)
repair in Blackfoot](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blackfoot+Idaho+USA.pdf)
PA roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blackwell+Pennsylvania+USA.pdf)
repair in Blakely](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blakely+Pennsylvania+USA.pdf)
roofs in Blakeslee PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blakeslee+Pennsylvania+USA.pdf)
repair in Blandburg](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blandburg+Pennsylvania+USA.pdf)
in Bloomsburg](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bloomsburg+Pennsylvania+USA.pdf)
roofs in Blossburg PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Blossburg+Pennsylvania+USA.pdf)
roofs in Bolivar New York](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bolivar+New+York+USA.pdf)
roofs in Boonville NY](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Boonville+New+York+USA.pdf)
ND roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bottineau+North+Dakota+USA.pdf)
repair in Bradford](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bradford+Pennsylvania+USA.pdf)
roofs in Branchdale PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Branchdale+Pennsylvania+USA.pdf)
roofs in Brandonville PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brandonville+Pennsylvania+USA.pdf)
roofs in Brattleboro VT](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brattleboro+Vermont+USA.pdf)
repair in Bressler](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bressler+Pennsylvania+USA.pdf)
ME roof services](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brewer+Maine+USA.pdf)
repair Bridgeton](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bridgeton+New+Jersey+USA.pdf)
in Bristol](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bristol+Rhode+Island+USA.pdf)
repair in Brockton](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brockton+Pennsylvania+USA.pdf)
roofs in Brockway PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brockway+Pennsylvania+USA.pdf)
repair in Brookville](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Brookville+Pennsylvania+USA.pdf)
in Bucyrus](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Bucyrus+Ohio+USA.pdf)
roofs in Burley Idaho](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Burley+Idaho+USA.pdf)
repair Butler](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Butler+New+Jersey+USA.pdf)
roofs in Byrnedale PA](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Byrnedale+Pennsylvania+USA.pdf)
NY roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Caledonia+New+York+USA.pdf)
repair in Calkins](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Calkins+Pennsylvania+USA.pdf)
repair Cambridge Springs](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Cambridge+Springs+Pennsylvania+USA.pdf)
DE roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Camden+Delaware+USA.pdf)
PA roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Cammal+Pennsylvania+USA.pdf)
PA roofing](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Campbelltown+Pennsylvania+USA.pdf)
repair in Canandaigua](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Canandaigua+New+York+USA.pdf)
repair in Canton NY](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Canton+New+York+USA.pdf)
PA roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Canton+Pennsylvania+USA.pdf)
repair in Carbondale](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Carbondale+Pennsylvania+USA.pdf)
roofs in Caribou Maine](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Caribou+Maine+USA.pdf)
repair in Carlisle](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Carlisle+Pennsylvania+USA.pdf)
ND roof repair](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Carrington+North+Dakota+USA.pdf)
roofs in Carthage New York](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Carthage+New+York+USA.pdf)
PA roof services](https://roofleakingrepair.s3.us-east-1.amazonaws.com/Roof+Repair+In+Cassandra+Pennsylvania+USA.pdf)
Our specializes in efficient fixes to safeguard your property from weather damage. Contact us soon to schedule a no-cost quote for top-tier solutions.