This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I believe that the regular expressions in the tests Serialization-json-58 – Serialization-json-72 need to be fixed, as many of them do not comply with the XQuery syntax. In most cases, it's about closing curly and square brackets that have not been escaped. Some other characters (parentheses, asterisk) need to be escaped as well. Some examples: * Serialization-json-64 Curly and square brackets: - OLD: \{"book":\{.*"author":\[{[^}]*},{[^}]*},{[^}]*}].*}} - NEW: \{"book":\{.*"author":\[\{[^}]*\},\{[^}]*\},\{[^}]*\}\].*\}\} * Serialization-json-60 Parentheses: - OLD: \{"menu":\{.*"popup":\{"menuitem":\[\{.*"onclick":"CreateNewDoc()".*},\{.*"onclick":"OpenDoc()".*},\{.*"onclick":"CloseDoc()".*}]}.*}} - NEW: \{"menu":\{.*"popup":\{"menuitem":\[\{.*"onclick":"CreateNewDoc\(\)".*\},\{.*"onclick":"OpenDoc\(\)".*\},\{.*"onclick":"CloseDoc\(\)".*\}\]\}.*\}\} * Serialization-json-67 Forward slashes (should not be escaped): - OLD: \{"book":\{.*"author":\[{[^}]*},{[^}]*},"<simple>2<\/simple>",{[^}]*}].*}} - NEW: \{"book":\{.*"author":\[\{[^}]*\},\{[^}]*\},"<simple>2</simple>",\{[^}]*\}\].*\}\} * Serialization-json-61 Asterisks: - OLD: "text":\{.*"onMouseUp":"sun1\.opacity = \(sun1\.opacity / 100\) * 90;".*} - NEW: "text":\{.*"onMouseUp":"sun1\.opacity = \(sun1\.opacity / 100\) \* 90;".*\}
One more comment on Serialization-json-68: The <node-key>strange</node-key> will be atomized (according to the spec, 3.10.1.1), so the serialized result will look as follows: ... "strange":"<simple>2</simple>" ...
I agree with Christian.
Fixed, changes committed.
I found some further cases of closing square brackets that were not escaped, and have fixed them.
It looks like this assertion is wrong: <serialization-matches>"text":\{.*"vOffset":250.*\}</serialization-matches> https://github.com/LeoWoerteler/QT3TS/blob/master/ser/json/data003.json This may or may not pass depending on the order of the map entries. It should be. <serialization-matches>"text":\{.*"vOffset":100.*\}</serialization-matches>
Comment 5 is referring to Serialization-json-61
Fixed.