Empty <progress> no longer stripped.

This commit is contained in:
Steven Le 2012-02-24 16:23:32 -08:00
parent f6a3bbecdb
commit b554dc12ef
2 changed files with 4 additions and 1 deletions

View file

@ -287,7 +287,9 @@ static Bool CanPrune( TidyDocImpl* doc, Node *element )
/* fix for ISSUE #7 https://github.com/w3c/tidy-html5/issues/7 */
if (nodeIsCANVAS(element))
return no;
if (nodeIsPROGRESS(element))
return no;
if ( attrGetID(element) || attrGetNAME(element) )
return no;

View file

@ -231,5 +231,6 @@ uint TY_(nodeHeaderLevel)( Node* node ); /* 1, 2, ..., 6 */
#define nodeIsMENU( node ) TagIsId( node, TidyTag_MENU )
#define nodeIsBUTTON( node ) TagIsId( node, TidyTag_BUTTON )
#define nodeIsCANVAS( node ) TagIsId( node, TidyTag_CANVAS )
#define nodeIsPROGRESS( node ) TagIsId( node, TidyTag_CANVAS )
#endif /* __TAGS_H__ */