From 93d0a8903aee8e2c9c3086de99625d1d40c36bd7 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Wed, 20 Sep 2017 17:38:49 -0400 Subject: [PATCH] lib/dom: allow `xml` in tag name I'm not sure, what was the reason of this, security concerns maybe? In this case I can change it as an option. But we want this parser to parse correctly formed XML documents. Signed-off-by: Alexandre Terrasa --- lib/dom/parser.nit | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dom/parser.nit b/lib/dom/parser.nit index 7ebe6b0..94f718b 100644 --- a/lib/dom/parser.nit +++ b/lib/dom/parser.nit @@ -187,7 +187,6 @@ class XMLProcessor end end else - if tag_name.has("xml") then return new XMLError(st_loc, "Forbidden keyword xml in Processing Instruction") var cont_st = pos var cont_end = ignore_until("?>") if cont_end == -1 then -- 1.7.9.5