Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw HTML, fixes/improvements for: SVG, event target, kobold_qr #94

Merged
merged 3 commits into from
Apr 7, 2024

Conversation

maciejhirsz
Copy link
Owner

@maciejhirsz maciejhirsz commented Apr 7, 2024

All over the place PR of stuff I needed fixing in the moment.

  • BREAKING *Event<_>::target now always returns HtmlElement, the typed EventTarget<T> is now only returned by *Event<_>::current_target.
  • You can now set innerHTML on elements:
let raw = "Hello <strong>World</strong>";

view! {
    <div html={raw} />
}
  • Fixed setting classes on SVG elements.
  • The viewBox attribute on the <svg> element is now aliased to view_box to keep it idiomatic with Rust.
  • kobold_qr now exposes the Ecl enum which the <!qr> component can take as a param to configure the level of error correction.

@maciejhirsz maciejhirsz merged commit b662787 into master Apr 7, 2024
4 checks passed
@maciejhirsz maciejhirsz deleted the dev branch April 7, 2024 19:06
@maciejhirsz maciejhirsz mentioned this pull request Apr 7, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant