swc/crates/swc_xml_parser/tests/fixture/attribute/input.xml
2022-12-03 03:52:48 +00:00

27 lines
899 B
XML

<root>
<foo a='b'/>
<foo a="test">test</foo>
<foo a='"test1"' b="'test2'"/>
<foo a='"test1"' b="'test2'">test</foo>
<foo foo:a="test">test</foo>
<foo foo:a='"test1"' bar:b="'test2'">test</foo>
<foo a = 'test1' />
<foo foo=""></foo>
<foo foo="'"></foo>
<foo foo=''></foo>
<foo foo='"'></foo>
<MyElement myAttribute="attribute value"/>
<MyElement myAttribute="attribute
value"/>
<MyElement nsA:myAttribute1="attribute value" myAttribute2="attribute value">...</MyElement>
<foo attributeName="He said &quot;OK&quot;"></foo>
<foo attributeName="He said &lt;OK&lt;"></foo>
<foo attributeName="He said &gt;OK&gt;"></foo>
<foo attributeName="He said >OK>"></foo>
<foo attributeName="He said &apos;OK&apos;"></foo>
<foo attributeName="He said &amp;OK&amp;"></foo>
<foo
a="b"
c="d"
></foo>
</root>