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..d07a4bcb2 100644
--- a/apps/tests/xml-declaration/xml-declaration-tests.ts
+++ b/apps/tests/xml-declaration/xml-declaration-tests.ts
@@ -835,4 +835,24 @@ export function test_parse_template_property() {
var button =