From 685f7a6c5b24908253f7ff453f8a36013e56252c Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sat, 2 Jul 2016 20:13:01 +0200 Subject: [PATCH] Issue #428 - Avoid adding form to input if html5 --- src/parser.c | 4 ++-- version.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index ae773aa..4fb7a8c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -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)) diff --git a/version.txt b/version.txt index 5075da1..abfc04f 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ -5.3.5 +5.3.5-Issue-428 2016.07.01