diff options
author | corvid <devnull@localhost> | 2015-01-25 05:45:11 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2015-01-25 05:45:11 +0000 |
commit | 047f6bee9d6ee11ffd9ba5cd575db4c4fb4ab1d2 (patch) | |
tree | 7add5bfc4f0695405928889fa2312b4cded45b52 | |
parent | fee4c8a195bff2c674491c5664dbb73c1d157d6b (diff) |
HTML 5.1 draft permits LINK with itemprop in body, so we might as well be quiet about it.
-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 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? */ |