Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for qtspecs issue #21 #36

Merged
merged 1 commit into from
Jan 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion tests/decl/output/_output-test-set.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4954,6 +4954,23 @@
</all-of>
</result>
</test-case>


<test-case name="output-0724">
<description>Test serialization of input/@value</description>
<created by="Norman Walsh" on="2020-12-22"/>
<dependencies>
<spec value="XSLT20+"/>
</dependencies>
<test>
<stylesheet file="output-0724.xsl"/>
<output serialize="yes"/>
</test>
<result>
<any-of>
<serialization-matches><![CDATA[^(<!DOCTYPE (HTML|html)>\s*)?<input value="✈"/>$]]></serialization-matches>
<serialization-matches><![CDATA[^(<!DOCTYPE (HTML|html)>\s*)?<input type="text" value="✈"/>$]]></serialization-matches>
<serialization-matches><![CDATA[^(<!DOCTYPE (HTML|html)>\s*)?<input value="✈" type="text"/>$]]></serialization-matches>
</any-of>
</result>
</test-case>
</test-set>
8 changes: 8 additions & 0 deletions tests/decl/output/output-0724.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="html" html-version="5"/>

<xsl:template name="xsl:initial-template">
<input type="text" value="✈"/>
</xsl:template>
</xsl:stylesheet>