question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The <strike> HTML tag is not recognized as a standard HTML tag

See original GitHub issue

I’m submitting a … (check one with “x”)

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior When a template contains the <strike></strike> tag angular wants to handle it as a component

Expected/desired behavior It’s an HTML tag, so it does not needs to try to handle as a component.

Reproduction of the problem

zone.js:484 Unhandled Promise rejection: Template parse errors:
'strike' is not a known element:
1. If 'strike' is an Angular component, then verify that it is part of this module.
2. If 'strike' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
<h4 class="price">
Lista ár
[ERROR ->]<strike>
<i>$</i>150
</strike>
</h4>

What is the expected behavior? Do not report any error just render the markup. It’s a normal HTML tag.

  • Angular version: 2.0.0-rc.6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ketan9605commented, Nov 2, 2017

if <strick></strick> not supoort in angular 2/4 then use <s></s> tag. like before you used <strick>Test</strick> use instead of <s>Test</s>

0reactions
angular-automatic-lock-bot[bot]commented, Sep 12, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<strike> - HTML: HyperText Markup Language - MDN Web Docs
The <strike > HTML element places a strikethrough (horizontal line) over text. Warning: This element is deprecated in HTML 4 and XHTML 1,...
Read more >
Strike tag from html is not working with attributeText ...
After doing some experiments I found that it is a problem with UILabel that it doesn't support <strike> tag I had to replace...
Read more >
Strike Tag in HTML - Scaler Topics
The <strike > HTML tag creates the impression of a strikethrough (cut line) by drawing a horizontal line over the text.
Read more >
HTML <strike> Tag
In this article, we will know the HTML <strike> tag, along with understanding its implementation through the example. The <strike> tag defines a ......
Read more >
HTML: <strike> tag
You can not use the <strike> tag in HTML5. Instead, you can try using the <del> tag or the <s> tag.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found