Open laeubi opened 8 months ago
It also not seem to notice if a tag is not closed at all like here
Javadoc complains:
14:38:53 eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java:434: warning: empty <p> tag
14:38:53 * <p>
14:38:53 ^
jdt does not have complete javadoc validation. if you want to propose a PR ... welcome.
jdt does not have complete javadoc validation. if you want to propose a PR ... welcome.
more specifically: jdt validates (supposedly) all that is specific to javadoc, but it does not and probably should not validate HTML (nor markdown for that matter). IMHO, that would be a good task for an additional plugin.
See this from the spec:
https://html.spec.whatwg.org/multipage/parsing.html#closing-elements-that-have-implied-end-tags
https://github.com/eclipse-equinox/equinox/blob/392063733c664ef504c8c46006633df98955a463/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/internal/StructuredTextDelimsEsc.java#L24-L34
the
<p>
tag is implicitly closed, but JDT does not complain but javadoc does when it sees another closing tag:this currently make it quite hard to spot errors like this ones: