Skip to content

Commit b4067c4

Browse files
jamackulzaoral
andcommitted
fix(cshtml): trailing solidus not allowed on anchor tag
Co-authored-by: Lukáš Zaoral <[email protected]>
1 parent 44952ad commit b4067c4

File tree

3 files changed

+107
-107
lines changed

3 files changed

+107
-107
lines changed

src/lib/writer-html.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ void HtmlWriter::handleDef(const Defect &def)
454454
d->core.writeHeaderOnce(d->scanProps, d->plainTextUrl);
455455

456456
// HTML anchor
457-
d->str << "<a name='def" << ++(d->defCnt) << "'/>";
457+
d->str << "<a id='def" << ++(d->defCnt) << "'></a>";
458458

459459
d->str << "<b>Error: <span style='background: #C0FF00;'>"
460460
<< HtmlLib::escapeTextInline(def.checker) << "</span>";

0 commit comments

Comments
 (0)