From: SourceForge.net <no...@so...> - 2012-05-04 20:40:07
|
Bugs item #3406215, was opened at 2011-09-08 05:48 Message generated for change (Comment added) made by martinkurz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3406215&group_id=13153 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tidy functionality Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Rajesh Kumar (rajeshkumarp) Assigned to: Nobody/Anonymous (nobody) Summary: replacing unexpected <h2> by </h2>. But it is valid h2 tag. Initial Comment: JTidy replacing <h2> as </h2> while using nested <h2> tags. Here is my HTML code. <h2 >Test Content <h2 >Test Content</h2> </h2> Here I get a warning as Warning: replacing unexpected <h2> by </h2> Please help me to fix this issue. ---------------------------------------------------------------------- Comment By: Martin (martinkurz) Date: 2012-05-04 13:40 Message: When looking at http://www.w3.org/TR/html4/struct/global.html#h-7.5.5, just inline elements are allowed inside headings, so h2 isn't allowed inside another h2 (or other heading). So jTidy finds an error and tries to fix this. ---------------------------------------------------------------------- Comment By: Adam A. Koch (aakoch) Date: 2012-05-04 12:41 Message: I'm not sure nesting h2 elements is allowed. That's probably why it is failing. ---------------------------------------------------------------------- Comment By: Rajesh Kumar (rajeshkumarp) Date: 2011-09-08 05:53 Message: Note : I am using jtidy-r938 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3406215&group_id=13153 |