#![allow(non_snake_case)]
#[doc(inline)]
pub use crate::create::strings::*;
macro_rules! intern_strings {
() => {};
($name:ident, $s:expr; $($rest:tt)*) => {
pub fn $name() -> &'static str {
#[cfg(debug_assertions)]
{$s}
#[cfg(not(debug_assertions))]
{wasm_bindgen::intern($s)}
}
intern_strings! {$($rest)*}
};
($name:ident; $($rest:tt)*) => {
pub fn $name() -> &'static str {
#[cfg(debug_assertions)]
{stringify!($name)}
#[cfg(not(debug_assertions))]
{wasm_bindgen::intern(stringify!($name))}
}
intern_strings! {$($rest)*}
};
}
intern_strings! {
class;
r#type, "type";
range;
button;
min; max; value; step;
style;
placeholder;
src;
href;
disabled; selected;
hidden;
beforebegin; afterbegin; beforeend; afterend;
checkbox; radio;
accept;
alt;
checked;
number;
multiple;
readonly;
required;
reversed;
rows;
tabindex;
target;
width; height;
wrap;
autofocus; autoplay;
r#async, "async";
autocomplete;
download;
draggable;
dropzone;
id;
password;
text;
_blank;
click; contextmenu; dblclick; mousedown; mouseenter;
mouseleave; mousemove; mouseover; mouseout; mouseup;
change; keydown; keyup; scroll; resize; blur; focus;
}