Skip to content

<input type=color> likely accepts #+1+2+3 as value #42117

@Rudxain

Description

@Rudxain

Describe the bug:

let current_value = self.Value();
let current_color = RgbColor {
red: u8::from_str_radix(&current_value.str()[1..3], 16).unwrap(),
green: u8::from_str_radix(&current_value.str()[3..5], 16).unwrap(),
blue: u8::from_str_radix(&current_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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions