Open jasoncg opened 6 months ago
vnode fastest │ slowest │ median │ mean │ samples │ iters
╰─ vnode_clone 2.809 ns │ 4.818 ns │ 3.707 ns │ 3.44 ns │ 100 │ 1000000000
vnode fastest │ slowest │ median │ mean │ samples │ iters
╰─ vnode_clone 2.808 ns │ 3.057 ns │ 2.818 ns │ 2.83 ns │ 100 │ 1000000000
Visit the preview URL for this PR (updated for commit 03354ac):
https://yew-rs-api--pr3629-vtag-create-element-9wzoybgd.web.app
(expires Sat, 16 Mar 2024 21:00:09 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
⚠️ The following examples have changed their size significantly:
examples | master (KB) | pull request (KB) | diff (KB) | diff (%) |
---|---|---|---|---|
async_clock | 98.845 | 100.232 | +1.388 | +1.404% |
communication_child_to_parent | 91.513 | 92.900 | +1.388 | +1.516% |
communication_grandchild_with_grandparent | 103.752 | 105.140 | +1.388 | +1.338% |
communication_grandparent_to_grandchild | 99.176 | 100.563 | +1.388 | +1.399% |
communication_parent_to_child | 87.859 | 89.245 | +1.386 | +1.577% |
contexts | 103.879 | 105.267 | +1.388 | +1.336% |
counter | 84.777 | 86.165 | +1.388 | +1.637% |
counter_functional | 84.903 | 86.291 | +1.388 | +1.634% |
dyn_create_destroy_apps | 87.752 | 89.140 | +1.388 | +1.581% |
file_upload | 98.939 | 100.327 | +1.388 | +1.403% |
game_of_life | 108.243 | 109.631 | +1.388 | +1.282% |
immutable | 187.456 | 190.225 | +2.769 | +1.477% |
inner_html | 78.634 | 80.021 | +1.388 | +1.765% |
js_callback | 107.484 | 108.870 | +1.386 | +1.289% |
mount_point | 81.438 | 82.825 | +1.388 | +1.704% |
nested_list | 112.511 | 113.898 | +1.388 | +1.233% |
node_refs | 88.905 | 90.293 | +1.388 | +1.561% |
portals | 92.059 | 93.446 | +1.388 | +1.507% |
simple_ssr | 139.426 | 140.825 | +1.399 | +1.004% |
suspense | 113.986 | 115.372 | +1.386 | +1.216% |
timer | 87.458 | 88.846 | +1.388 | +1.587% |
timer_functional | 96.317 | 97.705 | +1.388 | +1.441% |
two_apps | 84.153 | 85.541 | +1.388 | +1.649% |
web_worker_fib | 133.673 | 135.061 | +1.388 | +1.038% |
webgl | 81.282 | 82.670 | +1.388 | +1.707% |
Just tested this on my system and it seems to work correctly.
Description
This change in VTag create_element checks for the xmlns attribute. If specified, then it uses that as the namespace when creating the element.
This makes it possible to use HTML within an SVG foreignObject with the correct namespace like this:
Fixes #3034
Checklist