-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
<input type=color> likely accepts #+1+2+3 as value #42117
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-manual-testcase
Description
Describe the bug:
servo/components/script/dom/html/htmlinputelement.rs
Lines 2785 to 2790 in cdf8dad
| let current_value = self.Value(); | |
| let current_color = RgbColor { | |
| red: u8::from_str_radix(¤t_value.str()[1..3], 16).unwrap(), | |
| green: u8::from_str_radix(¤t_value.str()[3..5], 16).unwrap(), | |
| blue: u8::from_str_radix(¤t_value.str()[5..7], 16).unwrap(), | |
| }; |
To Reproduce:
I haven't tested (yet), but I'm 90% sure this should repro:
<input type=color value="#+1+2+3">Which is the color #010203
Platform:
Irrelevant
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-manual-testcase