This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243900

Summary: <s>, <strike> not supported
Product: platform Reporter: Zom-B
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal CC: cezariusz
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Zom-B 2014-04-18 07:41:07 UTC
Javadoc states that users can use whatever version of HTML their browser supports. According to w3cschools, all major browsers (6) support the above tags, as well as <del> (see below).

Netbeans marks <s> and <strike> as "Unknown HTML tag" and marks it with a warning, but in the Javadoc Documentation panel, as well as in hover-pop-ups, it renders as expected.

I expect, that if tags render correctly everywhere inside NetBeans, that they at least be recognized as valid tags.


Note: HTML5 specifies the <del> tag as a replacement, because <s> was deprecated and subsequently re-assigned, but that does not render at all in Netbeans (and that's probably not NetBeans' fault).
Comment 1 Arkanon 2014-07-11 19:29:26 UTC
Can this bug request also be expanded to include the <kbd> and <samp> elements which are valid in both HTML 4.1 and HTML5 but are reported by the NetBeans 8.0 editor window as unknown tags?
Comment 2 Ralph Ruijs 2014-09-04 11:48:03 UTC
Unknown HTML tag hints give the same warnings as doclint. Reassigning for further evaluation.
Comment 3 angleworm 2014-10-09 15:12:03 UTC
The <q> tag (valid HTML 4 and 5) is also unrecognized by Netbeans 8.
Comment 4 cezariusz 2015-04-09 15:05:33 UTC
Why is it marked as a JDK problem? The report is mainly about wrong warnings for tags, which are supported, but incorrectly underlined by the java editor.
Comment 5 Ralph Ruijs 2015-04-09 18:52:59 UTC
(In reply to cezariusz from comment #4)
> Why is it marked as a JDK problem? The report is mainly about wrong warnings
> for tags, which are supported, but incorrectly underlined by the java editor.

The following output comes from javac 1.8.0_40

Test.java:3: error: unknown tag: s
	 * Hello <s>World!</s>.
	         ^
Test.java:3: error: unknown tag: s
	 * Hello <s>World!</s>.
	                  ^
Comment 6 cezariusz 2015-04-09 19:00:51 UTC
Has it been reported to the JDK?