diff --git a/include/tidyenum.h b/include/tidyenum.h index 36407c1b0..d10f6c4ef 100644 --- a/include/tidyenum.h +++ b/include/tidyenum.h @@ -235,7 +235,6 @@ extern "C" { FN(MISSING_SEMICOLON) \ FN(MISSING_STARTTAG) \ FN(MISSING_TITLE_ELEMENT) \ - FN(MOVED_STYLE_TO_HEAD) \ FN(NESTED_EMPHASIS) \ FN(NESTED_QUOTATION) \ FN(NEWLINE_IN_URI) \ diff --git a/localize/translations/language_de.po b/localize/translations/language_de.po index 8e9493fca..fce3baa5f 100644 --- a/localize/translations/language_de.po +++ b/localize/translations/language_de.po @@ -3014,10 +3014,6 @@ msgctxt "MISSING_TITLE_ELEMENT" msgid "inserting missing 'title' element" msgstr "füge fehlendes 'title' Element ein" -msgctxt "MOVED_STYLE_TO_HEAD" -msgid "moved - - diff --git a/regression_testing/cases/access-expects/case-6_1_1_2.txt b/regression_testing/cases/access-expects/case-6_1_1_2.txt index 9a82352c3..317b21f98 100644 --- a/regression_testing/cases/access-expects/case-6_1_1_2.txt +++ b/regression_testing/cases/access-expects/case-6_1_1_2.txt @@ -1,5 +1,5 @@ line 7 column 1 - Access: [6.1.1.2]: style sheets require testing (style element). -line 7 column 1 - Warning: moved +

Paragraph

+ + diff --git a/regression_testing/cases/github-expects/case-730.html b/regression_testing/cases/github-expects/case-730.html new file mode 100644 index 000000000..0fae09be3 --- /dev/null +++ b/regression_testing/cases/github-expects/case-730.html @@ -0,0 +1,16 @@ + + + +Issue 730 + + + + +

Heading

+

Paragraph

+ + diff --git a/regression_testing/cases/github-expects/case-730.txt b/regression_testing/cases/github-expects/case-730.txt new file mode 100644 index 000000000..84c51cb89 --- /dev/null +++ b/regression_testing/cases/github-expects/case-730.txt @@ -0,0 +1,13 @@ +Info: Document content looks like HTML5 +No warnings or errors were found. + +About HTML Tidy: https://github.com/htacg/tidy-html5 +Bug reports and comments: https://github.com/htacg/tidy-html5/issues +Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/ +Latest HTML specification: https://html.spec.whatwg.org/multipage/ +Validate your HTML documents: https://validator.w3.org/nu/ +Lobby your company to join the W3C: https://www.w3.org/Consortium + +Do you speak a language other than English, or a different variant of +English? Consider helping us to localize HTML Tidy. For details please see +https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md diff --git a/src/clean.c b/src/clean.c index e0cd3baae..1a263fefa 100644 --- a/src/clean.c +++ b/src/clean.c @@ -2775,7 +2775,6 @@ static void StyleToHead(TidyDocImpl* doc, Node *head, Node *node, Bool fix, int { TY_(RemoveNode)(node); /* unhook style node from body */ TY_(InsertNodeAtEnd)(head, node); /* add to end of head */ - TY_(Report)(doc, node, head, MOVED_STYLE_TO_HEAD); /* report move */ } else { diff --git a/src/config.c b/src/config.c index 09c1f5f04..32a5e36ab 100644 --- a/src/config.c +++ b/src/config.c @@ -253,7 +253,7 @@ static const TidyOptionImpl option_defs[] = { TidySkipNested, MR, "skip-nested", BL, yes, ParsePickList, &boolPicks }, /* 1642186 - Issue #65 */ { TidySortAttributes, PP, "sort-attributes", IN, TidySortAttrNone,ParsePickList, &sorterPicks }, { TidyStrictTagsAttr, MR, "strict-tags-attributes", BL, no, ParsePickList, &boolPicks }, /* 20160209 - Issue #350 */ - { TidyStyleTags, MR, "fix-style-tags", BL, yes, ParsePickList, &boolPicks }, + { TidyStyleTags, MR, "fix-style-tags", BL, no, ParsePickList, &boolPicks }, { TidyTabSize, PP, "tab-size", IN, 8, ParseInt, NULL }, { TidyUpperCaseAttrs, MR, "uppercase-attributes", IN, TidyUppercaseNo, ParsePickList, &attributeCasePicks }, { TidyUpperCaseTags, MR, "uppercase-tags", BL, no, ParsePickList, &boolPicks }, diff --git a/src/language_de.h b/src/language_de.h index 70c5d4edd..7e8ef73c8 100644 --- a/src/language_de.h +++ b/src/language_de.h @@ -842,7 +842,6 @@ static languageDefinition language_de = { whichPluralForm_de, { { MISSING_SEMICOLON, 0, "Entität \"%s\" endet nicht mit ';'" }, { MISSING_STARTTAG, 0, "fehlendes <%s>" }, { MISSING_TITLE_ELEMENT, 0, "füge fehlendes 'title' Element ein" }, - { MOVED_STYLE_TO_HEAD, 0, "habe