diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-31 17:19:59 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-31 17:19:59 +0100 |
commit | 1ca300614dcf31eca1a971f2fbbcdd2a5ae81208 (patch) | |
tree | c800eac7d4543fff2f63e4d50045c91de288972f /src/html.cc | |
parent | 20be26d3698eeeeaf2c0a9e55a28831466fc0bd1 (diff) | |
parent | 014a83d2f53cd49bd2540c53ee56f26d880fe2f5 (diff) |
Merge with main repo.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index ffdbcac1..82e28733 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? */ |