summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-01-25 05:45:11 +0000
committercorvid <devnull@localhost>2015-01-25 05:45:11 +0000
commitcf52a2aee0600d4a568a3d68c6691280545bd11f (patch)
treed51ec50f7bf6fdd777100175a6e3f9fb75f40945 /src
parent5f4f4955b97dc6d33e88b73128321c1a2640c11c (diff)
HTML 5.1 draft permits LINK with itemprop in body, so we might as well be quiet about it.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index 364f48d4..8d214841 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3341,7 +3341,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? */