-
-
Notifications
You must be signed in to change notification settings - Fork 399
Open
Description
1. Description
if we append a char nbsp (0xa0) to element name, it's parsed normally without exception thrown.
eg:
<constituent></constituent >note in the end tag before this sentence, char 0xA0, not 0x20, is appended<constituent></constituent>
will be parsed as one "constituent" element, not two.
And the problem is suppressed (which is not good), and it's hard to debug, as 0xA0 is visually indiscernible from 0x20.
2. Expectation
doesnot allow such chars in element name.
nor xml allows as stipulated in:
http://w3.org/TR/REC-xml/#NT-NameStartChar
;
Otherwise, it's hard to pin down the issue.
Solution?
Should we in documentation explicitly allow such chars or should we throw exception?
Metadata
Metadata
Assignees
Labels
No labels