Skip to content
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
4 changes: 2 additions & 2 deletions src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<xsl:template match="see[@href and not(parent::member)]">
<a>
<xsl:apply-templates select="@*|node()"/>
<xsl:if test="not(text())">
<xsl:if test="not(node())">
<xsl:value-of select="@href"/>
</xsl:if>
</a>
Expand All @@ -37,7 +37,7 @@
<xsl:template match="seealso[@href and not(parent::member)]">
<a>
<xsl:apply-templates select="@*|node()"/>
<xsl:if test="not(text())">
<xsl:if test="not(node())">
<xsl:value-of select="@href"/>
</xsl:if>
</a>
Expand Down
7 changes: 7 additions & 0 deletions test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public static void Issue4165()
Assert.Equal("arg1", comment.Parameters["args"]);
}

[Fact]
public static void Issue8965()
{
Verify("<seealso href=\"https://github.com\"><em>See also on MDN</em></seealso>", "<a href=\"https://github.com\">\n <em>See also on MDN</em>\n</a>");
Verify("<see href=\"https://github.com\"><em>See also on MDN</em></see>", "<a href=\"https://github.com\">\n <em>See also on MDN</em>\n</a>");
}

[Fact]
public static void BasicCodeBlock()
{
Expand Down