Skip to main content

DATA_PREFIX

Constant DATA_PREFIX 

Source
pub const DATA_PREFIX: &str = "data-flm-";
Expand description

The prefix of every attribute this backend writes for a payload field that is not one of HTML’s own attributes: data-flm-.

data-* is HTML’s own space for attributes an application defines, so an attribute written under this prefix is valid HTML and collides with nothing a browser or another library defines. See data_attribute.