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.
Created attachment 128318 [details] Simple example If a <th> element contains a <div> element, an error is shown (Element "div" is not allowed as child element of "th" in this context). I'm not sure that's correct, the HTML DTD suggests that th should allow any flow element as child, as td does. In any case, the formatter fails to format the content correctly. See the attached example.
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <table> <tr> <th> <div> </div> </th> <td></td> </tr> </table> </body> </html> seems to be valid html5 content, however the html.validator complains about the div tag in th as adrianriley reported.
seems to be fixed