Setting a NaN or infinite value to a double attribute should throw NS_UNSUPPORTED_ERR

NEW
Unassigned

Status

()

Core
DOM: Core & HTML
7 years ago
6 years ago

People

(Reporter: mounir, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
See:
http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#float-nan

This should apply to methods taking double arguments too.
Note that, in general, it doesn't apply to canvas.
(Reporter)

Comment 2

6 years ago
Atul, you might be interested by this? The code might be close to some code you already know. Though, it requires digging into the specs to know which attributes are excluded by this rule.
You need to log in before you can comment on or make changes to this bug.