mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
**Description:** xml codegen with option `minify: true`. input: ```xml <foo attributeName="OK" /> ``` expected: ```xml <foo attributeName="OK"/> ``` actual: ```xml <foo attributeName="OK" /> ``` --- We already escape the attribute value in `escape_string` function, so we do not need to check whether it contains a specific string.
14 lines
506 B
XML
14 lines
506 B
XML
<?xml version="1.0" encoding="UTF-8"?><note>
|
|
<to>Tove</to>
|
|
<from>Jani</from>
|
|
<heading>Reminder</heading>
|
|
<body>Don't forget me this weekend!</body>
|
|
<foo attributeName="He said "OK"" />
|
|
<foo attributeName="He said <OK<" />
|
|
<foo attributeName="He said >OK>" />
|
|
<foo attributeName="He said >OK>" />
|
|
<foo attributeName="He said 'OK'" />
|
|
<foo attributeName="He said &OK&" />
|
|
<foo>He said >OK></foo>
|
|
<foo attributeName="OK" />
|
|
</note> |