diff --git a/apps/tests/xml-declaration/errors/non-existing-element-in-template.xml b/apps/tests/xml-declaration/errors/non-existing-element-in-template.xml
new file mode 100644
index 000000000..2b9d87ff1
--- /dev/null
+++ b/apps/tests/xml-declaration/errors/non-existing-element-in-template.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/tests/xml-declaration/errors/non-existing-element.xml b/apps/tests/xml-declaration/errors/non-existing-element.xml
new file mode 100644
index 000000000..94d08cf46
--- /dev/null
+++ b/apps/tests/xml-declaration/errors/non-existing-element.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/tests/xml-declaration/xml-declaration-tests.ts b/apps/tests/xml-declaration/xml-declaration-tests.ts
index 5a39c9116..08cb151cd 100644
--- a/apps/tests/xml-declaration/xml-declaration-tests.ts
+++ b/apps/tests/xml-declaration/xml-declaration-tests.ts
@@ -835,4 +835,49 @@ export function test_parse_template_property() {
var button =