Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Features:

Bug fixes:

* Place ``<template>`` elements in ``<head>`` when they appear before
``<body>``, matching the WHATWG "in head" / "in body" insertion-mode rules.
Template contents are still stored as ordinary children rather than a
content document fragment. (#595)
* The sanitizer now permits ``<summary>`` tags. It used to allow ``<details>``
already. (#423)

Expand Down
3 changes: 3 additions & 0 deletions html5lib/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@
"Unexpected end of file. Expected inhead-noscript content",
"char-in-head-noscript":
"Unexpected non-space character. Expected inhead-noscript content",
"eof-in-template":
"Unexpected end of file. Expected template content",
"XXX-undefined-error":
"Undefined error (this sucks and should be fixed)",
}
Expand Down Expand Up @@ -410,6 +412,7 @@
(namespaces["html"], "table"),
(namespaces["html"], "tbody"),
(namespaces["html"], "td"),
(namespaces["html"], "template"),
(namespaces["html"], "textarea"),
(namespaces["html"], "tfoot"),
(namespaces["html"], "th"),
Expand Down
78 changes: 76 additions & 2 deletions html5lib/html5parser.py
Original file line number Diff line number Diff line change