Skip to content

Commit

Permalink
intern attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Mar 18, 2023
1 parent 6712d9e commit 28653c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew/src/dom_bundle/btag/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Attributes {
fn set(el: &Element, key: &str, value: &str, apply_as: ApplyAttributeAs) {
match apply_as {
ApplyAttributeAs::Attribute => el
.set_attribute(intern(key), value)
.set_attribute(intern(key), intern(value))
.expect("invalid attribute key"),
ApplyAttributeAs::Property => {
let key = JsValue::from_str(key);
Expand Down

0 comments on commit 28653c4

Please sign in to comment.