nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3529b
)
lib/dom: allow `xml` in tag name
author
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 20 Sep 2017 21:38:49 +0000
(17:38 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 12 Oct 2017 00:49:00 +0000
(20:49 -0400)
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 <alexandre@moz-code.org>
lib/dom/parser.nit
patch
|
blob
|
history
diff --git
a/lib/dom/parser.nit
b/lib/dom/parser.nit
index
7ebe6b0
..
94f718b
100644
(file)
--- 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