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.
15 lines
547 B
XML
15 lines
547 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>
|
|
<foo attributeName="He said <OK<"></foo>
|
|
<foo attributeName="He said >OK>"></foo>
|
|
<foo attributeName="He said >OK>"></foo>
|
|
<foo attributeName="He said 'OK'"></foo>
|
|
<foo attributeName="He said &OK&"></foo>
|
|
<foo>He said >OK></foo>
|
|
<foo attributeName="OK" />
|
|
</note> |