Skip to content

Commit 49728a0

Browse files
committed
- cant set property when parent is null
1 parent c20a9f3 commit 49728a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ithril/HTMLRenderer.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class HTMLRenderer {
229229

230230
if (view.tag == 'svg') {
231231
namespace = Namespace.Svg;
232+
if (view.attrs == null) view.attrs = { };
232233
view.attrs.xmlns = namespace;
233234
}
234235

0 commit comments

Comments
 (0)