Get the latest tech news

How should the new <selectedoption> element work?


It's part of the new customisable `<select>`, but there are some tricky details.

This means that changes on one element in the selected<option> won't cause everything in the<selectedoption> to 'reset', such as CSS animations. If the content of<selectedoption> has been manually altered, it's possible this change will fail because referenceNode is no longer in element, in which case the node won't be inserted. This is being actively discussed in the HTML spec, but I want a wider set of developers to have their opinions heard on this.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of new <

new <

Photo of element work

element work

Photo of selectedoption

selectedoption