Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
{{<!-->}}
|
is parsed as a complete comment, and - inside a comment is accepted. Neither is well-formed XML. The comment parsing is in strings/xml.c and is the same in 10.11: ExtractValue('<r>a<!->b</r>','/r') returns a b there as well.
SET @s= '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r" type="xs:string"/></xs:schema>'; |
--echo # BUG if 1
|
SELECT XMLISVALID('<r>a<!-->b</r>', @s), XMLISVALID('<r><!-- a -- b --></r>', @s); |
Attachments
Issue Links
- is caused by
-
MDEV-37262 XMLISVALID() schema validation function
-
- Stalled
-
- relates to
-
MDEV-41750 XMLISVALID should be 0 returns 1 for strings that are not a single well-formed XML document
-
- In Review
-