Issue #428 - Avoid adding form to input if html5

This commit is contained in:
Geoff McLane 2016-07-02 20:13:01 +02:00
parent d332908e5d
commit 685f7a6c5b
2 changed files with 3 additions and 3 deletions

View File

@ -4022,9 +4022,9 @@ void TY_(ParseBody)(TidyDocImpl* doc, Node *body, GetTokenMode mode)
*/
lexer->excludeBlocks = no;
if ( nodeIsINPUT(node) ||
if (( nodeIsINPUT(node) ||
(!TY_(nodeHasCM)(node, CM_BLOCK) && !TY_(nodeHasCM)(node, CM_INLINE))
)
) && !TY_(IsHTML5Mode)(doc) )
{
/* avoid this error message being issued twice */
if (!(node->tag->model & CM_HEAD))

View File

@ -1,2 +1,2 @@
5.3.5
5.3.5-Issue-428
2016.07.01