Finalize "HTML integration point" check

This commit is contained in:
iska
2015-03-15 17:48:29 +01:00
parent 77651cfe4e
commit e56c8dff90
+2 -1
View File
@@ -18,7 +18,8 @@ NS_INLINE BOOL IsNodeMathMLTextIntegrationPoint(HTMLElement *node)
NS_INLINE BOOL IsNodeHTMLIntegrationPoint(HTMLElement *node)
{
if (node.namespace == HTMLNamespaceMathML && [node.tagName isEqualToString:@"annotation-xml"]) {
#warning Implement HTML Element Attributes
NSString *encoding = node.attributes[@"encoding"];
return [encoding isEqualToStringIgnoringCase:@"text/html"] || [encoding isEqualToStringIgnoringCase:@"application/xhtml+xml"];
} else if (node.namespace == HTMLNamespaceSVG) {
return [node.tagName isEqualToAny:@"foreignObject", @"desc", @"title", nil];
}