Skip to content

Components: setting textContent property probably needs a cast to string #79

@verpeteren

Description

@verpeteren

I'am experimenting with the components branch (6418e6c) and found this minor issue.

<application>

<meta>
	<viewport>100x100</viewport> 
</meta> 
<layout>
	<button id="ro"></button>
</layout>

<script>
	document.getElementById("ro").textContent = 4;
</script>

</application>

This gives:

/src/Embed/framework/elements/textnode.js:68:1 TypeError: textValue.trim is not a function

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions