Media specification matching in DOM assignment and the corresponding API
extensions