55
66 CVS Info :
77
8- $Author: hoehrmann $
9- $Date: 2008/08/09 11:55:27 $
10- $Revision: 1.71 $
8+ $Author: hoehrmann $
9+ $Date: 2008/08/09 11:55:27 $
10+ $Revision: 1.71 $
1111
1212 The HTML tags are stored as 8 bit ASCII strings.
1313
@@ -277,7 +277,6 @@ static const Dict tag_defs[] =
277277 { TidyTag_SERVER , "server" , VERS_NETSCAPE , NULL , (CM_HEAD |CM_MIXED |CM_BLOCK |CM_INLINE ), TY_ (ParseScript ), NULL },
278278 { TidyTag_SERVLET , "servlet" , VERS_SUN , NULL , (CM_OBJECT |CM_IMG |CM_INLINE |CM_PARAM ), TY_ (ParseBlock ), NULL },
279279 { TidyTag_SPACER , "spacer" , VERS_NETSCAPE , NULL , (CM_INLINE |CM_EMPTY ), TY_ (ParseEmpty ), NULL },
280- { TidyTag_WBR , "wbr" , VERS_PROPRIETARY , NULL , (CM_INLINE |CM_EMPTY ), TY_ (ParseEmpty ), NULL },
281280
282281 /* HTML5 */
283282 { TidyTag_ARTICLE , "article" , VERS_ELEM_ARTICLE , & TY_ (W3CAttrsFor_ARTICLE )[0 ], (CM_BLOCK ), TY_ (ParseBlock ), NULL },
@@ -305,7 +304,7 @@ static const Dict tag_defs[] =
305304 { TidyTag_TIME , "time" , VERS_ELEM_TIME , & TY_ (W3CAttrsFor_TIME )[0 ], (CM_INLINE ), TY_ (ParseInline ), NULL },
306305 { TidyTag_TRACK , "track" , VERS_ELEM_TRACK , & TY_ (W3CAttrsFor_TRACK )[0 ], (CM_BLOCK |CM_EMPTY ), TY_ (ParseBlock ), NULL },
307306 { TidyTag_VIDEO , "video" , VERS_ELEM_VIDEO , & TY_ (W3CAttrsFor_VIDEO )[0 ], (CM_BLOCK |CM_INLINE ), TY_ (ParseBlock ), NULL },
308- { TidyTag_WBR , "wbr" , VERS_ELEM_WBR , & TY_ (W3CAttrsFor_VIDEO )[0 ], (CM_INLINE |CM_EMPTY ), TY_ (ParseEmpty ), NULL },
307+ { TidyTag_WBR , "wbr" , VERS_ELEM_WBR , & TY_ (W3CAttrsFor_WBR )[0 ], (CM_INLINE |CM_EMPTY ), TY_ (ParseEmpty ), NULL },
309308
310309 /* this must be the final entry */
311310 { (TidyTagId )0 , NULL , 0 , NULL , (0 ), NULL , NULL }
@@ -350,7 +349,7 @@ static void tagsRemoveFromHash( TidyDocImpl* doc, TidyTagImpl* tags, ctmbstr s )
350349 {
351350 DictHash * next = p -> next ;
352351 if ( prev )
353- prev -> next = next ;
352+ prev -> next = next ;
354353 else
355354 tags -> hashtab [h ] = next ;
356355 TidyDocFree (doc , p );
@@ -446,7 +445,7 @@ static void FreeDict( TidyDocImpl* doc, Dict *d )
446445}
447446
448447static void declare ( TidyDocImpl * doc , TidyTagImpl * tags ,
449- ctmbstr name , uint versions , uint model ,
448+ ctmbstr name , uint versions , uint model ,
450449 Parser * parser , CheckAttribs * chkattrs )
451450{
452451 if ( name )
@@ -486,7 +485,7 @@ Bool TY_(FindTag)( TidyDocImpl* doc, Node *node )
486485 node -> tag = np ;
487486 return yes ;
488487 }
489-
488+
490489 return no ;
491490}
492491
@@ -498,7 +497,7 @@ const Dict* TY_(LookupTagDef)( TidyTagId tid )
498497 if (np -> id == tid )
499498 return np ;
500499
501- return NULL ;
500+ return NULL ;
502501}
503502
504503Parser * TY_ (FindParser )( TidyDocImpl * doc , Node * node )
@@ -573,7 +572,7 @@ ctmbstr TY_(GetNextDeclaredTag)( TidyDocImpl* ARG_UNUSED(doc),
573572 curr -> parser == TY_ (ParseBlock ) )
574573 name = curr -> name ;
575574 break ;
576-
575+
577576 case tagtype_pre :
578577 if ( (curr -> model & CM_BLOCK ) != 0 &&
579578 curr -> parser == TY_ (ParsePre ) )
@@ -703,7 +702,7 @@ void CheckIMG( TidyDocImpl* doc, Node *node )
703702 doc -> badAccess |= BA_MISSING_IMAGE_ALT ;
704703 TY_ (ReportMissingAttr )( doc , node , "alt" );
705704 }
706-
705+
707706 if ( cfgStr (doc , TidyAltText ) )
708707 TY_ (AddAttribute )( doc , node , "alt" , cfgStr (doc , TidyAltText ) );
709708 }
@@ -818,7 +817,7 @@ Bool TY_(nodeHasText)( TidyDocImpl* doc, Node* node )
818817
819818Bool TY_ (nodeIsElement )( Node * node )
820819{
821- return ( node &&
820+ return ( node &&
822821 (node -> type == StartTag || node -> type == StartEndTag ) );
823822}
824823
@@ -828,7 +827,7 @@ Bool TY_(nodeIsElement)( Node* node )
828827*/
829828Bool nodeMatchCM ( Node * node , uint contentModel )
830829{
831- return ( node && node -> tag &&
830+ return ( node && node -> tag &&
832831 (node -> tag -> model & contentModel ) == contentModel );
833832}
834833#endif
@@ -837,7 +836,7 @@ Bool nodeMatchCM( Node* node, uint contentModel )
837836*/
838837Bool TY_ (nodeHasCM )( Node * node , uint contentModel )
839838{
840- return ( node && node -> tag &&
839+ return ( node && node -> tag &&
841840 (node -> tag -> model & contentModel ) != 0 );
842841}
843842
@@ -860,8 +859,8 @@ Bool TY_(nodeIsHeader)( Node* node )
860859 return ( tid && (
861860 tid == TidyTag_H1 ||
862861 tid == TidyTag_H2 ||
863- tid == TidyTag_H3 ||
864- tid == TidyTag_H4 ||
862+ tid == TidyTag_H3 ||
863+ tid == TidyTag_H4 ||
865864 tid == TidyTag_H5 ||
866865 tid == TidyTag_H6 ));
867866}
0 commit comments