add allowfullscreen attribute exception

This commit is contained in:
Geoff McLane 2015-01-18 20:59:27 +01:00
parent 82fc656863
commit 3f46000197

View file

@ -405,11 +405,14 @@ static uint AttributeVersions(Node* node, AttVal* attval)
{ {
uint i; uint i;
/* HTML5 data-* attributes */ /* HTML5 data-* attributes
if (attval && attval->attribute) 20150118: added allowfullscreen */
if (attval && attval->attribute) {
if (TY_(tmbstrncmp)(attval->attribute, "data-", 5) == 0) if (TY_(tmbstrncmp)(attval->attribute, "data-", 5) == 0)
return (XH50 | HT50); return (XH50 | HT50);
if (strcmp(attval->attribute,"allowfullscreen") == 0)
return (XH50 | HT50);
}
/* TODO: maybe this should return VERS_PROPRIETARY instead? */ /* TODO: maybe this should return VERS_PROPRIETARY instead? */
if (!attval || !attval->dict) if (!attval || !attval->dict)
return VERS_UNKNOWN; return VERS_UNKNOWN;