Closed NickColley closed 5 years ago
We could solve this by constructing this DOM with document.createElement
and textNode.textContent
which'll stop raw HTML from being rendered.
Here's a reproduction:
<%= tag.div class: "gem-c-tag" do %>
<marquee><%= text %></marquee>
<% end %>
Maybe the most surprising lesson here is that Chrome still supports <marquee>
.
If you wrap the tag component's text with
<marquee>
it'll also apply to the axe warning since the output has HTML in the markup.