aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/html.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index b7790d29..0651e7ee 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3321,7 +3321,13 @@ static void Html_tag_open_link(DilloHtml *html, const char *tag, int tagsize)
/* Ignore LINK outside HEAD */
if (!(html->InFlags & IN_HEAD)) {
- BUG_MSG("<link> must be inside the HEAD section.");
+ if (!((html->DocType == DT_HTML && html->DocTypeVersion >= 5.0f) &&
+ a_Html_get_attr(html, tag, tagsize, "itemprop"))) {
+ /* With the HTML 5.1 draft spec, link with itemprop may appear
+ * in the body.
+ */
+ BUG_MSG("This <link> element must be inside the HEAD section.");
+ }
return;
}
/* Remote stylesheets enabled? */