Branch Coverage

tidy-html5.c
Criterion Covered Total %
branch 1815 13296 13.6


line true false branch
12588 0 0 while ( ( c = *p++ ) != 0 && state != file_found )
0 0 while ( ( c = *p++ ) != 0 && state != file_found )
12593 0 0 if ( c == ':' )
12598 0 0 if ( c =='/' )
12603 0 0 if ( c =='/' )
12615 0 0 return state == file_found || state == initial;
0 0 return state == file_found || state == initial;
12631 0 0 if ( path[i] == '/' || path[i] == '\\' )
0 0 if ( path[i] == '/' || path[i] == '\\' )
12633 0 0 else if ( path[i] == '.' )
12638 0 0 } while ( --i > 0 );
12653 0 0 if ( !IsFilePath(iType) ) return 0;
12658 0 0 for (i = 0; i < N_IMAGE_EXTS; i++)
12660 0 0 if ( TY_(tmbstrcasecmp)(ext, imageExtensions[i]) == 0 )
12680 0 0 if ( !IsFilePath(sType) ) return 0;
12684 0 0 for (i = 0; i < N_AUDIO_EXTS; i++)
12686 0 0 if ( TY_(tmbstrcasecmp)(ext, soundExtensions[i]) == 0 )
12708 0 0 if ( !IsFilePath(sType) ) return 0;
12712 0 0 for (i = 0; i < N_FRAME_EXTS; i++)
12714 0 0 if ( TY_(tmbstrcasecmp)(ext, frameExtensions[i]) == 0 )
12733 0 0 if ( !IsFilePath(sType) ) return 0;
12737 0 0 for (i = 0; i < N_MEDIA_EXTS; i++)
12739 0 0 if ( TY_(tmbstrcasecmp)(ext, mediaExtensions[i]) == 0 )
12758 0 0 for ( cp = pString; isWht && cp && *cp; ++cp )
0 0 for ( cp = pString; isWht && cp && *cp; ++cp )
0 0 for ( cp = pString; isWht && cp && *cp; ++cp )
12767 0 0 return ( av && ! IsWhitespace(av->value) );
0 0 return ( av && ! IsWhitespace(av->value) );
12781 0 0 return ( strstr(txt, "image") != NULL ||
0 0 return ( strstr(txt, "image") != NULL ||
12826 0 0 return ( len >= 5 && TY_(tmbstrcmp)(txt+len-5, "bytes") == 0 );
0 0 return ( len >= 5 && TY_(tmbstrcmp)(txt+len-5, "bytes") == 0 );
12843 0 0 if ( node )
12846 0 0 for (i = node->start; i < node->end; ++i, ++x )
12851 0 0 if ( x >= sizeof(doc->access.text)-1 )
12879 0 0 if ( TY_(nodeIsText)(node) )
12884 0 0 for (i = node->start; i < node->end; i++)
12887 0 0 if ( doc->access.counter >= TEXTBUF_SIZE-1 )
12894 0 0 for ( node = node->content; node != NULL; node = node->next )
12925 0 0 return doc->access.PRIORITYCHK == 1 ||
12926 0 0 doc->access.PRIORITYCHK == 2 ||
0 0 doc->access.PRIORITYCHK == 2 ||
12931 0 0 return doc->access.PRIORITYCHK == 2 ||
0 0 return doc->access.PRIORITYCHK == 2 ||
12948 0 0 if (Level1_Enabled( doc ))
12950 0 0 if ( nodeIsIMG(node) )
0 0 if ( nodeIsIMG(node) )
0 0 if ( nodeIsIMG(node) )
12953 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
12956 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
12959 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
12962 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
12987 0 0 if (Level3_Enabled( doc ))
12993 0 0 for ( av = node->attributes; av; av = av->next )
12995 0 0 if ( attrIsBGCOLOR(av) )
0 0 if ( attrIsBGCOLOR(av) )
0 0 if ( attrIsBGCOLOR(av) )
12997 0 0 if ( hasValue(av) )
13006 0 0 for ( av = node->attributes; gotBG && av != NULL; av = av->next )
0 0 for ( av = node->attributes; gotBG && av != NULL; av = av->next )
13009 0 0 if ( attrIsTEXT(av) )
0 0 if ( attrIsTEXT(av) )
0 0 if ( attrIsTEXT(av) )
13011 0 0 else if ( attrIsLINK(av) )
0 0 else if ( attrIsLINK(av) )
0 0 else if ( attrIsLINK(av) )
13013 0 0 else if ( attrIsALINK(av) )
0 0 else if ( attrIsALINK(av) )
0 0 else if ( attrIsALINK(av) )
13015 0 0 else if ( attrIsVLINK(av) )
0 0 else if ( attrIsVLINK(av) )
0 0 else if ( attrIsVLINK(av) )
13018 0 0 if ( errcode && hasValue(av) )
0 0 if ( errcode && hasValue(av) )
13058 0 0 return ( diffBright > 180 &&
0 0 return ( diffBright > 180 &&
13078 0 0 for (x = 0; x < N_COLORS; x++)
13080 0 0 if ( strstr(colorNames[x], color) != NULL )
13095 0 0 if ( TY_(tmbstrlen)(color) == 7 && color[0] == '#' )
0 0 if ( TY_(tmbstrlen)(color) == 7 && color[0] == '#' )
13119 0 0 if ( ch >= '0' && ch <= '9' )
0 0 if ( ch >= '0' && ch <= '9' )
13123 0 0 else if ( ch >= 'a' && ch <= 'f' )
0 0 else if ( ch >= 'a' && ch <= 'f' )
13127 0 0 else if ( ch >= 'A' && ch <= 'F' )
0 0 else if ( ch >= 'A' && ch <= 'F' )
13157 0 0 if (Level1_Enabled( doc ))
13160 0 0 for (av = node->attributes; av != NULL; av = av->next)
13167 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13169 0 0 if (av->value != NULL)
13172 0 0 (IsPlaceholderAlt (av->value) == no) &&
13173 0 0 (IsPlaceHolderObject (av->value) == no) &&
13174 0 0 (EndsWithBytes (av->value) == no) &&
13180 0 0 else if (TY_(tmbstrlen)(av->value) > 150)
13186 0 0 else if (IsImage (av->value) == yes)
13192 0 0 else if (IsPlaceholderAlt (av->value) == yes)
13198 0 0 else if (EndsWithBytes (av->value) == yes)
13213 0 0 else if ( attrIsWIDTH(av) )
0 0 else if ( attrIsWIDTH(av) )
0 0 else if ( attrIsWIDTH(av) )
13216 0 0 if ( hasValue(av) )
13219 0 0 if ( width < 30 )
13222 0 0 if ( width > 150 )
13234 0 0 else if ( attrIsHEIGHT(av) )
0 0 else if ( attrIsHEIGHT(av) )
0 0 else if ( attrIsHEIGHT(av) )
13237 0 0 if ( hasValue(av) && atoi(av->value) < 30 )
0 0 if ( hasValue(av) && atoi(av->value) < 30 )
13245 0 0 else if ( attrIsLONGDESC(av) )
0 0 else if ( attrIsLONGDESC(av) )
0 0 else if ( attrIsLONGDESC(av) )
13247 0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
13255 0 0 else if ( attrIsUSEMAP(av) )
0 0 else if ( attrIsUSEMAP(av) )
0 0 else if ( attrIsUSEMAP(av) )
13257 0 0 if ( hasValue(av) )
13261 0 0 else if ( attrIsISMAP(av) )
0 0 else if ( attrIsISMAP(av) )
0 0 else if ( attrIsISMAP(av) )
13274 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
13283 0 0 if (node->content != NULL && (node->content)->tag == NULL)
0 0 if (node->content != NULL && (node->content)->tag == NULL)
13302 0 0 if ( node->next && !node->next->tag )
0 0 if ( node->next && !node->next->tag )
13306 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
13314 0 0 if (node->content != NULL && node->content->tag == NULL)
0 0 if (node->content != NULL && node->content->tag == NULL)
13340 0 0 if (HasAlt == no)
13345 0 0 if ((HasLongDesc == no)&&
0 0 if ((HasLongDesc == no)&&
13346 0 0 (HasValidHeight ==yes)&&
13347 0 0 ((HasValidWidthHR == yes)||
13353 0 0 if (HasTriggeredMissingLongDesc == no)
13355 0 0 if ((HasDLINK == yes)&&
0 0 if ((HasDLINK == yes)&&
13361 0 0 if ((HasLongDesc == yes)&&
0 0 if ((HasLongDesc == yes)&&
13367 0 0 if ((HasLongDesc == no)&&
0 0 if ((HasLongDesc == no)&&
13374 0 0 if (HasIsMap == yes)
13402 0 0 if (Level1_Enabled( doc ))
13405 0 0 for (av = node->attributes; av != NULL; av = av->next)
13413 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13415 0 0 if (av->value != NULL)
13422 0 0 if (HasAlt == no)
13425 0 0 if (node->content != NULL)
13429 0 0 if ( node->content->tag == NULL )
13432 0 0 if ( node->content->content != NULL &&
0 0 if ( node->content->content != NULL &&
13438 0 0 if ( word != NULL && !IsWhitespace(word) )
0 0 if ( word != NULL && !IsWhitespace(word) )
13443 0 0 if ( !HasDescription && !HasAlt )
0 0 if ( !HasDescription && !HasAlt )
13465 0 0 if (Level1_Enabled( doc ))
13467 0 0 if ( node->content != NULL)
13469 0 0 if ( node->content->type != TextNode )
13474 0 0 for ( av=tnode->attributes; av; av = av->next )
13476 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13485 0 0 if ( !HasAlt )
13489 0 0 if ( TY_(nodeIsText)(node->content) )
13498 0 0 if ( word != NULL && !IsWhitespace(word) )
0 0 if ( word != NULL && !IsWhitespace(word) )
13503 0 0 if ( !HasAlt && !HasDescription )
0 0 if ( !HasAlt && !HasDescription )
13523 0 0 for ( content = node->content;
13524 0 0 !sspresent && content != NULL;
13527 0 0 sspresent = ( nodeIsLINK(content) ||
0 0 sspresent = ( nodeIsLINK(content) ||
0 0 sspresent = ( nodeIsLINK(content) ||
13528 0 0 nodeIsSTYLE(content) ||
0 0 nodeIsSTYLE(content) ||
0 0 nodeIsSTYLE(content) ||
13529 0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
13530 0 0 nodeIsBASEFONT(content) );
0 0 nodeIsBASEFONT(content) );
13532 0 0 for ( av = content->attributes;
13533 0 0 !sspresent && av != NULL;
13536 0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
0 0 sspresent = ( attrIsSTYLE(av) || attrIsTEXT(av) ||
13537 0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
0 0 attrIsVLINK(av) || attrIsALINK(av) ||
13538 0 0 attrIsLINK(av) );
0 0 attrIsLINK(av) );
13540 0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
13542 0 0 sspresent = AttrValueIs(av, "stylesheet");
0 0 sspresent = AttrValueIs(av, "stylesheet");
0 0 sspresent = AttrValueIs(av, "stylesheet");
13546 0 0 if ( ! sspresent )
13569 0 0 if (Level1_Enabled( doc ))
13572 0 0 for (av = node->attributes; av != NULL; av = av->next)
13575 0 0 if ( attrIsLONGDESC(av) )
0 0 if ( attrIsLONGDESC(av) )
0 0 if ( attrIsLONGDESC(av) )
13577 0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
13584 0 0 else if ( attrIsSRC(av) )
0 0 else if ( attrIsSRC(av) )
0 0 else if ( attrIsSRC(av) )
13586 0 0 if ( hasValue(av) && !IsValidSrcExtension(av->value) )
0 0 if ( hasValue(av) && !IsValidSrcExtension(av->value) )
13593 0 0 else if ( attrIsTITLE(av) )
0 0 else if ( attrIsTITLE(av) )
0 0 else if ( attrIsTITLE(av) )
13595 0 0 if ( hasValue(av) )
13598 0 0 if ( !HasTitle )
13600 0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
13607 0 0 if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
0 0 if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
13617 0 0 if ( !HasTitle )
13622 0 0 if ( doc->access.numFrames==3 && doc->access.HasCheckedLongDesc<3 )
0 0 if ( doc->access.numFrames==3 && doc->access.HasCheckedLongDesc<3 )
13640 0 0 if (Level1_Enabled( doc ))
13644 0 0 if ( hasValue(av) )
13646 0 0 if ( !IsValidSrcExtension(av->value) )
13669 0 0 for ( av = node->attributes; av != NULL; av = av->next )
13671 0 0 if (Level1_Enabled( doc ))
13674 0 0 if ( attrIsHREF(av) )
0 0 if ( attrIsHREF(av) )
0 0 if ( attrIsHREF(av) )
13676 0 0 if ( hasValue(av) )
13682 0 0 if ( IsValidMediaExtension(av->value) )
13692 0 0 if ( TY_(tmbstrlen)(ext) < 6 && TY_(tmbstrlen)(ext) > 0 )
0 0 if ( TY_(tmbstrlen)(ext) < 6 && TY_(tmbstrlen)(ext) > 0 )
13695 0 0 if ( errcode )
13697 0 0 if (node->next != NULL)
13699 0 0 if (node->next->tag == NULL)
13704 0 0 if (IsWhitespace (word) == no)
13712 0 0 if ( !HasDescription )
13722 0 0 if (Level2_Enabled( doc ))
13725 0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
13727 0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
13731 0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
13739 0 0 if (Level2_Enabled( doc ))
13741 0 0 if ((node->content != NULL)&&
0 0 if ((node->content != NULL)&&
13749 0 0 if (TY_(tmbstrcmp) (word, "more") == 0)
13754 0 0 if (TY_(tmbstrcmp) (word, "click here") == 0)
13759 0 0 if (HasTriggeredLink == no)
13761 0 0 if (TY_(tmbstrlen)(word) < 6)
13767 0 0 if (TY_(tmbstrlen)(word) > 60)
13775 0 0 if (node->content == NULL)
13799 0 0 for (av = node->attributes; av != NULL; av = av->next)
13801 0 0 if (Level1_Enabled( doc ))
13809 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13812 0 0 if (av->value != NULL)
13819 0 0 if (Level2_Enabled( doc ))
13821 0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
13823 0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
13827 0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
13835 0 0 if (Level1_Enabled( doc ))
13838 0 0 if (HasAlt == no)
13855 0 0 if (Level1_Enabled( doc ))
13858 0 0 if ( node->next == NULL || !nodeIsNOSCRIPT(node->next) )
0 0 if ( node->next == NULL || !nodeIsNOSCRIPT(node->next) )
0 0 if ( node->next == NULL || !nodeIsNOSCRIPT(node->next) )
0 0 if ( node->next == NULL || !nodeIsNOSCRIPT(node->next) )
13880 0 0 for (; node != NULL; node = node->next )
13883 0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
13886 0 0 if ( TY_(nodeIsText)(node->content->content) )
13889 0 0 if ( !IsWhitespace(word) )
13895 0 0 if (numTR == numValidTH)
13898 0 0 if ( numTR >= 2 &&
0 0 if ( numTR >= 2 &&
13899 0 0 numTR > numValidTH &&
13900 0 0 numValidTH >= 2 &&
13922 0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
13926 0 0 for ( tnode = node->content; tnode; tnode = tnode->next )
13928 0 0 if ( nodeIsTH(tnode) )
0 0 if ( nodeIsTH(tnode) )
0 0 if ( nodeIsTH(tnode) )
13930 0 0 if ( TY_(nodeIsText)(tnode->content) )
13933 0 0 if ( !IsWhitespace(word) )
13944 0 0 if ( !isMissingHeader && numTH > 0 )
0 0 if ( !isMissingHeader && numTH > 0 )
13947 0 0 if ( isMissingHeader && numTH >= 2 )
0 0 if ( isMissingHeader && numTH >= 2 )
13966 0 0 if (Level3_Enabled( doc ))
13969 0 0 for (av = node->attributes; av != NULL; av = av->next)
13971 0 0 if ( attrIsABBR(av) )
0 0 if ( attrIsABBR(av) )
0 0 if ( attrIsABBR(av) )
14003 0 0 if ((TY_(tmbstrlen)(word) > 15)&&
0 0 if ((TY_(tmbstrlen)(word) > 15)&&
14032 0 0 if (Level1_Enabled( doc ))
14034 0 0 if (node->content != NULL)
14042 0 0 while (TNode != NULL)
14044 0 0 if ( nodeIsTR(TNode) )
0 0 if ( nodeIsTR(TNode) )
0 0 if ( nodeIsTR(TNode) )
14047 0 0 if (TNode->content != NULL)
14052 0 0 if (flag == 0)
14054 0 0 while (temp != NULL)
14060 0 0 if ( nodeIsTH(temp) )
0 0 if ( nodeIsTH(temp) )
0 0 if ( nodeIsTH(temp) )
14063 0 0 for (av = temp->attributes; av != NULL; av = av->next)
14065 0 0 if ( attrIsCOLSPAN(av)
0 0 if ( attrIsCOLSPAN(av)
0 0 if ( attrIsCOLSPAN(av)
14066 0 0 && (atoi(av->value) > 1) )
14069 0 0 if ( attrIsROWSPAN(av)
0 0 if ( attrIsROWSPAN(av)
0 0 if ( attrIsROWSPAN(av)
14070 0 0 && (atoi(av->value) > 1) )
14087 0 0 if (validColSpanRows == no)
14093 0 0 if (validColSpanColumns == no)
14123 0 0 if (Level3_Enabled( doc ))
14127 0 0 for (av = node->attributes; av != NULL; av = av->next)
14129 0 0 if ( attrIsSUMMARY(av) )
0 0 if ( attrIsSUMMARY(av) )
0 0 if ( attrIsSUMMARY(av) )
14131 0 0 if ( hasValue(av) )
14135 0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
14136 0 0 AttrContains(av, "table"))
0 0 AttrContains(av, "table"))
14142 0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
14147 0 0 else if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
0 0 else if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
14156 0 0 if (node->content == NULL)
14164 0 0 if (Level1_Enabled( doc ))
14170 0 0 if (Level2_Enabled( doc ))
14173 0 0 if ( nodeIsCAPTION(node->content) )
0 0 if ( nodeIsCAPTION(node->content) )
0 0 if ( nodeIsCAPTION(node->content) )
14177 0 0 if (TNode->content && TNode->content->tag == NULL)
0 0 if (TNode->content && TNode->content->tag == NULL)
14182 0 0 if ( !IsWhitespace(word) )
14188 0 0 if (HasCaption == no)
14195 0 0 if (node->content != NULL)
14197 0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
14201 0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
14207 0 0 if ( ! doc->access.HasValidColumnHeaders )
14209 0 0 if (node->content != NULL)
14211 0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
0 0 if ( nodeIsCAPTION(node->content) && nodeIsTR(node->content->next) )
14215 0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
14223 0 0 if (Level3_Enabled( doc ))
14226 0 0 if (HasSummary == no)
14232 0 0 if (Level2_Enabled( doc ))
14234 0 0 if (node->content != NULL)
14238 0 0 while (temp != NULL)
14240 0 0 if ( nodeIsTR(temp) )
0 0 if ( nodeIsTR(temp) )
0 0 if ( nodeIsTR(temp) )
14248 0 0 if (numTR == 1)
14254 0 0 if ( doc->access.HasTH )
14260 0 0 if (Level1_Enabled( doc ))
14262 0 0 if ( doc->access.CheckedHeaders == 2 )
14264 0 0 if ( !doc->access.HasValidRowHeaders &&
0 0 if ( !doc->access.HasValidRowHeaders &&
14265 0 0 !doc->access.HasValidColumnHeaders &&
14266 0 0 !doc->access.HasInvalidRowHeader &&
14272 0 0 if ( !doc->access.HasValidRowHeaders &&
0 0 if ( !doc->access.HasValidRowHeaders &&
14278 0 0 if ( !doc->access.HasValidColumnHeaders &&
0 0 if ( !doc->access.HasValidColumnHeaders &&
14311 0 0 if (Level1_Enabled( doc ) && node->content)
0 0 if (Level1_Enabled( doc ) && node->content)
14317 0 0 for (i = node->content->start + 1; i < node->content->end; i++)
14322 0 0 if (doc->lexer->lexbuf[i] == '\n')
14330 0 0 for (x = i; x < i + 5; x++)
14332 0 0 if (doc->lexer->lexbuf[x] == compareLetter)
14344 0 0 if (matchingCount >= 5)
14354 0 0 if (newLines >= 6 || matchingCount >= 5)
0 0 if (newLines >= 6 || matchingCount >= 5)
14360 0 0 if (IsAscii == yes)
14362 0 0 if (node->prev != NULL && node->prev->prev != NULL)
0 0 if (node->prev != NULL && node->prev->prev != NULL)
14367 0 0 for (av = temp1->attributes; av != NULL; av = av->next)
14369 0 0 if ( attrIsHREF(av) && hasValue(av) )
0 0 if ( attrIsHREF(av) && hasValue(av) )
0 0 if ( attrIsHREF(av) && hasValue(av) )
0 0 if ( attrIsHREF(av) && hasValue(av) )
14379 0 0 if (Level2_Enabled( doc ))
14385 0 0 if (HasSkipOverLink == 1)
14387 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
14392 0 0 for (av = temp2->attributes; av != NULL; av = av->next)
14394 0 0 if ( attrIsNAME(av) && hasValue(av) )
0 0 if ( attrIsNAME(av) && hasValue(av) )
0 0 if ( attrIsNAME(av) && hasValue(av) )
0 0 if ( attrIsNAME(av) && hasValue(av) )
14401 0 0 if ( strstr(skipOver, av->value) != NULL )
14410 0 0 if (IsAscii == yes)
14413 0 0 if (Level3_Enabled( doc ) && (HasSkipOverLink < 2))
0 0 if (Level3_Enabled( doc ) && (HasSkipOverLink < 2))
14430 0 0 if ( !doc->access.HasValidFor &&
0 0 if ( !doc->access.HasValidFor &&
14436 0 0 if ( !doc->access.HasValidId &&
0 0 if ( !doc->access.HasValidId &&
14442 0 0 if ( !doc->access.HasValidId &&
0 0 if ( !doc->access.HasValidId &&
14458 0 0 if (Level2_Enabled( doc ))
14462 0 0 if ( hasValue(av) )
14465 0 0 if ( ++doc->access.ForID == 2 )
14485 0 0 if (Level2_Enabled( doc ))
14490 0 0 for (av = node->attributes; av != NULL; av = av->next)
14493 0 0 if ( attrIsID(av) && hasValue(av) )
0 0 if ( attrIsID(av) && hasValue(av) )
0 0 if ( attrIsID(av) && hasValue(av) )
0 0 if ( attrIsID(av) && hasValue(av) )
14497 0 0 if ( ++doc->access.ForID == 2 )
14520 0 0 for (av = node->attributes; av != NULL; av = av->next)
14523 0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
14525 0 0 if (Level1_Enabled( doc ))
14527 0 0 if (AttrValueIs(av, "image"))
0 0 if (AttrValueIs(av, "image"))
0 0 if (AttrValueIs(av, "image"))
14535 0 0 if ( attrIsALT(av) && hasValue(av) )
0 0 if ( attrIsALT(av) && hasValue(av) )
0 0 if ( attrIsALT(av) && hasValue(av) )
0 0 if ( attrIsALT(av) && hasValue(av) )
14541 0 0 if ( MustHaveAlt && !HasAlt )
0 0 if ( MustHaveAlt && !HasAlt )
14562 0 0 if (Level1_Enabled( doc ))
14564 0 0 if ( doc->badAccess & BA_INVALID_LINK_NOFRAMES )
14569 0 0 for ( temp = node->content; temp != NULL ; temp = temp->next )
14571 0 0 if ( nodeIsNOFRAMES(temp) )
0 0 if ( nodeIsNOFRAMES(temp) )
0 0 if ( nodeIsNOFRAMES(temp) )
14575 0 0 if ( temp->content && nodeIsP(temp->content->content) )
0 0 if ( temp->content && nodeIsP(temp->content->content) )
0 0 if ( temp->content && nodeIsP(temp->content->content) )
0 0 if ( temp->content && nodeIsP(temp->content->content) )
14578 0 0 if ( TY_(nodeIsText)(para->content) )
14581 0 0 if ( word && strstr(word, "browser") != NULL )
0 0 if ( word && strstr(word, "browser") != NULL )
14585 0 0 else if (temp->content == NULL)
14593 0 0 if (HasNoFrames == no)
14617 0 0 if (Level2_Enabled( doc ))
14623 0 0 if (node->content != NULL && node->content->tag == NULL)
0 0 if (node->content != NULL && node->content->tag == NULL)
14627 0 0 for (i = 0; i < TY_(tmbstrlen)(word); i++)
14629 0 0 if (word[i] == ' ')
14635 0 0 if (numWords > 20)
14644 0 0 if ( TY_(nodeIsHeader)(node) )
14649 0 0 for ( temp = node->next; temp != NULL; temp = temp->next )
14652 0 0 if ( nested >= level )
14660 0 0 if ( !IsValidIncrease )
14663 0 0 if ( NeedsDescription )
14682 0 0 if (Level2_Enabled( doc ))
14685 0 0 if (node->content != NULL)
14687 0 0 if (node->content->tag != NULL)
14691 0 0 while (temp != NULL)
14693 0 0 if (temp->tag == NULL)
14703 0 0 if ( !IsNotHeader )
14705 0 0 if ( nodeIsSTRONG(node->content) )
0 0 if ( nodeIsSTRONG(node->content) )
0 0 if ( nodeIsSTRONG(node->content) )
14710 0 0 if ( nodeIsU(node->content) )
0 0 if ( nodeIsU(node->content) )
0 0 if ( nodeIsU(node->content) )
14715 0 0 if ( nodeIsEM(node->content) )
0 0 if ( nodeIsEM(node->content) )
0 0 if ( nodeIsEM(node->content) )
14734 0 0 if (Level1_Enabled( doc ))
14737 0 0 if ( hasValue(av) && IsValidMediaExtension(av->value) )
0 0 if ( hasValue(av) && IsValidMediaExtension(av->value) )
14756 0 0 if (Level3_Enabled( doc ))
14759 0 0 if ( av )
14762 0 0 if ( !hasValue(av) )
14765 0 0 if ( !ValidLang )
14781 0 0 if (Level2_Enabled( doc ))
14784 0 0 if ( TY_(nodeIsText)(node->content) )
14787 0 0 if ( !IsWhitespace(word) )
14806 0 0 if (Level2_Enabled( doc ))
14809 0 0 if ( TY_(nodeIsText)(node) )
14812 0 0 if ( !IsWhitespace(word) )
14834 0 0 if (Level1_Enabled( doc ))
14838 0 0 for (av = node->attributes; av != NULL; av = av->next)
14840 0 0 if ( attrIsREL(av) && hasValue(av) )
0 0 if ( attrIsREL(av) && hasValue(av) )
0 0 if ( attrIsREL(av) && hasValue(av) )
0 0 if ( attrIsREL(av) && hasValue(av) )
14842 0 0 if (AttrContains(av, "stylesheet"))
0 0 if (AttrContains(av, "stylesheet"))
0 0 if (AttrContains(av, "stylesheet"))
14846 0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
0 0 if ( attrIsTYPE(av) && hasValue(av) )
14852 0 0 if (HasRel && HasType)
0 0 if (HasRel && HasType)
14867 0 0 if (Level1_Enabled( doc ))
14884 0 0 if (Level1_Enabled( doc ))
14887 0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
14889 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
14891 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14894 0 0 if ( msgcode )
14909 0 0 if (Level1_Enabled( doc ))
14912 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14914 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14916 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14918 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14921 0 0 if ( msgcode )
14935 0 0 if (Level1_Enabled( doc ))
14938 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14940 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14942 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14944 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14947 0 0 if ( msgcode )
14961 0 0 if (Level1_Enabled( doc ))
14964 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14966 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14968 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14970 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14974 0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
14977 0 0 if ( hasValue(av) )
14981 0 0 if ( TY_(tmbstrcasecmp)(ext, ".gif") == 0 )
14986 0 0 if ( msgcode )
15002 0 0 if (Level2_Enabled( doc ))
15005 0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
15007 0 0 else if ( nodeIsBASEFONT(node) )
0 0 else if ( nodeIsBASEFONT(node) )
0 0 else if ( nodeIsBASEFONT(node) )
15009 0 0 else if ( nodeIsCENTER(node) )
0 0 else if ( nodeIsCENTER(node) )
0 0 else if ( nodeIsCENTER(node) )
15011 0 0 else if ( nodeIsDIR(node) )
0 0 else if ( nodeIsDIR(node) )
0 0 else if ( nodeIsDIR(node) )
15013 0 0 else if ( nodeIsFONT(node) )
0 0 else if ( nodeIsFONT(node) )
0 0 else if ( nodeIsFONT(node) )
15015 0 0 else if ( nodeIsISINDEX(node) )
0 0 else if ( nodeIsISINDEX(node) )
0 0 else if ( nodeIsISINDEX(node) )
15017 0 0 else if ( nodeIsMENU(node) )
0 0 else if ( nodeIsMENU(node) )
0 0 else if ( nodeIsMENU(node) )
15019 0 0 else if ( nodeIsS(node) )
0 0 else if ( nodeIsS(node) )
0 0 else if ( nodeIsS(node) )
15021 0 0 else if ( nodeIsSTRIKE(node) )
0 0 else if ( nodeIsSTRIKE(node) )
0 0 else if ( nodeIsSTRIKE(node) )
15023 0 0 else if ( nodeIsU(node) )
0 0 else if ( nodeIsU(node) )
0 0 else if ( nodeIsU(node) )
15026 0 0 if ( msgcode )
15050 0 0 if (Level2_Enabled( doc ))
15054 0 0 for (av = node->attributes; av != NULL; av = av->next)
15057 0 0 if ( attrIsOnMOUSEDOWN(av) )
0 0 if ( attrIsOnMOUSEDOWN(av) )
0 0 if ( attrIsOnMOUSEDOWN(av) )
15061 0 0 if ( attrIsOnMOUSEUP(av) )
0 0 if ( attrIsOnMOUSEUP(av) )
0 0 if ( attrIsOnMOUSEUP(av) )
15065 0 0 if ( attrIsOnCLICK(av) )
0 0 if ( attrIsOnCLICK(av) )
0 0 if ( attrIsOnCLICK(av) )
15069 0 0 if ( attrIsOnMOUSEOUT(av) )
0 0 if ( attrIsOnMOUSEOUT(av) )
0 0 if ( attrIsOnMOUSEOUT(av) )
15072 0 0 if ( attrIsOnMOUSEOVER(av) )
0 0 if ( attrIsOnMOUSEOVER(av) )
0 0 if ( attrIsOnMOUSEOVER(av) )
15075 0 0 if ( attrIsOnMOUSEMOVE(av) )
0 0 if ( attrIsOnMOUSEMOVE(av) )
0 0 if ( attrIsOnMOUSEMOVE(av) )
15078 0 0 if ( attrIsOnKEYDOWN(av) )
0 0 if ( attrIsOnKEYDOWN(av) )
0 0 if ( attrIsOnKEYDOWN(av) )
15081 0 0 if ( attrIsOnKEYUP(av) )
0 0 if ( attrIsOnKEYUP(av) )
0 0 if ( attrIsOnKEYUP(av) )
15084 0 0 if ( attrIsOnKEYPRESS(av) )
0 0 if ( attrIsOnKEYPRESS(av) )
0 0 if ( attrIsOnKEYPRESS(av) )
15087 0 0 if ( attrIsOnBLUR(av) )
0 0 if ( attrIsOnBLUR(av) )
0 0 if ( attrIsOnBLUR(av) )
15091 0 0 if ( HasOnMouseDown == 1 )
15094 0 0 if ( HasOnMouseUp == 1 )
15097 0 0 if ( HasOnClick == 1 )
15099 0 0 if ( HasOnMouseOut == 1 )
15102 0 0 if ( HasOnMouseOver == 1 )
15105 0 0 if ( HasOnMouseMove == 1 )
15110 0 0 for ( content = node->content; content != NULL; content = content->next )
15132 0 0 if (Level2_Enabled( doc ))
15134 0 0 if ( nodeIsMETA(node) )
0 0 if ( nodeIsMETA(node) )
0 0 if ( nodeIsMETA(node) )
15137 0 0 for (av = node->attributes; av != NULL; av = av->next)
15139 0 0 if ( attrIsHTTP_EQUIV(av) && hasValue(av) )
0 0 if ( attrIsHTTP_EQUIV(av) && hasValue(av) )
0 0 if ( attrIsHTTP_EQUIV(av) && hasValue(av) )
0 0 if ( attrIsHTTP_EQUIV(av) && hasValue(av) )
15144 0 0 if (AttrValueIs(av, "refresh"))
0 0 if (AttrValueIs(av, "refresh"))
0 0 if (AttrValueIs(av, "refresh"))
15151 0 0 if ( attrIsCONTENT(av) && hasValue(av) )
0 0 if ( attrIsCONTENT(av) && hasValue(av) )
0 0 if ( attrIsCONTENT(av) && hasValue(av) )
0 0 if ( attrIsCONTENT(av) && hasValue(av) )
15156 0 0 if ( TY_(tmbstrncmp)(av->value, "http:", 5) == 0)
15162 0 0 if (TY_(IsHTML5Mode)(doc) && attrIsCHARSET(av) && hasValue(av))
0 0 if (TY_(IsHTML5Mode)(doc) && attrIsCHARSET(av) && hasValue(av))
0 0 if (TY_(IsHTML5Mode)(doc) && attrIsCHARSET(av) && hasValue(av))
0 0 if (TY_(IsHTML5Mode)(doc) && attrIsCHARSET(av) && hasValue(av))
0 0 if (TY_(IsHTML5Mode)(doc) && attrIsCHARSET(av) && hasValue(av))
15168 0 0 if ( HasContent || HasHttpEquiv )
0 0 if ( HasContent || HasHttpEquiv )
15175 0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
15180 0 0 if ( !HasMetaData &&
0 0 if ( !HasMetaData &&
15181 0 0 nodeIsADDRESS(node) &&
0 0 nodeIsADDRESS(node) &&
0 0 nodeIsADDRESS(node) &&
15182 0 0 nodeIsA(node->content) )
0 0 nodeIsA(node->content) )
15187 0 0 if ( !HasMetaData &&
0 0 if ( !HasMetaData &&
15188 0 0 !nodeIsTITLE(node) &&
15192 0 0 if ( !IsWhitespace(word) )
15196 0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
15199 0 0 if( !AttrContains(av, "stylesheet") )
0 0 if( !AttrContains(av, "stylesheet") )
0 0 if( !AttrContains(av, "stylesheet") )
15204 0 0 for ( node = node->content; node; node = node->next )
15221 0 0 if (Level2_Enabled( doc ))
15237 0 0 if (Level2_Enabled( doc ))
15242 0 0 if (DTnode && DTnode->end != 0)
0 0 if (DTnode && DTnode->end != 0)
15245 0 0 if (TY_(IsHTML5Mode)(doc))
15247 0 0 if ((strstr(word, "HTML") == NULL) &&
0 0 if ((strstr(word, "HTML") == NULL) &&
15252 0 0 if ((strstr(word, "HTML PUBLIC") == NULL) &&
0 0 if ((strstr(word, "HTML PUBLIC") == NULL) &&
15257 0 0 if (!DTnode)
15283 0 0 for ( node = node->content; !found && node; node = node->next )
0 0 for ( node = node->content; !found && node; node = node->next )
15285 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
15288 0 0 found = ( hasValue(href) && urlMatch(url, href->value) );
0 0 found = ( hasValue(href) && urlMatch(url, href->value) );
15300 0 0 if (!Level3_Enabled( doc ))
15304 0 0 for ( child = node->content; child != NULL; child = child->next )
15306 0 0 if ( nodeIsAREA(child) )
0 0 if ( nodeIsAREA(child) )
0 0 if ( nodeIsAREA(child) )
15330 0 0 if (Level1_Enabled( doc ))
15334 0 0 if ( hasValue(style) )
15342 0 0 for ( content = node->content; content != NULL; content = content->next )
15355 0 0 if ( nodeIsLI(node) )
0 0 if ( nodeIsLI(node) )
0 0 if ( nodeIsLI(node) )
15359 0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsOL(node) || nodeIsUL(node) )
15364 0 0 for ( node = node->content; node != NULL; node = node->next )
15383 0 0 if (!Level2_Enabled( doc ))
15386 0 0 if ( nodeIsOL(node) )
0 0 if ( nodeIsOL(node) )
0 0 if ( nodeIsOL(node) )
15388 0 0 else if ( nodeIsUL(node) )
0 0 else if ( nodeIsUL(node) )
0 0 else if ( nodeIsUL(node) )
15391 0 0 if ( msgcode )
15399 0 0 if ( !nodeIsLI(node->content) ) {
0 0 if ( !nodeIsLI(node->content) ) {
0 0 if ( !nodeIsLI(node->content) ) {
15401 0 0 } else if ( node->implicit ) { /* if a tidy added node */
15405 0 0 else if ( nodeIsLI(node) )
0 0 else if ( nodeIsLI(node) )
0 0 else if ( nodeIsLI(node) )
15415 0 0 if ( node->parent == NULL ||
0 0 if ( node->parent == NULL ||
15416 0 0 ( !nodeIsOL(node->parent) && !nodeIsUL(node->parent) ) )
0 0 ( !nodeIsOL(node->parent) && !nodeIsUL(node->parent) ) )
0 0 ( !nodeIsOL(node->parent) && !nodeIsUL(node->parent) ) )
0 0 ( !nodeIsOL(node->parent) && !nodeIsUL(node->parent) ) )
0 0 ( !nodeIsOL(node->parent) && !nodeIsUL(node->parent) ) )
15419 0 0 } else if ( node->implicit && node->parent &&
0 0 } else if ( node->implicit && node->parent &&
0 0 } else if ( node->implicit && node->parent &&
15420 0 0 ( nodeIsOL(node->parent) || nodeIsUL(node->parent) ) ) {
0 0 ( nodeIsOL(node->parent) || nodeIsUL(node->parent) ) ) {
0 0 ( nodeIsOL(node->parent) || nodeIsUL(node->parent) ) ) {
0 0 ( nodeIsOL(node->parent) || nodeIsUL(node->parent) ) ) {
0 0 ( nodeIsOL(node->parent) || nodeIsUL(node->parent) ) ) {
15422 0 0 msgcode = nodeIsUL(node->parent) ?
0 0 msgcode = nodeIsUL(node->parent) ?
15423 0 0 LIST_USAGE_INVALID_UL : LIST_USAGE_INVALID_OL;
15481 0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
15487 0 0 else if ( nodeIsHEAD(node) )
0 0 else if ( nodeIsHEAD(node) )
0 0 else if ( nodeIsHEAD(node) )
15489 0 0 if ( !CheckMetaData( doc, node, no ) )
15494 0 0 else if ( nodeIsA(node) )
0 0 else if ( nodeIsA(node) )
0 0 else if ( nodeIsA(node) )
15500 0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
15508 0 0 else if ( nodeIsMAP(node) )
0 0 else if ( nodeIsMAP(node) )
0 0 else if ( nodeIsMAP(node) )
15514 0 0 else if ( nodeIsAREA(node) )
0 0 else if ( nodeIsAREA(node) )
0 0 else if ( nodeIsAREA(node) )
15520 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
15532 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
15543 0 0 else if ( nodeIsFRAME(node) )
0 0 else if ( nodeIsFRAME(node) )
0 0 else if ( nodeIsFRAME(node) )
15549 0 0 else if ( nodeIsIFRAME(node) )
0 0 else if ( nodeIsIFRAME(node) )
0 0 else if ( nodeIsIFRAME(node) )
15555 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
15566 0 0 else if ( nodeIsTABLE(node) )
0 0 else if ( nodeIsTABLE(node) )
0 0 else if ( nodeIsTABLE(node) )
15573 0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
0 0 else if ( nodeIsPRE(node) || nodeIsXMP(node) )
15579 0 0 else if ( nodeIsLABEL(node) )
0 0 else if ( nodeIsLABEL(node) )
0 0 else if ( nodeIsLABEL(node) )
15585 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
15593 0 0 else if ( nodeIsFRAMESET(node) )
0 0 else if ( nodeIsFRAMESET(node) )
0 0 else if ( nodeIsFRAMESET(node) )
15599 0 0 else if ( TY_(nodeIsHeader)(node) )
15605 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
15611 0 0 else if ( nodeIsHTML(node) )
0 0 else if ( nodeIsHTML(node) )
0 0 else if ( nodeIsHTML(node) )
15617 0 0 else if ( nodeIsBLINK(node) )
0 0 else if ( nodeIsBLINK(node) )
0 0 else if ( nodeIsBLINK(node) )
15623 0 0 else if ( nodeIsMARQUEE(node) )
0 0 else if ( nodeIsMARQUEE(node) )
0 0 else if ( nodeIsMARQUEE(node) )
15629 0 0 else if ( nodeIsLINK(node) )
0 0 else if ( nodeIsLINK(node) )
0 0 else if ( nodeIsLINK(node) )
15635 0 0 else if ( nodeIsSTYLE(node) )
0 0 else if ( nodeIsSTYLE(node) )
0 0 else if ( nodeIsSTYLE(node) )
15642 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
15651 0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
15652 0 0 nodeIsCENTER(node) ||
0 0 nodeIsCENTER(node) ||
0 0 nodeIsCENTER(node) ||
15653 0 0 nodeIsISINDEX(node) ||
0 0 nodeIsISINDEX(node) ||
0 0 nodeIsISINDEX(node) ||
15654 0 0 nodeIsU(node) ||
0 0 nodeIsU(node) ||
0 0 nodeIsU(node) ||
15655 0 0 nodeIsFONT(node) ||
0 0 nodeIsFONT(node) ||
0 0 nodeIsFONT(node) ||
15656 0 0 nodeIsDIR(node) ||
0 0 nodeIsDIR(node) ||
0 0 nodeIsDIR(node) ||
15657 0 0 nodeIsS(node) ||
0 0 nodeIsS(node) ||
0 0 nodeIsS(node) ||
15658 0 0 nodeIsSTRIKE(node) ||
0 0 nodeIsSTRIKE(node) ||
0 0 nodeIsSTRIKE(node) ||
15659 0 0 nodeIsMENU(node) )
0 0 nodeIsMENU(node) )
15665 0 0 else if ( nodeIsTH(node) )
0 0 else if ( nodeIsTH(node) )
0 0 else if ( nodeIsTH(node) )
15671 0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
0 0 else if ( nodeIsLI(node) || nodeIsOL(node) || nodeIsUL(node) )
15678 0 0 for ( content = node->content; content != NULL; content = content->next )
15704 0 0 if ( Level2_Enabled( doc )
15705 0 0 && ! CheckMissingStyleSheets( doc, &doc->root ) )
15770 0 0 if ( g_panic )
15785 0 225 void *p = ( g_malloc ? g_malloc(size) : malloc(size) );
15786 0 225 if ( !p )
15801 13 0 if ( mem == NULL )
15804 0 0 p = ( g_realloc ? g_realloc(mem, newsize) : realloc(mem, newsize) );
15805 0 0 if (!p)
15816 225 24 if ( mem )
15822 0 225 if ( g_free )
19999 9 0 if (attval && attval->attribute) {
9 0 if (attval && attval->attribute) {
20001 0 9 if (TY_(tmbstrncmp)(attval->attribute, "data-", 5) == 0)
20005 9 0 if (!attval || !attval->dict)
0 9 if (!attval || !attval->dict)
20008 9 0 if (!(!node || !node->tag || !node->tag->attrvers))
9 0 if (!(!node || !node->tag || !node->tag->attrvers))
9 0 if (!(!node || !node->tag || !node->tag->attrvers))
20009 443 0 for (i = 0; node->tag->attrvers[i].attribute; ++i)
20010 9 434 if (node->tag->attrvers[i].attribute == attval->dict->id)
20022 0 0 if (!node || !node->tag || !node->tag->attrvers)
0 0 if (!node || !node->tag || !node->tag->attrvers)
0 0 if (!node || !node->tag || !node->tag->attrvers)
20025 0 0 for (i = 0; node->tag->attrvers[i].attribute; ++i)
20026 0 0 if (node->tag->attrvers[i].attribute == id)
20039 8 0 if (!node || !attval)
0 8 if (!node || !attval)
20042 0 8 if (!node->tag)
20045 0 8 if (!(node->tag->versions & VERS_ALL))
20048 8 0 if (AttributeVersions(node, attval) & VERS_ALL)
20064 0 0 if (!node || !attval)
0 0 if (!node || !attval)
20067 0 0 if (!node->tag)
20070 0 0 if (!(node->tag->versions & VERS_ALL))
20073 0 0 doctype = doc->lexer->versionEmitted == 0 ? doc->lexer->doctype : doc->lexer->versionEmitted;
20075 0 0 if (AttributeVersions(node, attval) & doctype)
20251 0 0 for (i = 0; colors[i].name; ++i)
20252 0 0 if (TY_(tmbstrcasecmp)(name, colors[i].name) == 0)
20255 0 0 if (use_css_colors)
20256 0 0 for (i = 0; extended_colors[i].name; ++i)
20257 0 0 if (TY_(tmbstrcasecmp)(name, extended_colors[i].name) == 0)
20267 0 0 for (i = 0; colors[i].name; ++i)
20268 0 0 if (TY_(tmbstrcasecmp)(code, colors[i].hex) == 0)
20271 0 0 if (use_css_colors)
20272 0 0 for (i = 0; extended_colors[i].name; ++i)
20273 0 0 if (TY_(tmbstrcasecmp)(code, extended_colors[i].hex) == 0)
20283 113 23 for (hashval = 0; *s != '\0'; s++)
20295 8 0 if (old)
20313 0 0 for (p = attribs->hashtab[h]; p && p->attr; p = p->next)
0 0 for (p = attribs->hashtab[h]; p && p->attr; p = p->next)
20315 0 0 if (TY_(tmbstrcmp)(s, p->attr->name) == 0)
20318 0 0 if ( prev )
20334 712 4 for (i = 0; i < ATTRIBUTE_HASH_SIZE; ++i)
20338 8 712 while(dict)
20356 0 15 if (!atnam)
20359 4 11 for (p = attribs->hashtab[attrsHash(atnam)]; p && p->attr; p = p->next)
4 0 for (p = attribs->hashtab[attrsHash(atnam)]; p && p->attr; p = p->next)
20360 4 0 if (TY_(tmbstrcasecmp)(atnam, p->attr->name) == 0)
20363 1569 0 for (np = attribute_defs; np && np->name; ++np)
1566 3 for (np = attribute_defs; np && np->name; ++np)
20364 8 1558 if (TY_(tmbstrcasecmp)(atnam, np->name) == 0)
20375 13 62 for ( av = node->attributes; av; av = av->next )
20377 13 0 if ( AttrIsId(av, id) )
13 0 if ( AttrIsId(av, id) )
1 12 if ( AttrIsId(av, id) )
20386 1 0 if ( attval )
20394 2 4 for (attr = node->attributes; attr != NULL; attr = attr->next)
20396 2 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
1 1 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
20406 0 0 for (attr = node->attributes; attr != NULL; prev = attr, attr = next)
20410 0 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
0 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
20412 0 0 if (prev)
20430 7 3 if (value)
20445 0 3 if (old)
20447 0 0 if (old->value)
20449 0 0 if (value)
20465 0 4 if ( priorities->list )
20468 0 0 while ( priorities->list[i] != NULL )
20484 0 0 if ( !priorities->list )
20492 0 0 if ( priorities->count >= priorities->capacity )
20518 0 0 assert( iter != NULL );
20521 0 0 if ( index > 0 && index <= priorities->count )
0 0 if ( index > 0 && index <= priorities->count )
20526 0 0 *iter = (TidyIterator) ( index <= priorities->count ? index : (size_t)0 );
20536 4 0 return (Bool)( np && np->attrchk == type );
0 4 return (Bool)( np && np->attrchk == type );
20559 29 0 TidyTagId tid = TagId( node );
19 10 TidyTagId tid = TagId( node );
20560 29 0 if ( tid == TidyTag_A ||
29 0 if ( tid == TidyTag_A ||
20561 29 0 tid == TidyTag_APPLET ||
20562 29 0 tid == TidyTag_FORM ||
20563 29 0 tid == TidyTag_FRAME ||
20564 28 1 tid == TidyTag_IFRAME ||
20565 0 28 tid == TidyTag_IMG ||
20593 0 0 for ( pos=0; valid && (c = *buf++); ++pos )
0 0 for ( pos=0; valid && (c = *buf++); ++pos )
20595 0 0 if ( c == '\\' )
20599 0 0 else if ( isdigit( c ) )
20602 0 0 if ( esclen > 0 )
20604 0 0 if ( valid )
20605 0 0 valid = ( pos>0 || esclen>0 );
0 0 valid = ( pos>0 || esclen>0 );
20611 0 0 || ( pos>0 && c == '-' ) /* Dash cannot be 1st char */
0 0 || ( pos>0 && c == '-' ) /* Dash cannot be 1st char */
20612 0 0 || isalpha(c) /* a-z, A-Z anywhere */
20613 0 0 || ( c >= 161 ) /* Unicode 161-255 anywhere */
0 0 || ( c >= 161 ) /* Unicode 161-255 anywhere */
20624 0 0 if ( a )
20633 0 0 if (s)
20635 0 0 for ( ; *s != '\0'; s++) {
20652 0 0 if (s)
20654 0 0 for ( ; *s != '\0'; s++) {
20673 0 0 if (TY_(HTMLVersion)(doc) == HT50)
20678 0 0 for ( curr=attribs->anchor_hash[h]; curr!=NULL; curr=curr->next )
20680 0 0 if ( curr->node == node )
20682 0 0 if ( prev )
20702 0 0 if (!TY_(IsHTML5Mode)(doc)) /* Is. #726 - if NOT HTML5, to lowercase */
20720 0 0 if (TY_(HTMLVersion)(doc) == HT50)
20725 0 0 if ( attribs->anchor_hash[h] == NULL)
20730 0 0 while (here->next)
20749 0 0 if (TY_(HTMLVersion)(doc) == HT50) {
20758 0 0 for ( found = attribs->anchor_hash[h]; found != NULL; found = found->next )
20760 0 0 if ( TY_(tmbstrcmp)(found->name, lname) == 0 )
20765 0 0 if ( found )
20776 7147 7 for (h = 0; h < ANCHOR_HASH_SIZE; h++) {
20777 0 7147 while (NULL != (a = attribs->anchor_hash[h]) )
20807 0 4 while ( NULL != (dict = attribs->declared_attr_list) )
20829 0 0 if (classattr->value)
20835 0 0 if (classattr->value)
20850 0 0 if (end >0 && styleattr->value[end - 1] == ';')
0 0 if (end >0 && styleattr->value[end - 1] == ';')
20860 0 0 else if (end >0 && styleattr->value[end - 1] == '}')
0 0 else if (end >0 && styleattr->value[end - 1] == '}')
20878 0 0 if (end > 0)
20892 0 0 id1 = AttrId(av1);
0 0 id1 = AttrId(av1);
20893 0 0 id2 = AttrId(av2);
0 0 id2 = AttrId(av2);
20894 0 0 if (id1 != TidyAttr_UNKNOWN && id2 != TidyAttr_UNKNOWN)
0 0 if (id1 != TidyAttr_UNKNOWN && id2 != TidyAttr_UNKNOWN)
20895 0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
0 0 return AttrsHaveSameId(av1, av2);
20896 0 0 if (id1 != TidyAttr_UNKNOWN || id2 != TidyAttr_UNKNOWN)
0 0 if (id1 != TidyAttr_UNKNOWN || id2 != TidyAttr_UNKNOWN)
20898 0 0 if (av1->attribute && av2->attribute)
0 0 if (av1->attribute && av2->attribute)
20907 1 5 for (first = node->attributes; first != NULL;)
20912 1 0 if (!(first->asp == NULL && first->php == NULL))
0 1 if (!(first->asp == NULL && first->php == NULL))
20918 0 1 for (second = first->next; second != NULL;)
20922 0 0 if (!(second->asp == NULL && second->php == NULL
20932 0 0 if (!isXml
20933 0 0 && attrIsCLASS(first) && cfgBool(doc, TidyJoinClasses)
0 0 && attrIsCLASS(first) && cfgBool(doc, TidyJoinClasses)
0 0 && attrIsCLASS(first) && cfgBool(doc, TidyJoinClasses)
0 0 && attrIsCLASS(first) && cfgBool(doc, TidyJoinClasses)
20934 0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
20945 0 0 else if (!isXml
20946 0 0 && attrIsSTYLE(first) && cfgBool(doc, TidyJoinStyles)
0 0 && attrIsSTYLE(first) && cfgBool(doc, TidyJoinStyles)
0 0 && attrIsSTYLE(first) && cfgBool(doc, TidyJoinStyles)
0 0 && attrIsSTYLE(first) && cfgBool(doc, TidyJoinStyles)
20947 0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
20956 0 0 else if ( cfg(doc, TidyDuplicateAttrs) == TidyKeepLast )
20973 1 0 if (!firstRedefined)
20983 1 0 if ( attribute != NULL )
20985 1 0 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
1 0 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
1 0 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
1 0 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
1 0 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
0 1 if (attrIsXML_LANG(attval) || attrIsXML_SPACE(attval))
20988 0 0 if (!cfgBool(doc, TidyHtmlOut))
20997 1 0 if (attribute->attrchk)
21006 0 0 const Attribute *attribute = ( attval ? attval->dict : NULL );
21007 0 0 if ( attribute && attribute->attrchk == CH_BOOL )
0 0 if ( attribute && attribute->attrchk == CH_BOOL )
21014 0 0 TidyAttrId atid = AttrId( attval );
0 0 TidyAttrId atid = AttrId( attval );
21016 0 0 return (atid == TidyAttr_OnAFTERUPDATE ||
21017 0 0 atid == TidyAttr_OnBEFOREUNLOAD ||
21018 0 0 atid == TidyAttr_OnBEFOREUPDATE ||
21019 0 0 atid == TidyAttr_OnBLUR ||
21020 0 0 atid == TidyAttr_OnCHANGE ||
21021 0 0 atid == TidyAttr_OnCLICK ||
21022 0 0 atid == TidyAttr_OnDATAAVAILABLE ||
21023 0 0 atid == TidyAttr_OnDATASETCHANGED ||
21024 0 0 atid == TidyAttr_OnDATASETCOMPLETE ||
21025 0 0 atid == TidyAttr_OnDBLCLICK ||
21026 0 0 atid == TidyAttr_OnERRORUPDATE ||
21027 0 0 atid == TidyAttr_OnFOCUS ||
21028 0 0 atid == TidyAttr_OnKEYDOWN ||
21029 0 0 atid == TidyAttr_OnKEYPRESS ||
21030 0 0 atid == TidyAttr_OnKEYUP ||
21031 0 0 atid == TidyAttr_OnLOAD ||
21032 0 0 atid == TidyAttr_OnMOUSEDOWN ||
21033 0 0 atid == TidyAttr_OnMOUSEMOVE ||
21034 0 0 atid == TidyAttr_OnMOUSEOUT ||
21035 0 0 atid == TidyAttr_OnMOUSEOVER ||
21036 0 0 atid == TidyAttr_OnMOUSEUP ||
21037 0 0 atid == TidyAttr_OnRESET ||
21038 0 0 atid == TidyAttr_OnROWENTER ||
21039 0 0 atid == TidyAttr_OnROWEXIT ||
21040 0 0 atid == TidyAttr_OnSELECT ||
21041 0 0 atid == TidyAttr_OnSUBMIT ||
0 0 atid == TidyAttr_OnSUBMIT ||
21050 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21055 0 0 while (*p)
21057 0 0 if (TY_(IsUpper)(*p)) /* #501230 - fix by Terry Teague - 09 Jan 02 */
21065 0 0 if (hasUpper)
21068 0 0 if (lexer->isvoyager)
21071 0 0 if ( lexer->isvoyager || cfgBool(doc, TidyLowerLiterals) )
0 0 if ( lexer->isvoyager || cfgBool(doc, TidyLowerLiterals) )
21092 19 0 return ISALNUM( c ) ||
19 6 return ISALNUM( c ) ||
0 19 return ISALNUM( c ) ||
1 5 return ISALNUM( c ) ||
1 0 return ISALNUM( c ) ||
6 0 return ISALNUM( c ) ||
21093 6 0 c == '%' || /* not a valid codepoint, but an escape sequence */
21094 6 0 c == '#' || /* not a valid codepoint, but a delimiter */
21095 6 0 c == '!' ||
21096 6 0 c == '$' ||
21097 6 0 c == '&' ||
21098 6 0 c == '\'' ||
21099 6 0 c == '(' ||
21100 6 0 c == ')' ||
21101 6 0 c == '*' ||
21102 6 0 c == '+' ||
21103 6 0 c == ',' ||
21104 4 2 c == '-' ||
21105 1 3 c == '.' ||
21106 0 1 c == '/' ||
21107 0 0 c == ':' ||
21108 0 0 c == ';' ||
21109 0 0 c == '=' ||
21110 0 0 c == '?' ||
21111 0 0 c == '@' ||
21112 0 0 c == '_' ||
21113 0 0 c == '~' ||
21114 0 0 (c >= 0x00A0 && c <= 0xD7FF) ||
0 0 (c >= 0x00A0 && c <= 0xD7FF) ||
21115 0 0 (c >= 0xE000 && c <= 0xFDCF) ||
0 0 (c >= 0xE000 && c <= 0xFDCF) ||
21116 0 0 (c >= 0xFDF0 && c <= 0xFFEF) ||
0 0 (c >= 0xFDF0 && c <= 0xFFEF) ||
21117 0 0 (c >= 0x10000 && c <= 0x1FFFD) ||
0 0 (c >= 0x10000 && c <= 0x1FFFD) ||
21118 0 0 (c >= 0x20000 && c <= 0x2FFFD) ||
0 0 (c >= 0x20000 && c <= 0x2FFFD) ||
21119 0 0 (c >= 0x30000 && c <= 0x3FFFD) ||
0 0 (c >= 0x30000 && c <= 0x3FFFD) ||
21120 0 0 (c >= 0x40000 && c <= 0x4FFFD) ||
0 0 (c >= 0x40000 && c <= 0x4FFFD) ||
21121 0 0 (c >= 0x50000 && c <= 0x5FFFD) ||
0 0 (c >= 0x50000 && c <= 0x5FFFD) ||
21122 0 0 (c >= 0x60000 && c <= 0x6FFFD) ||
0 0 (c >= 0x60000 && c <= 0x6FFFD) ||
21123 0 0 (c >= 0x70000 && c <= 0x7FFFD) ||
0 0 (c >= 0x70000 && c <= 0x7FFFD) ||
21124 0 0 (c >= 0x80000 && c <= 0x8FFFD) ||
0 0 (c >= 0x80000 && c <= 0x8FFFD) ||
21125 0 0 (c >= 0x90000 && c <= 0x9FFFD) ||
0 0 (c >= 0x90000 && c <= 0x9FFFD) ||
21126 0 0 (c >= 0xA0000 && c <= 0xAFFFD) ||
0 0 (c >= 0xA0000 && c <= 0xAFFFD) ||
21127 0 0 (c >= 0xB0000 && c <= 0xBFFFD) ||
0 0 (c >= 0xB0000 && c <= 0xBFFFD) ||
21128 0 0 (c >= 0xC0000 && c <= 0xCFFFD) ||
0 0 (c >= 0xC0000 && c <= 0xCFFFD) ||
21129 0 0 (c >= 0xD0000 && c <= 0xDFFFD) ||
0 0 (c >= 0xD0000 && c <= 0xDFFFD) ||
21130 0 0 (c >= 0xE0000 && c <= 0xEFFFD) ||
0 0 (c >= 0xE0000 && c <= 0xEFFFD) ||
21131 19 6 (c >= 0xF0000 && c <= 0xFFFFD) ||
0 0 (c >= 0xF0000 && c <= 0xFFFFD) ||
0 0 (c >= 0xF0000 && c <= 0xFFFFD) ||
21132 0 0 (c >= 0x100000 && c <= 0x10FFFD);
21145 1 0 if (!AttrHasValue(attval))
0 1 if (!AttrHasValue(attval))
21156 25 1 for (i = 0; '\0' != (c = p[i]); ++i)
21158 0 25 if (c == '\\')
21161 0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript)
0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript)
21164 25 0 else if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
25 0 else if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
0 25 else if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
21168 25 1 while ( *p != 0 )
21170 0 25 if ( !IsURLCodePoint( p, &increment ) )
21176 1 0 if ( cfgBool(doc, TidyFixUri) && escape_count )
0 1 if ( cfgBool(doc, TidyFixUri) && escape_count )
21182 0 0 for (i = 0; 0 != (c = p[i]); ++i)
21184 0 0 if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
0 0 if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
0 0 if ((c > 0x7e) || (c <= 0x20) || (strchr("<>", c)))
21186 0 0 if (c == 0x20)
21189 0 0 if (hadnonspace)
21209 0 1 if ( backslash_count )
21211 0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript )
0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript )
21216 0 1 if ( escape_count )
21218 0 0 if ( cfgBool(doc, TidyFixUri) )
21220 0 0 else if ( !(TY_(HTMLVersion)(doc) & VERS_HTML5) )
21225 0 1 if ( bad_codepoint_count )
21239 0 0 if (AttrHasValue(attval))
0 0 if (AttrHasValue(attval))
21252 0 0 if (!s)
21255 0 0 while (*s)
21256 0 0 if (TY_(IsHTMLSpace)(*s++))
21268 0 0 if (!s)
21272 0 0 if (c > 0x7F)
21275 0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
21278 0 0 while (*s)
21282 0 0 if (c > 0x7F)
21287 0 0 if (!TY_(IsXMLNamechar)(c))
21299 0 0 if (!s)
21302 0 0 while (*s)
21306 0 0 if (c > 0x7F)
21311 0 0 if (!TY_(IsXMLNamechar)(c))
21321 0 0 for (v = list; *v; ++v)
21322 0 0 if (AttrValueIs(attval, *v))
0 0 if (AttrValueIs(attval, *v))
0 0 if (AttrValueIs(attval, *v))
21330 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21338 0 0 if (!AttrValueIsAmong(attval, list))
21346 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21352 0 0 if ( TY_(IsAnchorElement)(doc, node) )
21354 0 0 if (cfgBool(doc, TidyXmlOut) && !IsValidNMTOKEN(attval->value))
0 0 if (cfgBool(doc, TidyXmlOut) && !IsValidNMTOKEN(attval->value))
21357 0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
21359 0 0 if (node->implicit) /* Is #709 - improve warning text */
21374 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21380 0 0 if (!TY_(IsValidHTMLID)(attval->value))
21382 0 0 if (lexer->isvoyager && TY_(IsValidXMLID)(attval->value))
0 0 if (lexer->isvoyager && TY_(IsValidXMLID)(attval->value))
21388 0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
21390 0 0 if (node->implicit) /* Is #709 - improve warning text */
21406 0 0 if ( ( ptr && (ptr - node->element > 0) ) )
0 0 if ( ( ptr && (ptr - node->element > 0) ) )
21416 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21424 0 0 go = ( ptr && (ptr - attval->value > 0) );
0 0 go = ( ptr && (ptr - attval->value > 0) );
21427 0 0 if ( !go )
21435 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21446 0 0 if (node->tag && (node->tag->model & CM_IMG))
0 0 if (node->tag && (node->tag->model & CM_IMG))
21452 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21461 0 0 if (nodeIsCAPTION(node))
0 0 if (nodeIsCAPTION(node))
0 0 if (nodeIsCAPTION(node))
21464 0 0 if (!AttrValueIsAmong(attval, values))
21468 0 0 if( !(AttrValueIs(attval, "char")
0 0 if( !(AttrValueIs(attval, "char")
21481 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21489 0 0 if (AttrValueIsAmong(attval, values))
21493 0 0 else if (AttrValueIsAmong(attval, values2))
21495 0 0 if (!(node->tag && (node->tag->model & CM_IMG)))
0 0 if (!(node->tag && (node->tag->model & CM_IMG)))
21498 0 0 else if (AttrValueIsAmong(attval, valuesp))
21511 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21518 0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
0 0 if (attrIsWIDTH(attval) && (nodeIsCOL(node) || nodeIsCOLGROUP(node)))
21523 0 0 if (!TY_(IsDigit)(*p++))
21530 0 0 while (*p)
21532 0 0 if (!percentFound && *p == '%')
0 0 if (!percentFound && *p == '%')
21536 0 0 else if (percentFound || !TY_(IsDigit)(*p))
0 0 else if (percentFound || !TY_(IsDigit)(*p))
21551 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21558 0 0 if (TY_(IsLetter)(attval->value[0]))
21562 0 0 if (!AttrValueIsAmong(attval, values))
21576 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21579 0 0 if (attval->value == NULL)
21586 0 0 if (!AttrValueIsAmong(attval, values))
21606 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21613 0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
21614 0 0 (attrIsCOLS(attval) || attrIsROWS(attval)))
0 0 (attrIsCOLS(attval) || attrIsROWS(attval)))
0 0 (attrIsCOLS(attval) || attrIsROWS(attval)))
0 0 (attrIsCOLS(attval) || attrIsROWS(attval)))
0 0 (attrIsCOLS(attval) || attrIsROWS(attval)))
21620 0 0 if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
0 0 if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
0 0 if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
0 0 if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
0 0 if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
21623 0 0 if (attval->attribute && (strcmp(attval->attribute,"tabindex") == 0) && (*p == '-'))
0 0 if (attval->attribute && (strcmp(attval->attribute,"tabindex") == 0) && (*p == '-'))
0 0 if (attval->attribute && (strcmp(attval->attribute,"tabindex") == 0) && (*p == '-'))
21626 0 0 while (*p)
21628 0 0 if (!TY_(IsDigit)(*p))
21642 0 0 if (TY_(tmbstrlen)(color) != 6)
21646 0 0 for (i = 0; i < 6; i++)
21647 0 0 if (!TY_(IsDigit)(color[i]) && !strchr("abcdef", TY_(ToLower)(color[i])))
0 0 if (!TY_(IsDigit)(color[i]) && !strchr("abcdef", TY_(ToLower)(color[i])))
21659 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21668 0 0 if (given[0] != '#' && (valid = IsValidColorCode(given)))
0 0 if (given[0] != '#' && (valid = IsValidColorCode(given)))
21674 0 0 while ('\0' != (*cp++ = *given++))
21683 0 0 if (!valid && given[0] == '#')
0 0 if (!valid && given[0] == '#')
21686 0 0 if (valid && given[0] == '#' && cfgBool(doc, TidyReplaceColor))
0 0 if (valid && given[0] == '#' && cfgBool(doc, TidyReplaceColor))
0 0 if (valid && given[0] == '#' && cfgBool(doc, TidyReplaceColor))
21690 0 0 if (newName)
21698 0 0 if (!valid)
21701 0 0 if (valid && given[0] == '#')
0 0 if (valid && given[0] == '#')
21703 0 0 else if (valid)
21706 0 0 if (!valid)
21730 0 0 CheckAttrValidity(doc, node, attval,
21738 0 0 if (!AttrHasValue(attval) && !attrIsXML_LANG(attval))
0 0 if (!AttrHasValue(attval) && !attrIsXML_LANG(attval))
0 0 if (!AttrHasValue(attval) && !attrIsXML_LANG(attval))
0 0 if (!AttrHasValue(attval) && !attrIsXML_LANG(attval))
0 0 if (!AttrHasValue(attval) && !attrIsXML_LANG(attval))
21740 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
21767 0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
21769 0 0 else if (nodeIsBUTTON(node))
0 0 else if (nodeIsBUTTON(node))
0 0 else if (nodeIsBUTTON(node))
21771 0 0 else if (nodeIsUL(node))
0 0 else if (nodeIsUL(node))
0 0 else if (nodeIsUL(node))
21773 0 0 else if (nodeIsOL(node))
0 0 else if (nodeIsOL(node))
0 0 else if (nodeIsOL(node))
21775 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21780 0 0 if (!AttrValueIsAmong(attval, valuesOL))
21783 0 0 else if (nodeIsLI(node))
0 0 else if (nodeIsLI(node))
0 0 else if (nodeIsLI(node))
21785 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21790 0 0 if (AttrValueIsAmong(attval, valuesUL))
21792 0 0 else if (!AttrValueIsAmong(attval, valuesOL))
21806 0 0 if (*p == '+' || *p == '-')
0 0 if (*p == '+' || *p == '-')
21809 0 0 while (*p)
21812 0 0 if (*p == '.')
21814 0 0 if (!hasPoint)
21821 0 0 if (!TY_(IsDigit)(*p))
21832 0 0 return attrIsCOLOR(attval)
0 0 return attrIsCOLOR(attval)
21833 0 0 || attrIsSVG_FILL(attval)
0 0 || attrIsSVG_FILL(attval)
0 0 || attrIsSVG_FILL(attval)
21834 0 0 || attrIsSVG_FILLRULE(attval)
0 0 || attrIsSVG_FILLRULE(attval)
0 0 || attrIsSVG_FILLRULE(attval)
21835 0 0 || attrIsSVG_STROKE(attval)
0 0 || attrIsSVG_STROKE(attval)
0 0 || attrIsSVG_STROKE(attval)
21836 0 0 || attrIsSVG_STROKEDASHARRAY(attval)
0 0 || attrIsSVG_STROKEDASHARRAY(attval)
0 0 || attrIsSVG_STROKEDASHARRAY(attval)
21837 0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
21838 0 0 || attrIsSVG_STROKELINECAP(attval)
0 0 || attrIsSVG_STROKELINECAP(attval)
0 0 || attrIsSVG_STROKELINECAP(attval)
21839 0 0 || attrIsSVG_STROKELINEJOIN(attval)
0 0 || attrIsSVG_STROKELINEJOIN(attval)
0 0 || attrIsSVG_STROKELINEJOIN(attval)
21840 0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
21841 0 0 || attrIsSVG_STROKEWIDTH(attval)
0 0 || attrIsSVG_STROKEWIDTH(attval)
0 0 || attrIsSVG_STROKEWIDTH(attval)
21842 0 0 || attrIsSVG_COLORINTERPOLATION(attval)
0 0 || attrIsSVG_COLORINTERPOLATION(attval)
0 0 || attrIsSVG_COLORINTERPOLATION(attval)
21843 0 0 || attrIsSVG_COLORRENDERING(attval)
0 0 || attrIsSVG_COLORRENDERING(attval)
0 0 || attrIsSVG_COLORRENDERING(attval)
21844 0 0 || attrIsSVG_OPACITY(attval)
0 0 || attrIsSVG_OPACITY(attval)
0 0 || attrIsSVG_OPACITY(attval)
21845 0 0 || attrIsSVG_STROKEOPACITY(attval)
0 0 || attrIsSVG_STROKEOPACITY(attval)
0 0 || attrIsSVG_STROKEOPACITY(attval)
21846 0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
21852 0 0 if (!nodeIsSVG(node))
0 0 if (!nodeIsSVG(node))
0 0 if (!nodeIsSVG(node))
21859 0 0 if (IsSvgPaintAttr(attval))
21862 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21869 0 0 if (AttrValueIs(attval, "inherit"))
0 0 if (AttrValueIs(attval, "inherit"))
0 0 if (AttrValueIs(attval, "inherit"))
21877 0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
0 0 if (attrIsSVG_FILL(attval) || attrIsSVG_STROKE(attval))
21883 0 0 if (AttrValueIsAmong(attval, values))
21888 0 0 else if (attrIsSVG_FILLRULE(attval))
0 0 else if (attrIsSVG_FILLRULE(attval))
0 0 else if (attrIsSVG_FILLRULE(attval))
21892 0 0 if (AttrValueIsAmong(attval, values))
21897 0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
21901 0 0 if (AttrValueIsAmong(attval, values))
21908 0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
21912 0 0 else if (attrIsSVG_STROKELINECAP(attval))
0 0 else if (attrIsSVG_STROKELINECAP(attval))
0 0 else if (attrIsSVG_STROKELINECAP(attval))
21916 0 0 if (AttrValueIsAmong(attval, values))
21921 0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
21925 0 0 if (AttrValueIsAmong(attval, values))
21930 0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
21934 0 0 else if (attrIsSVG_STROKEWIDTH(attval))
0 0 else if (attrIsSVG_STROKEWIDTH(attval))
0 0 else if (attrIsSVG_STROKEWIDTH(attval))
21938 0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
21942 0 0 if (AttrValueIsAmong(attval, values))
21947 0 0 else if (attrIsSVG_COLORRENDERING(attval))
0 0 else if (attrIsSVG_COLORRENDERING(attval))
0 0 else if (attrIsSVG_COLORRENDERING(attval))
21952 0 0 if (AttrValueIsAmong(attval, values))
21957 0 0 else if(attrIsSVG_OPACITY(attval))
0 0 else if(attrIsSVG_OPACITY(attval))
0 0 else if(attrIsSVG_OPACITY(attval))
21961 0 0 else if(attrIsSVG_STROKEOPACITY(attval))
0 0 else if(attrIsSVG_STROKEOPACITY(attval))
0 0 else if(attrIsSVG_STROKEOPACITY(attval))
21965 0 0 else if(attrIsSVG_FILLOPACITY(attval))
0 0 else if(attrIsSVG_FILLOPACITY(attval))
0 0 else if(attrIsSVG_FILLOPACITY(attval))
21977 29 19 while (node)
21980 16 13 if (node->content)
22024 0 0 if ( list )
22027 0 0 while ( list[i] != NULL ) {
22028 0 0 if ( TY_(tmbstrcasecmp)(item, list[i]) == 0 )
22047 0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
22048 0 0 return oneIndex < twoIndex ? -1 : 1;
22051 0 0 if ( oneIndex >= 0 && twoIndex == -1 )
0 0 if ( oneIndex >= 0 && twoIndex == -1 )
22055 0 0 if ( oneIndex == -1 && twoIndex >= 0 )
0 0 if ( oneIndex == -1 && twoIndex >= 0 )
22073 0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
22074 0 0 return oneIndex < twoIndex ? -1 : 1;
22077 0 0 if ( oneIndex >= 0 && twoIndex == -1 )
0 0 if ( oneIndex >= 0 && twoIndex == -1 )
22081 0 0 if ( oneIndex == -1 && twoIndex >= 0 )
0 0 if ( oneIndex == -1 && twoIndex >= 0 )
22098 0 29 if ( list && list[0] )
0 0 if ( list && list[0] )
22120 22 7 if (!list)
22124 7 0 if (ptComparator == 0)
22136 0 0 while (p) {
22141 0 0 for (i = 0; i < insize; i++) {
22144 0 0 if(!q) break;
22151 0 0 while (psize > 0 || (qsize > 0 && q)) {
0 0 while (psize > 0 || (qsize > 0 && q)) {
0 0 while (psize > 0 || (qsize > 0 && q)) {
22154 0 0 if (psize == 0) {
22157 0 0 } else if (qsize == 0 || !q) {
0 0 } else if (qsize == 0 || !q) {
22160 0 0 } else if (ptComparator(p,q, priorityList) <= 0) {
22170 0 0 if (tail) {
22186 0 0 if (nmerges <= 1) /* allow for nmerges==0, the empty list case */
22208 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22215 0 0 if (attval->value) {
22233 0 0 while ( ( t = strtok(tPtr, " ") ) != NULL ) {
22235 0 0 if (isPrefix) {
22241 0 0 if (i == NULL) {
22244 0 0 } else if (i != ( t + TY_(tmbstrlen)(t) - 1) ) {
22264 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22278 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22351 0 1 assert( buf != NULL );
22363 0 16 assert( buf != NULL );
22365 15 1 buf->allocator = allocator ? allocator : &TY_(g_default_allocator);
22379 0 7 assert( buf != NULL );
22386 0 1 assert( buf != NULL );
22387 0 1 if ( buf->bp )
22410 0 617 assert( buf != NULL );
22412 0 617 if ( !buf->allocator )
22415 617 0 if ( 0 == chunkSize )
22417 7 610 if ( allocSize+1 > buf->allocated )
22421 0 7 if ( buf->allocated > 0 )
22423 0 7 while ( allocAmt < allocSize+1 )
22427 7 0 if ( bp != NULL )
22439 0 4 assert( buf != NULL );
22443 0 4 if ( !buf->allocator )
22460 0 3 assert( buf != NULL );
22461 3 0 if ( vp != NULL && size > 0 )
3 0 if ( vp != NULL && size > 0 )
22471 0 614 assert( buf != NULL );
22480 0 0 assert( buf != NULL );
22481 0 0 if ( buf->size > 0 )
22493 112 0 if ( ! tidyBufEndOfInput(buf) )
22505 9 0 if ( buf->next > 0 )
22508 0 9 assert( bv == buf->bp[ buf->next ] );
23481 0 0 for (i = 0; charsetInfo[i].id; ++i)
23482 0 0 if (TY_(tmbstrcasecmp)(name, charsetInfo[i].charset) == 0)
23492 0 0 for (i = 0; charsetInfo[i].id; ++i)
23493 0 0 if (cp == charsetInfo[i].codepage)
23503 0 0 for (i = 0; charsetInfo[i].id; ++i)
23504 0 0 if (TY_(tmbstrcasecmp)(name, charsetInfo[i].charset) == 0)
23514 0 0 for (i = 0; charsetInfo[i].id; ++i)
23515 0 0 if (id == charsetInfo[i].id)
23525 0 0 for (i = 0; charsetInfo[i].id; ++i)
23526 0 0 if (id == charsetInfo[i].id)
23536 0 0 for (i = 0; charsetInfo[i].id; ++i)
23537 0 0 if (cp == charsetInfo[i].codepage)
23620 0 0 while (props)
23638 0 0 while (props)
23642 0 0 if (cmp == 0)
23648 0 0 if (cmp > 0)
23657 0 0 if (prev)
23674 0 0 if (prev)
23697 0 0 while (*name)
23699 0 0 while (*name == ' ')
23704 0 0 while (*name_end)
23706 0 0 if (*name_end == ':')
23715 0 0 if (*name_end != ':')
23718 0 0 while ( value && *value == ' ')
0 0 while ( value && *value == ' ')
23724 0 0 while (*value_end)
23726 0 0 if (*value_end == ';')
23741 0 0 if (more)
23763 0 0 for (len = 0, prop = props; prop; prop = prop->next)
23766 0 0 if (prop->value)
23773 0 0 for (p = style, prop = props; prop; prop = prop->next)
23777 0 0 while((*p++ = *s++))
23780 0 0 if (prop->value)
23787 0 0 while((*p++ = *s++))
23790 0 0 if (prop->next == NULL)
23819 3 0 if ( lexer )
23822 0 3 for ( style = lexer->styles; style; style = next )
23837 0 0 if ( pfx == NULL || *pfx == 0 )
0 0 if ( pfx == NULL || *pfx == 0 )
23849 0 0 for (style = lexer->styles; style; style=style->next)
23876 0 0 if (classattr)
23905 0 0 if (styleattr)
23908 0 0 if (!styleattr->value)
23921 0 0 if (classattr)
23938 0 0 if ( selector && color )
0 0 if ( selector && color )
23965 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_BACKGROUND)))
23972 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_BGCOLOR)))
23979 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_TEXT)))
23986 0 0 if ( bgurl || bgcolor || color )
0 0 if ( bgurl || bgcolor || color )
0 0 if ( bgurl || bgcolor || color )
23989 0 0 if (bgurl)
23996 0 0 if (bgcolor)
24003 0 0 if (color)
24014 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_LINK)))
24020 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_VLINK)))
24026 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_ALINK)))
24036 0 0 if (node)
24039 0 0 TY_(AttrGetById)(node, TidyAttr_BGCOLOR) ||
24040 0 0 TY_(AttrGetById)(node, TidyAttr_TEXT) ||
24041 0 0 TY_(AttrGetById)(node, TidyAttr_LINK) ||
24042 0 0 TY_(AttrGetById)(node, TidyAttr_VLINK) ||
24061 0 0 if ( lexer->styles == NULL && NiceBody(doc) )
0 0 if ( lexer->styles == NULL && NiceBody(doc) )
24076 0 0 if ( body )
24079 0 0 for (style = lexer->styles; style; style = style->next)
24102 0 0 if ( NULL != (head = TY_(FindHEAD)( doc )) )
24112 0 0 if (node->prev)
24117 0 0 if (node->next)
24122 0 0 for (child = node->content; child; child = child->next)
24140 0 0 for (child = node->content; child; child = child->next)
24150 0 0 if (element->content)
24156 0 0 if (element->next)
24163 0 0 if (element->prev)
24171 0 0 for (node = element->content; node; node = node->next)
24216 0 0 if ( av )
24218 0 0 if (av->value != NULL)
24241 0 0 for (s2 = NULL, av = child->attributes; av; av = av->next)
24243 0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
24250 0 0 for (s1 = NULL, av = node->attributes; av; av = av->next)
24252 0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
24259 0 0 if (s1)
24261 0 0 if (s2) /* merge class names from both */
24274 0 0 else if (s2) /* copy class names from child */
24293 0 0 for (s2 = NULL, av = child->attributes; av; av = av->next)
24295 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24302 0 0 for (s1 = NULL, av = node->attributes; av; av = av->next)
24304 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24311 0 0 if (s1)
24313 0 0 if (s2) /* merge styles from both */
24320 0 0 else if (s2) /* copy style of child */
24349 0 0 if (size[0] == '\0')
24352 0 0 if ('0' <= size[0] && size[0] <= '6')
0 0 if ('0' <= size[0] && size[0] <= '6')
24358 0 0 if (size[0] == '-')
24360 0 0 if ('0' <= size[1] && size[1] <= '6')
0 0 if ('0' <= size[1] && size[1] <= '6')
24368 0 0 if ('0' <= size[1] && size[1] <= '6')
0 0 if ('0' <= size[1] && size[1] <= '6')
24388 0 0 if (nodeIsP(node))
0 0 if (nodeIsP(node))
0 0 if (nodeIsP(node))
24390 0 0 if (TY_(tmbstrcmp)(size, "6") == 0)
24392 0 0 else if (TY_(tmbstrcmp)(size, "5") == 0)
24394 0 0 else if (TY_(tmbstrcmp)(size, "4") == 0)
24397 0 0 if (value)
24408 0 0 if (value)
24430 0 0 for ( i = 12; i < sizeof(buf)/sizeof(buf[0])-1; ++i )
24432 0 0 if ( (buf[i] = (tmbchar)TY_(ToLower)(*align++)) == '\0' )
24445 0 0 while (av)
24447 0 0 if (AttrHasValue(av))
0 0 if (AttrHasValue(av))
24449 0 0 if (attrIsFACE(av))
0 0 if (attrIsFACE(av))
0 0 if (attrIsFACE(av))
24451 0 0 else if (attrIsSIZE(av))
0 0 else if (attrIsSIZE(av))
0 0 else if (attrIsSIZE(av))
24453 0 0 else if (attrIsCOLOR(av))
0 0 else if (attrIsCOLOR(av))
0 0 else if (attrIsCOLOR(av))
24470 0 0 for (av = node->attributes; av; av = av->next)
24472 0 0 if (attrIsALIGN(av))
0 0 if (attrIsALIGN(av))
0 0 if (attrIsALIGN(av))
24474 0 0 if (prev)
24479 0 0 if (av->value)
24499 0 0 if (NULL != (attr = TY_(AttrGetById)(node, TidyAttr_BGCOLOR)))
24521 0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsDIR(node) || nodeIsUL(node) || nodeIsOL(node) )
24525 0 0 if (child == NULL)
24530 0 0 if (child->next)
24533 0 0 if ( !nodeIsLI(child) )
0 0 if ( !nodeIsLI(child) )
0 0 if ( !nodeIsLI(child) )
24536 0 0 if ( !child->implicit )
24558 0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
24579 0 0 if (TY_(AttrGetById)(child, TidyAttr_ID) != NULL
24580 0 0 && TY_(AttrGetById)(node, TidyAttr_ID) != NULL)
24585 0 0 for (av2 = child->attributes; av2; )
24588 0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
0 0 if (attrIsSTYLE(av2) || attrIsCLASS(av2))
24594 0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
24595 0 0 && (av1=TY_(AttrGetById)(node, id))!= NULL)
24628 0 0 if ( state == TidyNoState
24629 0 0 || !TagIsId(node, Id) )
0 0 || !TagIsId(node, Id) )
0 0 || !TagIsId(node, Id) )
24634 0 0 if ( child == NULL
24635 0 0 || child->next != NULL
24636 0 0 || !TagIsId(child, Id) )
0 0 || !TagIsId(child, Id) )
0 0 || !TagIsId(child, Id) )
24639 0 0 if ( state == TidyAutoState
24640 0 0 && CopyAttrs(doc, node, child) == no )
24657 0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
0 0 if ( nodeIsUL(node) || nodeIsOL(node) )
24661 0 0 if (child == NULL)
24666 0 0 if (child->next)
24671 0 0 if (!list)
24674 0 0 if (list->tag != node->tag)
24678 0 0 if (list->next)
24704 0 0 if (list->prev)
24706 0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
0 0 if ( (nodeIsUL(list->prev) || nodeIsOL(list->prev))
24707 0 0 && list->prev->last )
24752 0 0 for (i=0; CSS_SpanEq[i].CSSeq; ++i)
24753 0 0 if ( (!deprecatedOnly || CSS_SpanEq[i].deprecated)
0 0 if ( (!deprecatedOnly || CSS_SpanEq[i].deprecated)
24754 0 0 && TagIsId(node, CSS_SpanEq[i].id) )
0 0 && TagIsId(node, CSS_SpanEq[i].id) )
0 0 && TagIsId(node, CSS_SpanEq[i].id) )
24765 0 0 if (TY_(nodeHasCM)(node,CM_BLOCK | CM_LIST | CM_DEFLIST | CM_TABLE)
24766 0 0 && !nodeIsDIV(node) && !nodeIsP(node)
0 0 && !nodeIsDIV(node) && !nodeIsP(node)
0 0 && !nodeIsDIV(node) && !nodeIsP(node)
0 0 && !nodeIsDIV(node) && !nodeIsP(node)
0 0 && !nodeIsDIV(node) && !nodeIsP(node)
0 0 && !nodeIsDIV(node) && !nodeIsP(node)
24767 0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
0 0 && !nodeIsTABLE(node) && !nodeIsTR(node) && !nodeIsLI(node) )
24803 0 0 if ( nodeIsTABLE(node)
0 0 if ( nodeIsTABLE(node)
0 0 if ( nodeIsTABLE(node)
24804 0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
0 0 || nodeIsTD(node) || nodeIsTH(node) || nodeIsTR( node ))
24807 0 0 if (CanApplyBlockStyle(node))
24810 0 0 if ( !nodeIsCAPTION(node) )
0 0 if ( !nodeIsCAPTION(node) )
0 0 if ( !nodeIsCAPTION(node) )
24814 0 0 if (child == NULL)
24818 0 0 if (child->next)
24821 0 0 if ( FindCSSSpanEq(child, &CSSeq, no) )
24828 0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
24843 0 0 return !nodeIsFONT(node) && TY_(nodeHasCM)(node, CM_INLINE|CM_ROW);
0 0 return !nodeIsFONT(node) && TY_(nodeHasCM)(node, CM_INLINE|CM_ROW);
0 0 return !nodeIsFONT(node) && TY_(nodeHasCM)(node, CM_INLINE|CM_ROW);
0 0 return !nodeIsFONT(node) && TY_(nodeHasCM)(node, CM_INLINE|CM_ROW);
24852 0 0 if ( CanApplyInlineStyle(node) )
24856 0 0 if (child == NULL)
24861 0 0 if (child->next)
24864 0 0 if ( FindCSSSpanEq(child, &CSSeq, no) )
24871 0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
24893 0 0 if ( node->parent->content == node && node->next == NULL &&
24895 0 0 || CanApplyInlineStyle(node->parent)) )
24898 0 0 if ( FindCSSSpanEq(node, &CSSeq, yes) )
24916 0 0 if ( nodeIsFONT(node) )
0 0 if ( nodeIsFONT(node) )
0 0 if ( nodeIsFONT(node) )
24920 0 0 if ( node->parent->content == node && node->next == NULL &&
24930 0 0 while (av)
24934 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24963 0 0 for (next = node; TY_(nodeIsElement)(node); node = next)
24965 0 0 if ( Dir2Div(doc, node, &next) )
24973 0 0 if ( NestedList(doc, node, &next) )
24976 0 0 if ( Center2Div(doc, node, &next) )
24979 0 0 if ( MergeNestedElements(doc, TidyTag_DIV, mergeDivs, node, &next) )
24982 0 0 if ( MergeNestedElements(doc, TidyTag_SPAN, mergeSpans, node, &next) )
24985 0 0 if ( BlockStyle(doc, node, &next) )
24988 0 0 if ( InlineStyle(doc, node, &next) )
24991 0 0 if ( InlineElementToCSS(doc, node, &next) )
24994 0 0 if ( Font2Span(doc, node, &next) )
25011 0 0 if (node->content)
25014 0 0 for (child = node->content; child != NULL; child = child->next)
25017 0 0 if ( !child )
25029 0 0 if (node->content)
25031 0 0 for (child = node->content;
25048 0 0 if ( cfgBool(doc, TidyMakeClean) )
25060 23 19 while (node)
25064 23 0 if ( (nodeIsB(node) || nodeIsI(node))
16 7 if ( (nodeIsB(node) || nodeIsI(node))
16 0 if ( (nodeIsB(node) || nodeIsI(node))
23 0 if ( (nodeIsB(node) || nodeIsI(node))
16 7 if ( (nodeIsB(node) || nodeIsI(node))
0 16 if ( (nodeIsB(node) || nodeIsI(node))
25065 0 0 && node->parent && node->parent->tag == node->tag)
0 0 && node->parent && node->parent->tag == node->tag)
25073 16 7 if ( node->content )
25085 0 0 while (node)
25087 0 0 if ( nodeIsI(node) )
0 0 if ( nodeIsI(node) )
0 0 if ( nodeIsI(node) )
25089 0 0 else if ( nodeIsB(node) )
0 0 else if ( nodeIsB(node) )
0 0 else if ( nodeIsB(node) )
25092 0 0 if ( node->content )
25101 0 0 return (node->content && node->content->next == NULL);
0 0 return (node->content && node->content->next == NULL);
25113 23 19 while (node)
25115 16 7 if (node->content)
25118 16 7 if ( node->tag && node->tag->parser == TY_(ParseList) &&
25119 0 0 HasOneChild(node) && node->content->implicit )
25141 23 19 while (node)
25143 23 0 if ( nodeIsBLOCKQUOTE(node) && node->implicit )
16 7 if ( nodeIsBLOCKQUOTE(node) && node->implicit )
0 16 if ( nodeIsBLOCKQUOTE(node) && node->implicit )
0 0 if ( nodeIsBLOCKQUOTE(node) && node->implicit )
25147 0 0 while( HasOneChild(node) &&
0 0 while( HasOneChild(node) &&
25148 0 0 nodeIsBLOCKQUOTE(node->content) &&
0 0 nodeIsBLOCKQUOTE(node->content) &&
0 0 nodeIsBLOCKQUOTE(node->content) &&
25155 0 0 if (node->content)
25164 16 7 else if (node->content)
25176 0 0 for ( check=node; check; check = check->parent )
25178 0 0 if ( nodeIsTD(check) )
0 0 if ( nodeIsTD(check) )
0 0 if ( nodeIsTD(check) )
25191 0 0 if (node == NULL)
25195 0 0 if ( TY_(tmbstrncmp)(lexbuf, "if !supportEmptyParas", 21) == 0 )
25198 0 0 if ( cell )
25209 0 0 if ( node->type == TextNode )
25214 0 0 if (node == NULL)
25217 0 0 if (node->type == SectionTag)
25219 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + node->start, "if", 2) == 0)
25225 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + node->start, "endif", 5) == 0)
25239 0 0 while (node)
25241 0 0 if (node->type == SectionTag)
25256 0 0 if (node->content)
25267 0 0 for ( attr = node->attributes; attr; attr = next )
25273 0 0 if (attrIsCLASS(attr))
0 0 if (attrIsCLASS(attr))
0 0 if (attrIsCLASS(attr))
25275 0 0 if (AttrValueIs(attr, "Code") ||
0 0 if (AttrValueIs(attr, "Code") ||
25283 0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
25284 0 0 attrIsSTYLE(attr) ||
0 0 attrIsSTYLE(attr) ||
0 0 attrIsSTYLE(attr) ||
25285 0 0 attrIsLANG(attr) ||
0 0 attrIsLANG(attr) ||
0 0 attrIsLANG(attr) ||
25286 0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
0 0 ( (attrIsHEIGHT(attr) || attrIsWIDTH(attr)) &&
25287 0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
0 0 (nodeIsTD(node) || nodeIsTR(node) || nodeIsTH(node)) ) ||
25288 0 0 (attr->attribute && TY_(tmbstrncmp)(attr->attribute, "x:", 2) == 0) )
25290 0 0 if (prev)
25316 0 0 if (span->prev)
25318 0 0 else if (content)
25327 0 0 while (content)
25336 0 0 if (span->next == NULL)
25348 1 1 while ( node )
25350 0 1 if ( node->content )
25353 1 0 if (TY_(nodeIsText)(node))
25358 5 1 for (i = node->start; i < node->end; ++i)
25363 0 5 if ( c > 0x7F )
25366 0 5 if ( c == 160 )
25383 0 0 if ( !AttrHasValue(attval) )
0 0 if ( !AttrHasValue(attval) )
25387 0 0 if (!TY_(tmbsubstr)(attval->value, "margin-top: 0"))
25391 0 0 if (!TY_(tmbsubstr)(attval->value, "margin-bottom: 0"))
25400 0 0 if ( node->content )
25404 0 0 if ( node->next != NULL )
25407 0 0 if ( node->type != TextNode )
25410 0 0 if ( (node->end - node->start) == 1 &&
0 0 if ( (node->end - node->start) == 1 &&
25414 0 0 if ( (node->end - node->start) == 2 )
25418 0 0 if ( c == 160 )
25440 0 0 while ( node )
25443 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
25446 0 0 if ( !TY_(IsWord2000) (doc) ) /* Is. #896 */
25455 0 0 while ( attval ) {
25459 0 0 if ( !attval->attribute || ( strcmp(attval->attribute, "xmlns") != 0 ))
0 0 if ( !attval->attribute || ( strcmp(attval->attribute, "xmlns") != 0 ))
25470 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
25472 0 0 if (NoMargins(node))
25479 0 0 if (node->content)
25487 0 0 while ( nodeIsP(node) && NoMargins(node) )
0 0 while ( nodeIsP(node) && NoMargins(node) )
0 0 while ( nodeIsP(node) && NoMargins(node) )
0 0 while ( nodeIsP(node) && NoMargins(node) )
25497 0 0 if (node == NULL)
25502 0 0 if (node->tag && (node->tag->model & CM_BLOCK)
0 0 if (node->tag && (node->tag->model & CM_BLOCK)
25503 0 0 && SingleSpace(lexer, node))
25509 0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
0 0 if ( nodeIsSTYLE(node) || nodeIsMETA(node) ||
25517 0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
0 0 if ( nodeIsSPAN(node) || nodeIsFONT(node) )
25523 0 0 if ( nodeIsLINK(node) )
0 0 if ( nodeIsLINK(node) )
0 0 if ( nodeIsLINK(node) )
25527 0 0 if (AttrValueIs(attr, "File-List"))
0 0 if (AttrValueIs(attr, "File-List"))
0 0 if (AttrValueIs(attr, "File-List"))
25535 0 0 if ( node->tag && TY_(tmbstrcmp)(node->tag->name,"o:p")==0)
0 0 if ( node->tag && TY_(tmbstrcmp)(node->tag->name,"o:p")==0)
25551 0 0 if ( node->content == NULL && nodeIsP(node) )
0 0 if ( node->content == NULL && nodeIsP(node) )
0 0 if ( node->content == NULL && nodeIsP(node) )
0 0 if ( node->content == NULL && nodeIsP(node) )
25559 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
25572 0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
25573 0 0 AttrValueIs(attr, "MsoListNumber") ||
0 0 AttrValueIs(attr, "MsoListNumber") ||
0 0 AttrValueIs(attr, "MsoListNumber") ||
25574 0 0 AttrContains(atrStyle, "mso-list:") )
0 0 AttrContains(atrStyle, "mso-list:") )
25577 0 0 if (AttrValueIs(attr, "MsoListNumber"))
0 0 if (AttrValueIs(attr, "MsoListNumber"))
0 0 if (AttrValueIs(attr, "MsoListNumber"))
25582 0 0 if ( !list || TagId(list) != listType )
0 0 if ( !list || TagId(list) != listType )
0 0 if ( !list || TagId(list) != listType )
0 0 if ( !list || TagId(list) != listType )
25591 0 0 if ( node->content )
25600 0 0 else if (AttrValueIs(attr, "Code"))
0 0 else if (AttrValueIs(attr, "Code"))
0 0 else if (AttrValueIs(attr, "Code"))
25605 0 0 if ( !list || TagId(list) != TidyTag_PRE )
0 0 if ( !list || TagId(list) != TidyTag_PRE )
0 0 if ( !list || TagId(list) != TidyTag_PRE )
0 0 if ( !list || TagId(list) != TidyTag_PRE )
25624 0 0 if (!node)
25628 0 0 if (TY_(nodeIsElement)(node))
25631 0 0 if (node->content)
25644 0 0 if (html && TY_(GetAttrByName)(html, "xmlns:o"))
0 0 if (html && TY_(GetAttrByName)(html, "xmlns:o"))
25650 0 0 if (head)
25652 0 0 for (node = head->content; node; node = node->next)
25654 0 0 if ( !nodeIsMETA(node) )
0 0 if ( !nodeIsMETA(node) )
0 0 if ( !nodeIsMETA(node) )
25659 0 0 if ( !AttrValueIs(attval, "generator") )
0 0 if ( !AttrValueIs(attval, "generator") )
0 0 if ( !AttrValueIs(attval, "generator") )
25664 0 0 if ( AttrContains(attval, "Microsoft") )
0 0 if ( AttrContains(attval, "Microsoft") )
0 0 if ( AttrContains(attval, "Microsoft") )
25677 0 3 if (!html)
25680 6 3 for ( node = html->content; node != NULL; node = node->next )
25682 6 0 if ( nodeIsHEAD(node) )
6 0 if ( nodeIsHEAD(node) )
3 3 if ( nodeIsHEAD(node) )
25685 6 0 if ( nodeIsBODY(node) )
6 0 if ( nodeIsBODY(node) )
3 3 if ( nodeIsBODY(node) )
25689 3 0 if ( head != NULL && body != NULL )
3 0 if ( head != NULL && body != NULL )
25691 1 3 for (node = head->content; node != NULL; node = next)
25695 1 0 if ( nodeIsOBJECT(node) )
1 0 if ( nodeIsOBJECT(node) )
0 1 if ( nodeIsOBJECT(node) )
25700 0 0 for (child = node->content; child != NULL; child = child->next)
25703 0 0 if ( (TY_(nodeIsText)(child) && !TY_(IsBlank)(doc->lexer, node))
0 0 if ( (TY_(nodeIsText)(child) && !TY_(IsBlank)(doc->lexer, node))
25704 0 0 || !nodeIsPARAM(child) )
0 0 || !nodeIsPARAM(child) )
0 0 || !nodeIsPARAM(child) )
25711 0 0 if ( bump )
25749 3 0 if (!head || !enc || !TY_(tmbstrlen)(enc))
3 0 if (!head || !enc || !TY_(tmbstrlen)(enc))
0 3 if (!head || !enc || !TY_(tmbstrlen)(enc))
25751 0 3 if (outenc == RAW)
25754 0 3 if (outenc == ISO2022)
25757 2 1 if (cfgAutoBool(doc, TidyBodyOnly) == TidyYesState)
25768 1 1 for (currentNode = head->content; currentNode;
25769 1 0 currentNode = (currentNode ? currentNode->next : NULL))
25771 1 0 if (!nodeIsMETA(currentNode))
1 0 if (!nodeIsMETA(currentNode))
1 0 if (!nodeIsMETA(currentNode))
25775 0 0 if (!charsetAttr && !httpEquivAttr)
0 0 if (!charsetAttr && !httpEquivAttr)
25781 0 0 if (charsetAttr && !httpEquivAttr)
0 0 if (charsetAttr && !httpEquivAttr)
25784 0 0 if (charsetFound || !charsetAttr->value)
0 0 if (charsetFound || !charsetAttr->value)
25794 0 0 if (TY_(tmbstrcasecmp)(charsetAttr->value, enc) != 0)
25806 0 0 if (currentNode != head->content->next) {
25816 0 0 if (httpEquivAttr && !charsetAttr)
0 0 if (httpEquivAttr && !charsetAttr)
25819 0 0 if (!contentAttr)
25821 0 0 if (!httpEquivAttr->value)
25830 0 0 if (TY_(tmbstrcasecmp)(httpEquivAttr->value, (tmbstr) "content-type") != 0)
25832 0 0 if (!contentAttr->value)
25841 0 0 if (TY_(tmbstrcasecmp)(contentAttr->value, (ctmbstr)charsetString.bp) == 0)
25844 0 0 if (charsetFound)
25857 0 0 if (charsetFound)
25870 0 0 if (cfgBool(doc, TidyShowMetaChange)) /* Issue #456 - backward compatibility only */
25883 0 0 if (httpEquivAttr && charsetAttr)
0 0 if (httpEquivAttr && charsetAttr)
25894 0 1 if (add_meta && !charsetFound)
0 0 if (add_meta && !charsetFound)
25898 0 0 switch (TY_(HTMLVersion)(doc))
25925 0 0 while (node)
25929 0 0 if (node->type == CommentTag)
25937 0 0 if (node->content)
25948 0 0 while (node)
25952 0 0 if (nodeIsFONT(node))
0 0 if (nodeIsFONT(node))
0 0 if (nodeIsFONT(node))
25959 0 0 if (node->content)
25970 0 0 while (node)
25974 0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
25985 0 0 if (node->content)
26032 0 0 while (node)
26036 0 0 if (TY_(nodeIsText)(node))
26041 0 0 for (i = node->start; i < node->end; ++i)
26045 0 0 if (c > 0x7F)
26048 0 0 if (c >= 0x2013 && c <= 0x201E)
0 0 if (c >= 0x2013 && c <= 0x201E)
26075 0 0 if (node->content)
26086 28 18 while (node)
26090 19 9 if (node->tag && node->tag->parser == TY_(ParsePre))
1 18 if (node->tag && node->tag->parser == TY_(ParsePre))
26097 15 12 if (node->content)
26108 0 0 while (node)
26112 0 0 if (node->type == CDATATag)
26115 0 0 if (node->content)
26133 26 19 while (node)
26139 16 10 if (TY_(nodeIsElement)(node))
26144 0 16 if (lang && xmlLang)
0 0 if (lang && xmlLang)
26153 0 16 else if (lang && wantXmlLang)
0 0 else if (lang && wantXmlLang)
26155 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_XML_LANG )
26159 0 16 else if (xmlLang && wantLang)
0 0 else if (xmlLang && wantLang)
26161 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_LANG )
26166 0 16 if (lang && !wantLang)
0 0 if (lang && !wantLang)
26169 0 16 if (xmlLang && !wantXmlLang)
0 0 if (xmlLang && !wantXmlLang)
26173 16 10 if (node->content)
26188 0 3 if (!html)
26193 0 3 if (wantXmlns)
26195 0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
26198 0 3 else if (xmlns)
26211 26 19 while (node)
26215 1 25 if (TY_(IsAnchorElement)(doc, node))
26226 0 1 if (name && id)
0 0 if (name && id)
26228 0 0 Bool NameHasValue = AttrHasValue(name);
0 0 Bool NameHasValue = AttrHasValue(name);
26229 0 0 Bool IdHasValue = AttrHasValue(id);
0 0 Bool IdHasValue = AttrHasValue(id);
26230 0 0 if ( (NameHasValue != IdHasValue) ||
0 0 if ( (NameHasValue != IdHasValue) ||
26235 0 1 else if (name && wantId)
0 0 else if (name && wantId)
26237 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_ID )
26240 0 0 if (TY_(IsValidHTMLID)(name->value))
26249 0 1 else if (id && wantName)
0 0 else if (id && wantName)
26251 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_NAME )
26260 0 1 if (id && !wantId
0 0 if (id && !wantId
26262 0 0 && (hadName || !wantName || NameEmitted) ) {
0 0 && (hadName || !wantName || NameEmitted) ) {
0 0 && (hadName || !wantName || NameEmitted) ) {
26263 0 0 if (!wantId && !wantName)
0 0 if (!wantId && !wantName)
26268 0 1 if (name && !wantName
0 0 if (name && !wantName
26270 0 0 && (hadId || !wantId || IdEmitted) ) {
0 0 && (hadId || !wantId || IdEmitted) ) {
0 0 && (hadId || !wantId || IdEmitted) ) {
26271 0 0 if (!wantId && !wantName)
0 0 if (!wantId && !wantName)
26277 16 10 if (node->content)
26290 10 9 while (node)
26294 10 0 if (nodeIsSTYLE(node))
7 3 if (nodeIsSTYLE(node))
0 7 if (nodeIsSTYLE(node))
26296 0 0 if (fix)
26307 6 4 else if (node->content)
26321 0 3 if (!html)
26327 3 0 if ((head != NULL) && (body != NULL))
3 0 if ((head != NULL) && (body != NULL))
26344 2 1 if (cfgAutoBool(doc, TidyBodyOnly) == TidyYesState)
26347 0 1 if (!head)
26350 2 1 while (node)
26353 2 0 if (nodeIsTITLE(node))
2 0 if (nodeIsTITLE(node))
1 1 if (nodeIsTITLE(node))
26356 0 1 if (titles > 1)
26705 215 0 for ( /**/; np < option_defs + N_TIDY_OPTIONS; ++np )
26707 6 209 if ( TY_(tmbstrcasecmp)(s, np->name) == 0 )
26716 0 0 if ( optId < N_TIDY_OPTIONS )
26729 0 0 if ( a != b )
26731 0 0 if ( a == NULL || b == NULL ) /* can't both be null at this point. */
0 0 if ( a == NULL || b == NULL ) /* can't both be null at this point. */
26742 0 0 if ( doc->pConfigChangeCallback )
26752 196 1365 if ( option->type == TidyString && value->p && value->p != option->pdflt )
9 187 if ( option->type == TidyString && value->p && value->p != option->pdflt )
2 7 if ( option->type == TidyString && value->p && value->p != option->pdflt )
26761 0 1560 assert( oldval != NULL );
26764 0 1560 if ( doc->pConfigChangeCallback )
26766 0 0 if ( option->type == TidyString )
26774 195 1365 if ( option->type == TidyString )
26776 16 179 if ( newval->p && newval->p != option->pdflt )
1 15 if ( newval->p && newval->p != option->pdflt )
26784 0 1560 if ( fire_callback )
26795 1 0 if ( status )
26797 1 0 assert( option->id == optId && option->type == TidyString );
0 1 assert( option->id == optId && option->type == TidyString );
26800 0 1 if ( doc->pConfigChangeCallback )
26807 1 0 if ( TY_(tmbstrlen)(val)) /* Issue #218 - ONLY if it has LENGTH! */
26813 0 1 if ( fire_callback )
26824 0 0 if ( option && option->pickList )
0 0 if ( option && option->pickList )
26830 0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
26834 0 0 if ( ix==pick && item->label )
0 0 if ( ix==pick && item->label )
26846 0 11 Bool fire_callback = doc->pConfigChangeCallback && *optVal != val;
0 0 Bool fire_callback = doc->pConfigChangeCallback && *optVal != val;
26850 0 11 if ( fire_callback )
26857 5 0 if ( status )
26859 0 5 assert( option_defs[ optId ].type == TidyInteger );
26869 6 0 if ( status )
26871 0 6 assert( option_defs[ optId ].type == TidyBoolean );
26881 104 728 if ( option->type == TidyString )
26891 0 0 return ( option->type == TidyString ) ?
26899 0 0 Bool status = ( optId > 0 && optId < N_TIDY_OPTIONS );
0 0 Bool status = ( optId > 0 && optId < N_TIDY_OPTIONS );
26900 0 0 if ( status )
26905 0 0 assert( optId == option->id );
26926 0 0 if ( option->type == TidyString )
26928 0 0 if ( val1->p == val2->p )
26930 0 0 if ( !val1->p || !val2->p )
0 0 if ( !val1->p || !val2->p )
26949 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
26951 0 0 assert( ixVal == (unsigned int) option->id );
26962 0 0 TEST_USERTAGS(TidyInlineTags,tagtype_inline);
26963 0 0 TEST_USERTAGS(TidyBlockTags,tagtype_block);
26964 0 0 TEST_USERTAGS(TidyEmptyTags,tagtype_empty);
26965 0 0 TEST_USERTAGS(TidyPreTags,tagtype_pre);
26982 0 0 REPARSE_USERTAGS(TidyInlineTags,tagtype_inline);
26983 0 0 REPARSE_USERTAGS(TidyBlockTags,tagtype_block);
26984 0 0 REPARSE_USERTAGS(TidyEmptyTags,tagtype_empty);
26985 0 0 REPARSE_USERTAGS(TidyPreTags,tagtype_pre);
26998 0 0 while ( (testName = deprecatedOptions[i].name) )
27000 0 0 if ( TY_(tmbstrcasecmp)( optName, testName ) == 0 )
27023 0 0 assert( isOptionDeprecated(oldName));
27025 0 0 if ( newOptId == TidyUnknownOption )
27034 0 0 if ( TY_(tmbstrcasecmp)( oldName, "show-body-only" ) == 0 )
27039 0 0 if ( GetPickListValue( oldValue, &autoBoolPicks, &value ) )
27041 0 0 if ( value == TidyNoState )
27070 832 8 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27073 0 832 assert( ixVal == (unsigned int) option->id );
27093 728 7 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27095 0 728 assert( ixVal == (unsigned int) option->id );
27111 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27113 0 0 assert( ixVal == (unsigned int) option->id );
27116 0 0 if ( needReparseTagsDecls )
27123 0 0 if ( docTo != docFrom )
27134 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27136 0 0 assert( ixVal == (unsigned int) option->id );
27139 0 0 if ( needReparseTagsDecls )
27191 6 0 if ( config->cfgIn )
27206 5 0 if ( config->c != EndOfStream )
27214 0 1 while ( TY_(IsWhite)(config->c) && !TY_(IsNewline)(config->c) )
0 0 while ( TY_(IsWhite)(config->c) && !TY_(IsNewline)(config->c) )
27226 0 0 while ( config->c != '\n' && config->c != '\r' && config->c != EndOfStream )
0 0 while ( config->c != '\n' && config->c != '\r' && config->c != EndOfStream )
0 0 while ( config->c != '\n' && config->c != '\r' && config->c != EndOfStream )
27230 0 0 if ( config->c == '\r' )
27233 0 0 if ( config->c == '\n' )
27236 0 0 while ( TY_(IsWhite)(config->c) ); /* line continuation? */
27252 0 0 if ( !filename )
27255 0 0 if ( filename[0] != '~' )
27258 0 0 if (filename[1] == '/')
27261 0 0 if (home_dir) {
27310 0 0 if ( home_dir )
27336 0 0 if ( fname != filename )
27358 0 0 if ( fin == NULL || enc < 0 )
0 0 if ( fin == NULL || enc < 0 )
27369 0 0 for ( c = SkipWhite(cfg); c != EndOfStream; c = NextProperty(cfg) )
27375 0 0 if ( c == '/' || c == '#' )
0 0 if ( c == '/' || c == '#' )
27378 0 0 while ( ix < sizeof(name)-1 && c != '\n' && c != EndOfStream && c != ':' )
0 0 while ( ix < sizeof(name)-1 && c != '\n' && c != EndOfStream && c != ':' )
0 0 while ( ix < sizeof(name)-1 && c != '\n' && c != EndOfStream && c != ':' )
0 0 while ( ix < sizeof(name)-1 && c != '\n' && c != EndOfStream && c != ':' )
27384 0 0 if ( c == ':' )
27389 0 0 if ( option && !isDeprecated )
0 0 if ( option && !isDeprecated )
27393 0 0 if ( (NULL != doc->pOptCallback) || (NULL != doc->pConfigCallback) || isDeprecated )
0 0 if ( (NULL != doc->pOptCallback) || (NULL != doc->pConfigCallback) || isDeprecated )
0 0 if ( (NULL != doc->pOptCallback) || (NULL != doc->pConfigCallback) || isDeprecated )
27404 0 0 if ( c == '"' || c == '\'' )
0 0 if ( c == '"' || c == '\'' )
27410 0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
27412 0 0 if ( delim && c == delim )
0 0 if ( delim && c == delim )
27415 0 0 if ( TY_(IsWhite)(c) )
27417 0 0 if ( waswhite )
27432 0 0 if ( doc->pOptCallback )
27435 0 0 if ( doc->pConfigCallback )
27436 0 0 response = response || (*doc->pConfigCallback)( tidyImplToDoc(doc), name, buf );
0 0 response = response || (*doc->pConfigCallback)( tidyImplToDoc(doc), name, buf );
27438 0 0 if ( !response && isDeprecated )
0 0 if ( !response && isDeprecated )
27441 0 0 if ( response == no )
27455 0 0 if ( fname != (tmbstr) file )
27476 0 0 Bool status = ( option != NULL ) && !isDeprecated;
0 0 Bool status = ( option != NULL ) && !isDeprecated;
27477 0 0 if ( !status )
27481 0 0 if (NULL != doc->pOptCallback)
27483 0 0 if (NULL != doc->pConfigCallback )
27484 0 0 status = status || (*doc->pConfigCallback)( tidyImplToDoc(doc), optnam, optval );
0 0 status = status || (*doc->pConfigCallback)( tidyImplToDoc(doc), optnam, optval );
27485 0 0 if (!status && isDeprecated)
0 0 if (!status && isDeprecated)
27487 0 0 if (!status)
27505 1 0 && (option = option_defs + optId)->parser
27506 1 0 && optval != NULL );
1 0 && optval != NULL );
27508 0 1 if ( !status )
27509 0 0 if ( option )
27525 0 1 if (optId == TidyOutFile)
27590 0 0 if ( inenc >= 0 )
27604 0 3 if ( cfgBool(doc, TidyEncloseBlockText) )
27607 3 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState )
27611 0 3 if ( cfg(doc, TidyWrapLen) == 0 )
27615 0 3 if ( cfgBool(doc, TidyWord2000) )
27622 0 3 if ( cfgBool(doc, TidyXmlTags) )
27626 0 3 if ( cfgBool(doc, TidyXhtmlOut) )
27635 0 3 if ( cfgBool(doc, TidyXmlTags) )
27645 3 0 if ( cfg(doc, TidyOutCharEncoding) != ASCII &&
0 3 if ( cfg(doc, TidyOutCharEncoding) != ASCII &&
27646 0 0 cfg(doc, TidyOutCharEncoding) != UTF8 &&
27647 0 0 cfg(doc, TidyOutCharEncoding) != UTF16 &&
27648 0 0 cfg(doc, TidyOutCharEncoding) != UTF16BE &&
27649 0 0 cfg(doc, TidyOutCharEncoding) != UTF16LE &&
27650 0 0 cfg(doc, TidyOutCharEncoding) != RAW &&
27657 0 3 if ( cfgBool(doc, TidyXmlOut) )
27661 0 0 if ( enc == UTF16LE || enc == UTF16BE || enc == UTF16 )
0 0 if ( enc == UTF16LE || enc == UTF16BE || enc == UTF16 )
0 0 if ( enc == UTF16LE || enc == UTF16BE || enc == UTF16 )
27680 0 0 if ( prvval )
27712 0 0 if ( catval )
27731 0 0 if ( callback )
27740 0 0 if ( cfg->c == EndOfStream )
27747 0 0 if (c == ' ' || c == '\t' || c == ',')
0 0 if (c == ' ' || c == '\t' || c == ',')
0 0 if (c == ' ' || c == '\t' || c == ',')
27753 0 0 if ( c == '\r' || c == '\n' )
0 0 if ( c == '\r' || c == '\n' )
27756 0 0 if ( c == '\r' && c2 == '\n' )
0 0 if ( c == '\r' && c2 == '\n' )
27761 0 0 if ( !TY_(IsWhite)(c) )
27770 0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) && c != ',' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) && c != ',' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) && c != ',' )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) && c != ',' )
27777 0 0 if (i == 0) /* Skip empty attribute definition. Possible when */
27786 0 0 while ( c != EndOfStream );
27788 0 0 if ( i > 0 )
27793 0 0 if ( callback )
27800 0 0 if ( oldbuff )
27803 0 0 if ( fire_callback )
27819 0 0 while ( TY_(IsDigit)(c) )
27826 0 0 if ( !digits )
27841 0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
27848 0 0 if ( i == 0 )
27865 0 0 if ( cfg->c == EndOfStream )
27873 0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
27880 0 0 if ( i == 0 ) {
27883 0 0 else if ( !TY_(IsCSS1Selector)(buf) ) {
27906 0 0 while ( (item = &(*pickList)[ ix ]) && item->label )
0 0 while ( (item = &(*pickList)[ ix ]) && item->label )
27910 0 0 while ( ( input = &(*item->inputs[i]) ) )
27912 0 0 if (TY_(tmbstrcasecmp)(value, input) == 0 )
27937 0 0 while ( c!=EndOfStream && cp < end && !TY_(IsWhite)(c) && c != '\r' && c != '\n' )
0 0 while ( c!=EndOfStream && cp < end && !TY_(IsWhite)(c) && c != '\r' && c != '\n' )
0 0 while ( c!=EndOfStream && cp < end && !TY_(IsWhite)(c) && c != '\r' && c != '\n' )
0 0 while ( c!=EndOfStream && cp < end && !TY_(IsWhite)(c) && c != '\r' && c != '\n' )
0 0 while ( c!=EndOfStream && cp < end && !TY_(IsWhite)(c) && c != '\r' && c != '\n' )
27943 0 0 if ( GetPickListValue( work, entry->pickList, result ) != yes )
27960 0 0 if ( GetParsePickListValue( doc, entry, &value ) )
27962 0 0 if ( entry->type == TidyBoolean )
27964 0 0 else if ( entry->type == TidyInteger )
27984 0 0 if ( status ) {
27987 0 0 if (tabs) {
28009 1 0 if ( c == '"' || c == '\'' )
0 1 if ( c == '"' || c == '\'' )
28015 6 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
5 1 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
5 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
5 0 while ( i < sizeof(buf)-2 && c != EndOfStream && c != '\r' && c != '\n' )
28017 0 5 if ( delim && c == delim )
0 0 if ( delim && c == delim )
28020 0 5 if ( TY_(IsWhite)(c) )
28022 0 0 if ( waswhite )
28050 0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
0 0 while ( i < sizeof(buf)-2 && c != EndOfStream && !TY_(IsWhite)(c) )
28059 0 0 if ( enc < 0 )
28067 0 0 if ( validEncoding && option->id == TidyCharEncoding )
0 0 if ( validEncoding && option->id == TidyCharEncoding )
28084 0 0 if (!encodingName)
28095 0 0 if (!encodingName)
28117 0 0 if ( cfg->c == EndOfStream )
28128 0 0 if ( c == '"' || c == '\''|| c == '-' || c == '+' )
0 0 if ( c == '"' || c == '\''|| c == '-' || c == '+' )
0 0 if ( c == '"' || c == '\''|| c == '-' || c == '+' )
0 0 if ( c == '"' || c == '\''|| c == '-' || c == '+' )
28131 0 0 if (status)
28138 0 0 if ( (status = GetParsePickListValue( doc, option, &value ) ) )
28168 0 0 assert( iter != NULL );
28170 0 0 if ( optId > TidyUnknownOption && optId < N_TIDY_OPTIONS )
0 0 if ( optId > TidyUnknownOption && optId < N_TIDY_OPTIONS )
28175 0 0 *iter = (TidyIterator) ( optId < N_TIDY_OPTIONS ? optId : (size_t)0 );
28185 0 0 if ( option && option->pickList )
0 0 if ( option && option->pickList )
28197 0 0 assert( option!=NULL && iter != NULL );
0 0 assert( option!=NULL && iter != NULL );
28201 0 0 if ( option->pickList )
28203 0 0 if ( ix > 0 && ix < TIDY_PL_SIZE && option->pickList )
0 0 if ( ix > 0 && ix < TIDY_PL_SIZE && option->pickList )
0 0 if ( ix > 0 && ix < TIDY_PL_SIZE && option->pickList )
28209 0 0 *iter = (TidyIterator) ( val && item->label ? ix + 1 : (size_t)0 );
0 0 *iter = (TidyIterator) ( val && item->label ? ix + 1 : (size_t)0 );
28220 0 0 while ( *cp )
28225 0 0 while ( *cp )
28242 0 0 ctmbstr sval = bval ? "yes" : "no";
28252 0 0 if ( option-> pickList )
28254 0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
0 0 while ( (item = &(*option->pickList)[ ix ]) && item->label && ix
28258 0 0 if ( ix==ival && item->label )
0 0 if ( ix==ival && item->label )
28279 0 0 for ( /**/; !diff && option && option->name; ++option, ++val )
0 0 for ( /**/; !diff && option && option->name; ++option, ++val )
0 0 for ( /**/; !diff && option && option->name; ++option, ++val )
28291 0 0 for ( option=option_defs+1; 0==rc && option && option->name; ++option )
0 0 for ( option=option_defs+1; 0==rc && option && option->name; ++option )
0 0 for ( option=option_defs+1; 0==rc && option && option->name; ++option )
28294 0 0 if ( option->parser == NULL )
28296 0 0 if ( OptionValueEqDefault( option, val ) && option->id != TidyDoctype)
0 0 if ( OptionValueEqDefault( option, val ) && option->id != TidyDoctype)
28299 0 0 if ( option->id == TidyDoctype ) /* Special case */
28302 0 0 if ( dtmode == TidyDoctypeUser )
28307 0 0 if (( t = (tmbstr)TidyDocAlloc( doc, TY_(tmbstrlen)( val->p ) + 2 ) ))
28318 0 0 else if ( dtmode == option_defs[TidyDoctypeMode].dflt )
28323 0 0 else if ( option->pickList)
28352 0 0 if ( fout )
30465 0 0 tmbchar ch = (tmbchar)( s ? *s : 0 );
30467 0 0 if (ch == 0)
30469 0 0 while (np->name)
30471 0 0 if (ch == *np->name)
30475 0 0 while (np->name)
30477 0 0 if (ch != *np->name)
30479 0 0 if (TY_(tmbstrcmp)(s, np->name) == 0)
30490 0 0 assert( name && name[0] == '&' );
0 0 assert( name && name[0] == '&' );
30491 0 0 assert( code != NULL );
30492 0 0 assert( versions != NULL );
30495 0 0 if ( name[1] == '#' )
30500 0 0 if ( name[2] == 'x' || (!isXml && name[2] == 'X') )
0 0 if ( name[2] == 'x' || (!isXml && name[2] == 'X') )
0 0 if ( name[2] == 'x' || (!isXml && name[2] == 'X') )
30506 0 0 if ( res == 1 )
30515 0 0 *versions = ( isXml ? VERS_XML : VERS_PROPRIETARY );
30521 0 0 if ( NULL != (np = entitiesLookup(name+1)) )
30529 0 0 *versions = ( isXml ? VERS_XML : VERS_PROPRIETARY );
30546 0 0 for ( ep = entities; ep->name != NULL; ++ep )
30548 0 0 if ( ep->code == ch )
30550 0 0 if (ep->versions & versions)
30595 0 0 if ( fin->unget.size > 0 )
30606 0 0 if ( isEOF )
30626 0 0 if ( !fin )
30643 0 0 if ( closeIt && fin && fin->fp )
0 0 if ( closeIt && fin && fin->fp )
0 0 if ( closeIt && fin && fin->fp )
30743 0 0 if (element->content)
30749 0 0 if (element->next)
30756 0 0 if (element->prev)
30764 0 0 for (node = element->content; node; node = node->next)
30782 0 0 if (node->content)
30784 0 0 for (child = node->content; child != NULL; child = next)
30788 0 0 if (TY_(nodeIsElement)(child))
30790 0 0 if (nodeIsSTYLE(child))
0 0 if (nodeIsSTYLE(child))
0 0 if (nodeIsSTYLE(child))
30792 0 0 if (nodeIsP(child) && !child->content)
0 0 if (nodeIsP(child) && !child->content)
0 0 if (nodeIsP(child) && !child->content)
0 0 if (nodeIsP(child) && !child->content)
30794 0 0 else if (nodeIsSPAN(child))
0 0 else if (nodeIsSPAN(child))
0 0 else if (nodeIsSPAN(child))
30796 0 0 else if (nodeIsA(child) && !child->content)
0 0 else if (nodeIsA(child) && !child->content)
0 0 else if (nodeIsA(child) && !child->content)
0 0 else if (nodeIsA(child) && !child->content)
30802 0 0 if (!id)
30805 0 0 if (id)
30812 0 0 if (child->attributes)
30827 0 0 if (head)
30879 0 0 if (attrs == NULL)
30888 0 0 newattrs->asp = attrs->asp ? TY_(CloneNode)(doc, attrs->asp) : NULL;
30889 0 0 newattrs->php = attrs->php ? TY_(CloneNode)(doc, attrs->php) : NULL;
30895 0 0 if (node->tag == NULL)
30898 0 0 if (!(node->tag->model & CM_INLINE))
30901 0 0 if (node->tag->model & CM_OBJECT)
30907 0 0 if (nodeIsINS(node) || nodeIsDEL(node))
0 0 if (nodeIsINS(node) || nodeIsDEL(node))
0 0 if (nodeIsINS(node) || nodeIsDEL(node))
0 0 if (nodeIsINS(node) || nodeIsDEL(node))
0 0 if (nodeIsINS(node) || nodeIsDEL(node))
0 0 if (nodeIsINS(node) || nodeIsDEL(node))
30934 0 0 if (node->implicit)
30937 0 0 if ( !IsNodePushable(node) )
30940 0 0 if ( !nodeIsFONT(node) && TY_(IsPushed)(doc, node) )
0 0 if ( !nodeIsFONT(node) && TY_(IsPushed)(doc, node) )
0 0 if ( !nodeIsFONT(node) && TY_(IsPushed)(doc, node) )
0 0 if ( !nodeIsFONT(node) && TY_(IsPushed)(doc, node) )
30944 0 0 if (lexer->istacksize + 1 > lexer->istacklength)
30946 0 0 if (lexer->istacklength == 0)
30971 0 0 while (istack->attributes)
30986 0 0 while (lexer->istacksize > 0)
30990 0 0 if ( istack->tag->id == tid )
31000 0 0 if (node)
31002 0 0 if ( !IsNodePushable(node) )
31006 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
31013 0 0 if (lexer->istacksize > 0)
31018 0 0 if (lexer->insert >= lexer->istack + lexer->istacksize)
31028 0 3 for (i = lexer->istacksize - 1; i >= 0; --i)
31030 0 0 if (lexer->istack[i].tag == node->tag)
31044 0 0 if ( element && !IsNodePushable(element) )
0 0 if ( element && !IsNodePushable(element) )
31047 0 0 if (lexer->istacksize > 0) {
31048 0 0 if (lexer->istack[lexer->istacksize - 1].tag == node->tag) {
31078 0 4 if ((n = lexer->istacksize - lexer->istackbase) > 0)
31105 0 0 if (lexer->insert == NULL)
31117 0 0 if (lexer->inode == NULL)
31147 0 0 if (++n < lexer->istacksize)
31166 0 0 if ( lexer
31167 0 0 && element && element->tag
0 0 && element && element->tag
31168 0 0 && node && node->tag
0 0 && node && node->tag
31169 0 0 && TY_(IsPushed)( doc, element )
31170 0 0 && TY_(IsPushed)( doc, node )
31171 0 0 && ((lexer->istacksize - lexer->istackbase) >= 2) )
31175 0 0 for (i = (lexer->istacksize - lexer->istackbase - 1); i >= 0; --i)
31177 0 0 if (lexer->istack[i].tag == element->tag) {
31182 0 0 for ( ; i >= 0; --i)
31184 0 0 if (lexer->istack[i].tag == node->tag)
31191 0 0 if ( istack2 )
31214 0 0 if ( element
31215 0 0 && (element->tag != NULL)
31216 0 0 && ((n = lexer->istacksize - lexer->istackbase) > 0) )
31218 0 0 for ( i = n - 1; i >=0; --i ) {
31219 0 0 if (lexer->istack[i].tag == element->tag) {
31479 11365 0 for (i = 0; (*dictionary)[i].value; ++i)
31481 88 11277 if ( (*dictionary)[i].key == messageType && (*dictionary)[i].pluralForm == pluralForm )
83 5 if ( (*dictionary)[i].key == messageType && (*dictionary)[i].pluralForm == pluralForm )
31505 0 39 if (!result && tidyLanguages.fallbackLanguage )
0 0 if (!result && tidyLanguages.fallbackLanguage )
31510 0 39 if (!result)
31516 0 39 if (!result)
31557 0 0 for (i = 0; localeMappings[i].winName; ++i)
31559 0 0 if ( strcmp( localeMappings[i].winName, search ) == 0 )
31575 0 0 for ( i = 0; i < len; i++ )
31577 0 0 if ( i == 2 )
31580 0 0 if (len == 5) {
31610 0 0 for (i = 0; tidyLanguages.languages[i]; ++i)
31616 0 0 if ( strcmp(testCode, languageCode) == 0 )
31642 0 8 if ( !languageCode || !(wantCode = TY_(tidyNormalizedLocaleName)( languageCode )) )
0 0 if ( !languageCode || !(wantCode = TY_(tidyNormalizedLocaleName)( languageCode )) )
31654 0 0 if ( strlen( wantCode ) > 2 )
31661 0 0 if ( dict1 && dict2 )
0 0 if ( dict1 && dict2 )
31666 0 0 if ( dict1 && !dict2 )
0 0 if ( dict1 && !dict2 )
31671 0 0 if ( !dict1 && dict2 )
0 0 if ( !dict1 && dict2 )
31681 0 0 return dict1 || dict2;
0 0 return dict1 || dict2;
31734 0 0 if ( array_size == 0 )
31736 0 0 while ( language_en.messages[array_size].value != NULL ) {
31766 0 0 assert( iter != NULL );
31770 0 0 if ( itemIndex > 0 && itemIndex <= tidyStringKeyListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyStringKeyListSize() )
31776 0 0 *iter = (TidyIterator)( itemIndex <= tidyStringKeyListSize() ? itemIndex : (size_t)0 );
31789 0 0 if ( array_size == 0 )
31791 0 0 while ( localeMappings[array_size].winName ) {
31817 0 0 assert( iter != NULL );
31821 0 0 if ( itemIndex > 0 && itemIndex <= tidyLanguageListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyLanguageListSize() )
31827 0 0 *iter = (TidyIterator)( itemIndex <= tidyLanguageListSize() ? itemIndex : (size_t)0 );
31857 0 0 if ( array_size == 0 )
31859 0 0 while ( tidyLanguages.languages[array_size] ) {
31884 0 0 assert( iter != NULL );
31888 0 0 if ( itemIndex > 0 && itemIndex <= tidyInstalledLanguageListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyInstalledLanguageListSize() )
31894 0 0 *iter = (TidyIterator)( itemIndex <= tidyInstalledLanguageListSize() ? itemIndex : (size_t)0 );
32165 23 0 Bool xhtml = (cfgBool(doc, TidyXmlOut) || doc->lexer->isvoyager) &&
0 23 Bool xhtml = (cfgBool(doc, TidyXmlOut) || doc->lexer->isvoyager) &&
0 0 Bool xhtml = (cfgBool(doc, TidyXmlOut) || doc->lexer->isvoyager) &&
32167 23 0 Bool html4 = ((dtmode == TidyDoctypeStrict) || (dtmode == TidyDoctypeLoose) ||
32168 23 0 (VERS_HMTL40PX & dtver) ? yes : no);
0 23 (VERS_HMTL40PX & dtver) ? yes : no);
32169 0 0 Bool html5 = (!html4 && ((dtmode == TidyDoctypeAuto) ||
32170 23 0 (dtmode == TidyDoctypeHtml5)) ? yes : no);
0 23 (dtmode == TidyDoctypeHtml5)) ? yes : no);
32172 0 23 if (xhtml && dtver == VERS_UNKNOWN) return XH50;
0 0 if (xhtml && dtver == VERS_UNKNOWN) return XH50;
32173 23 0 if (dtver == VERS_UNKNOWN) return HT50;
32175 0 0 if (!xhtml && (dtver == VERS_HTML5)) return HT50;
0 0 if (!xhtml && (dtver == VERS_HTML5)) return HT50;
32178 0 0 if (xhtml && html5 && ((vers & VERS_HTML5) == XH50)) return XH50;
0 0 if (xhtml && html5 && ((vers & VERS_HTML5) == XH50)) return XH50;
0 0 if (xhtml && html5 && ((vers & VERS_HTML5) == XH50)) return XH50;
32180 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32182 0 0 if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||
0 0 if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||
0 0 if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||
32183 0 0 (html4 && !(VERS_HMTL40PX & W3C_Doctypes[i].vers)))
32186 0 0 if (vers & W3C_Doctypes[i].vers &&
0 0 if (vers & W3C_Doctypes[i].vers &&
32187 0 0 (W3C_Doctypes[i].score < score || !score))
32194 0 0 if (score)
32204 54 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32205 3 51 if (W3C_Doctypes[i].vers == vers)
32215 54 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32216 3 51 if (W3C_Doctypes[i].vers == vers)
32226 108 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32227 6 102 if (W3C_Doctypes[i].vers == vers)
32237 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32238 0 0 if (W3C_Doctypes[i].fpi != NULL && TY_(tmbstrcasecmp)(W3C_Doctypes[i].fpi, fpi) == 0)
0 0 if (W3C_Doctypes[i].fpi != NULL && TY_(tmbstrcasecmp)(W3C_Doctypes[i].fpi, fpi) == 0)
32350 91 0 unsigned int map = MAP(c);
32357 0 0 unsigned int map = MAP(c);
32365 0 0 map = MAP(c);
32374 0 0 map = MAP(c);
32383 9 0 map = MAP(c);
32390 0 0 return c == 0x020 || c == 0x009 || c == 0x00a || c == 0x00c || c == 0x00d;
0 0 return c == 0x020 || c == 0x009 || c == 0x00a || c == 0x00c || c == 0x00d;
0 0 return c == 0x020 || c == 0x009 || c == 0x00a || c == 0x00c || c == 0x00d;
0 0 return c == 0x020 || c == 0x009 || c == 0x00a || c == 0x00c || c == 0x00d;
0 0 return c == 0x020 || c == 0x009 || c == 0x00a || c == 0x00c || c == 0x00d;
32395 24 0 unsigned int map = MAP(c);
32401 0 0 return ((c >= 0x41 && c <= 0x5a) ||
0 0 return ((c >= 0x41 && c <= 0x5a) ||
32402 0 0 (c >= 0x61 && c <= 0x7a) ||
0 0 (c >= 0x61 && c <= 0x7a) ||
32403 0 0 (c >= 0xc0 && c <= 0xd6) ||
0 0 (c >= 0xc0 && c <= 0xd6) ||
32404 0 0 (c >= 0xd8 && c <= 0xf6) ||
0 0 (c >= 0xd8 && c <= 0xf6) ||
32405 0 0 (c >= 0xf8 && c <= 0xff) ||
0 0 (c >= 0xf8 && c <= 0xff) ||
32406 0 0 (c >= 0x100 && c <= 0x131) ||
0 0 (c >= 0x100 && c <= 0x131) ||
32407 0 0 (c >= 0x134 && c <= 0x13e) ||
0 0 (c >= 0x134 && c <= 0x13e) ||
32408 0 0 (c >= 0x141 && c <= 0x148) ||
0 0 (c >= 0x141 && c <= 0x148) ||
32409 0 0 (c >= 0x14a && c <= 0x17e) ||
0 0 (c >= 0x14a && c <= 0x17e) ||
32410 0 0 (c >= 0x180 && c <= 0x1c3) ||
0 0 (c >= 0x180 && c <= 0x1c3) ||
32411 0 0 (c >= 0x1cd && c <= 0x1f0) ||
0 0 (c >= 0x1cd && c <= 0x1f0) ||
32412 0 0 (c >= 0x1f4 && c <= 0x1f5) ||
0 0 (c >= 0x1f4 && c <= 0x1f5) ||
32413 0 0 (c >= 0x1fa && c <= 0x217) ||
0 0 (c >= 0x1fa && c <= 0x217) ||
32414 0 0 (c >= 0x250 && c <= 0x2a8) ||
0 0 (c >= 0x250 && c <= 0x2a8) ||
32415 0 0 (c >= 0x2bb && c <= 0x2c1) ||
0 0 (c >= 0x2bb && c <= 0x2c1) ||
32416 0 0 c == 0x386 ||
32417 0 0 (c >= 0x388 && c <= 0x38a) ||
0 0 (c >= 0x388 && c <= 0x38a) ||
32418 0 0 c == 0x38c ||
32419 0 0 (c >= 0x38e && c <= 0x3a1) ||
0 0 (c >= 0x38e && c <= 0x3a1) ||
32420 0 0 (c >= 0x3a3 && c <= 0x3ce) ||
0 0 (c >= 0x3a3 && c <= 0x3ce) ||
32421 0 0 (c >= 0x3d0 && c <= 0x3d6) ||
0 0 (c >= 0x3d0 && c <= 0x3d6) ||
32422 0 0 c == 0x3da ||
32423 0 0 c == 0x3dc ||
32424 0 0 c == 0x3de ||
32425 0 0 c == 0x3e0 ||
32426 0 0 (c >= 0x3e2 && c <= 0x3f3) ||
0 0 (c >= 0x3e2 && c <= 0x3f3) ||
32427 0 0 (c >= 0x401 && c <= 0x40c) ||
0 0 (c >= 0x401 && c <= 0x40c) ||
32428 0 0 (c >= 0x40e && c <= 0x44f) ||
0 0 (c >= 0x40e && c <= 0x44f) ||
32429 0 0 (c >= 0x451 && c <= 0x45c) ||
0 0 (c >= 0x451 && c <= 0x45c) ||
32430 0 0 (c >= 0x45e && c <= 0x481) ||
0 0 (c >= 0x45e && c <= 0x481) ||
32431 0 0 (c >= 0x490 && c <= 0x4c4) ||
0 0 (c >= 0x490 && c <= 0x4c4) ||
32432 0 0 (c >= 0x4c7 && c <= 0x4c8) ||
0 0 (c >= 0x4c7 && c <= 0x4c8) ||
32433 0 0 (c >= 0x4cb && c <= 0x4cc) ||
0 0 (c >= 0x4cb && c <= 0x4cc) ||
32434 0 0 (c >= 0x4d0 && c <= 0x4eb) ||
0 0 (c >= 0x4d0 && c <= 0x4eb) ||
32435 0 0 (c >= 0x4ee && c <= 0x4f5) ||
0 0 (c >= 0x4ee && c <= 0x4f5) ||
32436 0 0 (c >= 0x4f8 && c <= 0x4f9) ||
0 0 (c >= 0x4f8 && c <= 0x4f9) ||
32437 0 0 (c >= 0x531 && c <= 0x556) ||
0 0 (c >= 0x531 && c <= 0x556) ||
32438 0 0 c == 0x559 ||
32439 0 0 (c >= 0x561 && c <= 0x586) ||
0 0 (c >= 0x561 && c <= 0x586) ||
32440 0 0 (c >= 0x5d0 && c <= 0x5ea) ||
0 0 (c >= 0x5d0 && c <= 0x5ea) ||
32441 0 0 (c >= 0x5f0 && c <= 0x5f2) ||
0 0 (c >= 0x5f0 && c <= 0x5f2) ||
32442 0 0 (c >= 0x621 && c <= 0x63a) ||
0 0 (c >= 0x621 && c <= 0x63a) ||
32443 0 0 (c >= 0x641 && c <= 0x64a) ||
0 0 (c >= 0x641 && c <= 0x64a) ||
32444 0 0 (c >= 0x671 && c <= 0x6b7) ||
0 0 (c >= 0x671 && c <= 0x6b7) ||
32445 0 0 (c >= 0x6ba && c <= 0x6be) ||
0 0 (c >= 0x6ba && c <= 0x6be) ||
32446 0 0 (c >= 0x6c0 && c <= 0x6ce) ||
0 0 (c >= 0x6c0 && c <= 0x6ce) ||
32447 0 0 (c >= 0x6d0 && c <= 0x6d3) ||
0 0 (c >= 0x6d0 && c <= 0x6d3) ||
32448 0 0 c == 0x6d5 ||
32449 0 0 (c >= 0x6e5 && c <= 0x6e6) ||
0 0 (c >= 0x6e5 && c <= 0x6e6) ||
32450 0 0 (c >= 0x905 && c <= 0x939) ||
0 0 (c >= 0x905 && c <= 0x939) ||
32451 0 0 c == 0x93d ||
32452 0 0 (c >= 0x958 && c <= 0x961) ||
0 0 (c >= 0x958 && c <= 0x961) ||
32453 0 0 (c >= 0x985 && c <= 0x98c) ||
0 0 (c >= 0x985 && c <= 0x98c) ||
32454 0 0 (c >= 0x98f && c <= 0x990) ||
0 0 (c >= 0x98f && c <= 0x990) ||
32455 0 0 (c >= 0x993 && c <= 0x9a8) ||
0 0 (c >= 0x993 && c <= 0x9a8) ||
32456 0 0 (c >= 0x9aa && c <= 0x9b0) ||
0 0 (c >= 0x9aa && c <= 0x9b0) ||
32457 0 0 c == 0x9b2 ||
32458 0 0 (c >= 0x9b6 && c <= 0x9b9) ||
0 0 (c >= 0x9b6 && c <= 0x9b9) ||
32459 0 0 (c >= 0x9dc && c <= 0x9dd) ||
0 0 (c >= 0x9dc && c <= 0x9dd) ||
32460 0 0 (c >= 0x9df && c <= 0x9e1) ||
0 0 (c >= 0x9df && c <= 0x9e1) ||
32461 0 0 (c >= 0x9f0 && c <= 0x9f1) ||
0 0 (c >= 0x9f0 && c <= 0x9f1) ||
32462 0 0 (c >= 0xa05 && c <= 0xa0a) ||
0 0 (c >= 0xa05 && c <= 0xa0a) ||
32463 0 0 (c >= 0xa0f && c <= 0xa10) ||
0 0 (c >= 0xa0f && c <= 0xa10) ||
32464 0 0 (c >= 0xa13 && c <= 0xa28) ||
0 0 (c >= 0xa13 && c <= 0xa28) ||
32465 0 0 (c >= 0xa2a && c <= 0xa30) ||
0 0 (c >= 0xa2a && c <= 0xa30) ||
32466 0 0 (c >= 0xa32 && c <= 0xa33) ||
0 0 (c >= 0xa32 && c <= 0xa33) ||
32467 0 0 (c >= 0xa35 && c <= 0xa36) ||
0 0 (c >= 0xa35 && c <= 0xa36) ||
32468 0 0 (c >= 0xa38 && c <= 0xa39) ||
0 0 (c >= 0xa38 && c <= 0xa39) ||
32469 0 0 (c >= 0xa59 && c <= 0xa5c) ||
0 0 (c >= 0xa59 && c <= 0xa5c) ||
32470 0 0 c == 0xa5e ||
32471 0 0 (c >= 0xa72 && c <= 0xa74) ||
0 0 (c >= 0xa72 && c <= 0xa74) ||
32472 0 0 (c >= 0xa85 && c <= 0xa8b) ||
0 0 (c >= 0xa85 && c <= 0xa8b) ||
32473 0 0 c == 0xa8d ||
32474 0 0 (c >= 0xa8f && c <= 0xa91) ||
0 0 (c >= 0xa8f && c <= 0xa91) ||
32475 0 0 (c >= 0xa93 && c <= 0xaa8) ||
0 0 (c >= 0xa93 && c <= 0xaa8) ||
32476 0 0 (c >= 0xaaa && c <= 0xab0) ||
0 0 (c >= 0xaaa && c <= 0xab0) ||
32477 0 0 (c >= 0xab2 && c <= 0xab3) ||
0 0 (c >= 0xab2 && c <= 0xab3) ||
32478 0 0 (c >= 0xab5 && c <= 0xab9) ||
0 0 (c >= 0xab5 && c <= 0xab9) ||
32479 0 0 c == 0xabd ||
32480 0 0 c == 0xae0 ||
32481 0 0 (c >= 0xb05 && c <= 0xb0c) ||
0 0 (c >= 0xb05 && c <= 0xb0c) ||
32482 0 0 (c >= 0xb0f && c <= 0xb10) ||
0 0 (c >= 0xb0f && c <= 0xb10) ||
32483 0 0 (c >= 0xb13 && c <= 0xb28) ||
0 0 (c >= 0xb13 && c <= 0xb28) ||
32484 0 0 (c >= 0xb2a && c <= 0xb30) ||
0 0 (c >= 0xb2a && c <= 0xb30) ||
32485 0 0 (c >= 0xb32 && c <= 0xb33) ||
0 0 (c >= 0xb32 && c <= 0xb33) ||
32486 0 0 (c >= 0xb36 && c <= 0xb39) ||
0 0 (c >= 0xb36 && c <= 0xb39) ||
32487 0 0 c == 0xb3d ||
32488 0 0 (c >= 0xb5c && c <= 0xb5d) ||
0 0 (c >= 0xb5c && c <= 0xb5d) ||
32489 0 0 (c >= 0xb5f && c <= 0xb61) ||
0 0 (c >= 0xb5f && c <= 0xb61) ||
32490 0 0 (c >= 0xb85 && c <= 0xb8a) ||
0 0 (c >= 0xb85 && c <= 0xb8a) ||
32491 0 0 (c >= 0xb8e && c <= 0xb90) ||
0 0 (c >= 0xb8e && c <= 0xb90) ||
32492 0 0 (c >= 0xb92 && c <= 0xb95) ||
0 0 (c >= 0xb92 && c <= 0xb95) ||
32493 0 0 (c >= 0xb99 && c <= 0xb9a) ||
0 0 (c >= 0xb99 && c <= 0xb9a) ||
32494 0 0 c == 0xb9c ||
32495 0 0 (c >= 0xb9e && c <= 0xb9f) ||
0 0 (c >= 0xb9e && c <= 0xb9f) ||
32496 0 0 (c >= 0xba3 && c <= 0xba4) ||
0 0 (c >= 0xba3 && c <= 0xba4) ||
32497 0 0 (c >= 0xba8 && c <= 0xbaa) ||
0 0 (c >= 0xba8 && c <= 0xbaa) ||
32498 0 0 (c >= 0xbae && c <= 0xbb5) ||
0 0 (c >= 0xbae && c <= 0xbb5) ||
32499 0 0 (c >= 0xbb7 && c <= 0xbb9) ||
0 0 (c >= 0xbb7 && c <= 0xbb9) ||
32500 0 0 (c >= 0xc05 && c <= 0xc0c) ||
0 0 (c >= 0xc05 && c <= 0xc0c) ||
32501 0 0 (c >= 0xc0e && c <= 0xc10) ||
0 0 (c >= 0xc0e && c <= 0xc10) ||
32502 0 0 (c >= 0xc12 && c <= 0xc28) ||
0 0 (c >= 0xc12 && c <= 0xc28) ||
32503 0 0 (c >= 0xc2a && c <= 0xc33) ||
0 0 (c >= 0xc2a && c <= 0xc33) ||
32504 0 0 (c >= 0xc35 && c <= 0xc39) ||
0 0 (c >= 0xc35 && c <= 0xc39) ||
32505 0 0 (c >= 0xc60 && c <= 0xc61) ||
0 0 (c >= 0xc60 && c <= 0xc61) ||
32506 0 0 (c >= 0xc85 && c <= 0xc8c) ||
0 0 (c >= 0xc85 && c <= 0xc8c) ||
32507 0 0 (c >= 0xc8e && c <= 0xc90) ||
0 0 (c >= 0xc8e && c <= 0xc90) ||
32508 0 0 (c >= 0xc92 && c <= 0xca8) ||
0 0 (c >= 0xc92 && c <= 0xca8) ||
32509 0 0 (c >= 0xcaa && c <= 0xcb3) ||
0 0 (c >= 0xcaa && c <= 0xcb3) ||
32510 0 0 (c >= 0xcb5 && c <= 0xcb9) ||
0 0 (c >= 0xcb5 && c <= 0xcb9) ||
32511 0 0 c == 0xcde ||
32512 0 0 (c >= 0xce0 && c <= 0xce1) ||
0 0 (c >= 0xce0 && c <= 0xce1) ||
32513 0 0 (c >= 0xd05 && c <= 0xd0c) ||
0 0 (c >= 0xd05 && c <= 0xd0c) ||
32514 0 0 (c >= 0xd0e && c <= 0xd10) ||
0 0 (c >= 0xd0e && c <= 0xd10) ||
32515 0 0 (c >= 0xd12 && c <= 0xd28) ||
0 0 (c >= 0xd12 && c <= 0xd28) ||
32516 0 0 (c >= 0xd2a && c <= 0xd39) ||
0 0 (c >= 0xd2a && c <= 0xd39) ||
32517 0 0 (c >= 0xd60 && c <= 0xd61) ||
0 0 (c >= 0xd60 && c <= 0xd61) ||
32518 0 0 (c >= 0xe01 && c <= 0xe2e) ||
0 0 (c >= 0xe01 && c <= 0xe2e) ||
32519 0 0 c == 0xe30 ||
32520 0 0 (c >= 0xe32 && c <= 0xe33) ||
0 0 (c >= 0xe32 && c <= 0xe33) ||
32521 0 0 (c >= 0xe40 && c <= 0xe45) ||
0 0 (c >= 0xe40 && c <= 0xe45) ||
32522 0 0 (c >= 0xe81 && c <= 0xe82) ||
0 0 (c >= 0xe81 && c <= 0xe82) ||
32523 0 0 c == 0xe84 ||
32524 0 0 (c >= 0xe87 && c <= 0xe88) ||
0 0 (c >= 0xe87 && c <= 0xe88) ||
32525 0 0 c == 0xe8a ||
32526 0 0 c == 0xe8d ||
32527 0 0 (c >= 0xe94 && c <= 0xe97) ||
0 0 (c >= 0xe94 && c <= 0xe97) ||
32528 0 0 (c >= 0xe99 && c <= 0xe9f) ||
0 0 (c >= 0xe99 && c <= 0xe9f) ||
32529 0 0 (c >= 0xea1 && c <= 0xea3) ||
0 0 (c >= 0xea1 && c <= 0xea3) ||
32530 0 0 c == 0xea5 ||
32531 0 0 c == 0xea7 ||
32532 0 0 (c >= 0xeaa && c <= 0xeab) ||
0 0 (c >= 0xeaa && c <= 0xeab) ||
32533 0 0 (c >= 0xead && c <= 0xeae) ||
0 0 (c >= 0xead && c <= 0xeae) ||
32534 0 0 c == 0xeb0 ||
32535 0 0 (c >= 0xeb2 && c <= 0xeb3) ||
0 0 (c >= 0xeb2 && c <= 0xeb3) ||
32536 0 0 c == 0xebd ||
32537 0 0 (c >= 0xec0 && c <= 0xec4) ||
0 0 (c >= 0xec0 && c <= 0xec4) ||
32538 0 0 (c >= 0xf40 && c <= 0xf47) ||
0 0 (c >= 0xf40 && c <= 0xf47) ||
32539 0 0 (c >= 0xf49 && c <= 0xf69) ||
0 0 (c >= 0xf49 && c <= 0xf69) ||
32540 0 0 (c >= 0x10a0 && c <= 0x10c5) ||
0 0 (c >= 0x10a0 && c <= 0x10c5) ||
32541 0 0 (c >= 0x10d0 && c <= 0x10f6) ||
0 0 (c >= 0x10d0 && c <= 0x10f6) ||
32542 0 0 c == 0x1100 ||
32543 0 0 (c >= 0x1102 && c <= 0x1103) ||
0 0 (c >= 0x1102 && c <= 0x1103) ||
32544 0 0 (c >= 0x1105 && c <= 0x1107) ||
0 0 (c >= 0x1105 && c <= 0x1107) ||
32545 0 0 c == 0x1109 ||
32546 0 0 (c >= 0x110b && c <= 0x110c) ||
0 0 (c >= 0x110b && c <= 0x110c) ||
32547 0 0 (c >= 0x110e && c <= 0x1112) ||
0 0 (c >= 0x110e && c <= 0x1112) ||
32548 0 0 c == 0x113c ||
32549 0 0 c == 0x113e ||
32550 0 0 c == 0x1140 ||
32551 0 0 c == 0x114c ||
32552 0 0 c == 0x114e ||
32553 0 0 c == 0x1150 ||
32554 0 0 (c >= 0x1154 && c <= 0x1155) ||
0 0 (c >= 0x1154 && c <= 0x1155) ||
32555 0 0 c == 0x1159 ||
32556 0 0 (c >= 0x115f && c <= 0x1161) ||
0 0 (c >= 0x115f && c <= 0x1161) ||
32557 0 0 c == 0x1163 ||
32558 0 0 c == 0x1165 ||
32559 0 0 c == 0x1167 ||
32560 0 0 c == 0x1169 ||
32561 0 0 (c >= 0x116d && c <= 0x116e) ||
0 0 (c >= 0x116d && c <= 0x116e) ||
32562 0 0 (c >= 0x1172 && c <= 0x1173) ||
0 0 (c >= 0x1172 && c <= 0x1173) ||
32563 0 0 c == 0x1175 ||
32564 0 0 c == 0x119e ||
32565 0 0 c == 0x11a8 ||
32566 0 0 c == 0x11ab ||
32567 0 0 (c >= 0x11ae && c <= 0x11af) ||
0 0 (c >= 0x11ae && c <= 0x11af) ||
32568 0 0 (c >= 0x11b7 && c <= 0x11b8) ||
0 0 (c >= 0x11b7 && c <= 0x11b8) ||
32569 0 0 c == 0x11ba ||
32570 0 0 (c >= 0x11bc && c <= 0x11c2) ||
0 0 (c >= 0x11bc && c <= 0x11c2) ||
32571 0 0 c == 0x11eb ||
32572 0 0 c == 0x11f0 ||
32573 0 0 c == 0x11f9 ||
32574 0 0 (c >= 0x1e00 && c <= 0x1e9b) ||
0 0 (c >= 0x1e00 && c <= 0x1e9b) ||
32575 0 0 (c >= 0x1ea0 && c <= 0x1ef9) ||
0 0 (c >= 0x1ea0 && c <= 0x1ef9) ||
32576 0 0 (c >= 0x1f00 && c <= 0x1f15) ||
0 0 (c >= 0x1f00 && c <= 0x1f15) ||
32577 0 0 (c >= 0x1f18 && c <= 0x1f1d) ||
0 0 (c >= 0x1f18 && c <= 0x1f1d) ||
32578 0 0 (c >= 0x1f20 && c <= 0x1f45) ||
0 0 (c >= 0x1f20 && c <= 0x1f45) ||
32579 0 0 (c >= 0x1f48 && c <= 0x1f4d) ||
0 0 (c >= 0x1f48 && c <= 0x1f4d) ||
32580 0 0 (c >= 0x1f50 && c <= 0x1f57) ||
0 0 (c >= 0x1f50 && c <= 0x1f57) ||
32581 0 0 c == 0x1f59 ||
32582 0 0 c == 0x1f5b ||
32583 0 0 c == 0x1f5d ||
32584 0 0 (c >= 0x1f5f && c <= 0x1f7d) ||
0 0 (c >= 0x1f5f && c <= 0x1f7d) ||
32585 0 0 (c >= 0x1f80 && c <= 0x1fb4) ||
0 0 (c >= 0x1f80 && c <= 0x1fb4) ||
32586 0 0 (c >= 0x1fb6 && c <= 0x1fbc) ||
0 0 (c >= 0x1fb6 && c <= 0x1fbc) ||
32587 0 0 c == 0x1fbe ||
32588 0 0 (c >= 0x1fc2 && c <= 0x1fc4) ||
0 0 (c >= 0x1fc2 && c <= 0x1fc4) ||
32589 0 0 (c >= 0x1fc6 && c <= 0x1fcc) ||
0 0 (c >= 0x1fc6 && c <= 0x1fcc) ||
32590 0 0 (c >= 0x1fd0 && c <= 0x1fd3) ||
0 0 (c >= 0x1fd0 && c <= 0x1fd3) ||
32591 0 0 (c >= 0x1fd6 && c <= 0x1fdb) ||
0 0 (c >= 0x1fd6 && c <= 0x1fdb) ||
32592 0 0 (c >= 0x1fe0 && c <= 0x1fec) ||
0 0 (c >= 0x1fe0 && c <= 0x1fec) ||
32593 0 0 (c >= 0x1ff2 && c <= 0x1ff4) ||
0 0 (c >= 0x1ff2 && c <= 0x1ff4) ||
32594 0 0 (c >= 0x1ff6 && c <= 0x1ffc) ||
0 0 (c >= 0x1ff6 && c <= 0x1ffc) ||
32595 0 0 c == 0x2126 ||
32596 0 0 (c >= 0x212a && c <= 0x212b) ||
0 0 (c >= 0x212a && c <= 0x212b) ||
32597 0 0 c == 0x212e ||
32598 0 0 (c >= 0x2180 && c <= 0x2182) ||
0 0 (c >= 0x2180 && c <= 0x2182) ||
32599 0 0 (c >= 0x3041 && c <= 0x3094) ||
0 0 (c >= 0x3041 && c <= 0x3094) ||
32600 0 0 (c >= 0x30a1 && c <= 0x30fa) ||
0 0 (c >= 0x30a1 && c <= 0x30fa) ||
32601 0 0 (c >= 0x3105 && c <= 0x312c) ||
0 0 (c >= 0x3105 && c <= 0x312c) ||
32602 0 0 (c >= 0xac00 && c <= 0xd7a3) ||
0 0 (c >= 0xac00 && c <= 0xd7a3) ||
32603 0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
32604 0 0 c == 0x3007 ||
32605 0 0 (c >= 0x3021 && c <= 0x3029) ||
0 0 (c >= 0x3021 && c <= 0x3029) ||
32606 0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
32607 0 0 c == 0x3007 ||
0 0 c == 0x3007 ||
32608 0 0 (c >= 0x3021 && c <= 0x3029));
32613 0 0 return (TY_(IsXMLLetter)(c) ||
32614 0 0 c == '.' || c == '_' ||
0 0 c == '.' || c == '_' ||
32615 0 0 c == ':' || c == '-' ||
0 0 c == ':' || c == '-' ||
32616 0 0 (c >= 0x300 && c <= 0x345) ||
0 0 (c >= 0x300 && c <= 0x345) ||
32617 0 0 (c >= 0x360 && c <= 0x361) ||
0 0 (c >= 0x360 && c <= 0x361) ||
32618 0 0 (c >= 0x483 && c <= 0x486) ||
0 0 (c >= 0x483 && c <= 0x486) ||
32619 0 0 (c >= 0x591 && c <= 0x5a1) ||
0 0 (c >= 0x591 && c <= 0x5a1) ||
32620 0 0 (c >= 0x5a3 && c <= 0x5b9) ||
0 0 (c >= 0x5a3 && c <= 0x5b9) ||
32621 0 0 (c >= 0x5bb && c <= 0x5bd) ||
0 0 (c >= 0x5bb && c <= 0x5bd) ||
32622 0 0 c == 0x5bf ||
32623 0 0 (c >= 0x5c1 && c <= 0x5c2) ||
0 0 (c >= 0x5c1 && c <= 0x5c2) ||
32624 0 0 c == 0x5c4 ||
32625 0 0 (c >= 0x64b && c <= 0x652) ||
0 0 (c >= 0x64b && c <= 0x652) ||
32626 0 0 c == 0x670 ||
32627 0 0 (c >= 0x6d6 && c <= 0x6dc) ||
0 0 (c >= 0x6d6 && c <= 0x6dc) ||
32628 0 0 (c >= 0x6dd && c <= 0x6df) ||
0 0 (c >= 0x6dd && c <= 0x6df) ||
32629 0 0 (c >= 0x6e0 && c <= 0x6e4) ||
0 0 (c >= 0x6e0 && c <= 0x6e4) ||
32630 0 0 (c >= 0x6e7 && c <= 0x6e8) ||
0 0 (c >= 0x6e7 && c <= 0x6e8) ||
32631 0 0 (c >= 0x6ea && c <= 0x6ed) ||
0 0 (c >= 0x6ea && c <= 0x6ed) ||
32632 0 0 (c >= 0x901 && c <= 0x903) ||
0 0 (c >= 0x901 && c <= 0x903) ||
32633 0 0 c == 0x93c ||
32634 0 0 (c >= 0x93e && c <= 0x94c) ||
0 0 (c >= 0x93e && c <= 0x94c) ||
32635 0 0 c == 0x94d ||
32636 0 0 (c >= 0x951 && c <= 0x954) ||
0 0 (c >= 0x951 && c <= 0x954) ||
32637 0 0 (c >= 0x962 && c <= 0x963) ||
0 0 (c >= 0x962 && c <= 0x963) ||
32638 0 0 (c >= 0x981 && c <= 0x983) ||
0 0 (c >= 0x981 && c <= 0x983) ||
32639 0 0 c == 0x9bc ||
32640 0 0 c == 0x9be ||
32641 0 0 c == 0x9bf ||
32642 0 0 (c >= 0x9c0 && c <= 0x9c4) ||
0 0 (c >= 0x9c0 && c <= 0x9c4) ||
32643 0 0 (c >= 0x9c7 && c <= 0x9c8) ||
0 0 (c >= 0x9c7 && c <= 0x9c8) ||
32644 0 0 (c >= 0x9cb && c <= 0x9cd) ||
0 0 (c >= 0x9cb && c <= 0x9cd) ||
32645 0 0 c == 0x9d7 ||
32646 0 0 (c >= 0x9e2 && c <= 0x9e3) ||
0 0 (c >= 0x9e2 && c <= 0x9e3) ||
32647 0 0 c == 0xa02 ||
32648 0 0 c == 0xa3c ||
32649 0 0 c == 0xa3e ||
32650 0 0 c == 0xa3f ||
32651 0 0 (c >= 0xa40 && c <= 0xa42) ||
0 0 (c >= 0xa40 && c <= 0xa42) ||
32652 0 0 (c >= 0xa47 && c <= 0xa48) ||
0 0 (c >= 0xa47 && c <= 0xa48) ||
32653 0 0 (c >= 0xa4b && c <= 0xa4d) ||
0 0 (c >= 0xa4b && c <= 0xa4d) ||
32654 0 0 (c >= 0xa70 && c <= 0xa71) ||
0 0 (c >= 0xa70 && c <= 0xa71) ||
32655 0 0 (c >= 0xa81 && c <= 0xa83) ||
0 0 (c >= 0xa81 && c <= 0xa83) ||
32656 0 0 c == 0xabc ||
32657 0 0 (c >= 0xabe && c <= 0xac5) ||
0 0 (c >= 0xabe && c <= 0xac5) ||
32658 0 0 (c >= 0xac7 && c <= 0xac9) ||
0 0 (c >= 0xac7 && c <= 0xac9) ||
32659 0 0 (c >= 0xacb && c <= 0xacd) ||
0 0 (c >= 0xacb && c <= 0xacd) ||
32660 0 0 (c >= 0xb01 && c <= 0xb03) ||
0 0 (c >= 0xb01 && c <= 0xb03) ||
32661 0 0 c == 0xb3c ||
32662 0 0 (c >= 0xb3e && c <= 0xb43) ||
0 0 (c >= 0xb3e && c <= 0xb43) ||
32663 0 0 (c >= 0xb47 && c <= 0xb48) ||
0 0 (c >= 0xb47 && c <= 0xb48) ||
32664 0 0 (c >= 0xb4b && c <= 0xb4d) ||
0 0 (c >= 0xb4b && c <= 0xb4d) ||
32665 0 0 (c >= 0xb56 && c <= 0xb57) ||
0 0 (c >= 0xb56 && c <= 0xb57) ||
32666 0 0 (c >= 0xb82 && c <= 0xb83) ||
0 0 (c >= 0xb82 && c <= 0xb83) ||
32667 0 0 (c >= 0xbbe && c <= 0xbc2) ||
0 0 (c >= 0xbbe && c <= 0xbc2) ||
32668 0 0 (c >= 0xbc6 && c <= 0xbc8) ||
0 0 (c >= 0xbc6 && c <= 0xbc8) ||
32669 0 0 (c >= 0xbca && c <= 0xbcd) ||
0 0 (c >= 0xbca && c <= 0xbcd) ||
32670 0 0 c == 0xbd7 ||
32671 0 0 (c >= 0xc01 && c <= 0xc03) ||
0 0 (c >= 0xc01 && c <= 0xc03) ||
32672 0 0 (c >= 0xc3e && c <= 0xc44) ||
0 0 (c >= 0xc3e && c <= 0xc44) ||
32673 0 0 (c >= 0xc46 && c <= 0xc48) ||
0 0 (c >= 0xc46 && c <= 0xc48) ||
32674 0 0 (c >= 0xc4a && c <= 0xc4d) ||
0 0 (c >= 0xc4a && c <= 0xc4d) ||
32675 0 0 (c >= 0xc55 && c <= 0xc56) ||
0 0 (c >= 0xc55 && c <= 0xc56) ||
32676 0 0 (c >= 0xc82 && c <= 0xc83) ||
0 0 (c >= 0xc82 && c <= 0xc83) ||
32677 0 0 (c >= 0xcbe && c <= 0xcc4) ||
0 0 (c >= 0xcbe && c <= 0xcc4) ||
32678 0 0 (c >= 0xcc6 && c <= 0xcc8) ||
0 0 (c >= 0xcc6 && c <= 0xcc8) ||
32679 0 0 (c >= 0xcca && c <= 0xccd) ||
0 0 (c >= 0xcca && c <= 0xccd) ||
32680 0 0 (c >= 0xcd5 && c <= 0xcd6) ||
0 0 (c >= 0xcd5 && c <= 0xcd6) ||
32681 0 0 (c >= 0xd02 && c <= 0xd03) ||
0 0 (c >= 0xd02 && c <= 0xd03) ||
32682 0 0 (c >= 0xd3e && c <= 0xd43) ||
0 0 (c >= 0xd3e && c <= 0xd43) ||
32683 0 0 (c >= 0xd46 && c <= 0xd48) ||
0 0 (c >= 0xd46 && c <= 0xd48) ||
32684 0 0 (c >= 0xd4a && c <= 0xd4d) ||
0 0 (c >= 0xd4a && c <= 0xd4d) ||
32685 0 0 c == 0xd57 ||
32686 0 0 c == 0xe31 ||
32687 0 0 (c >= 0xe34 && c <= 0xe3a) ||
0 0 (c >= 0xe34 && c <= 0xe3a) ||
32688 0 0 (c >= 0xe47 && c <= 0xe4e) ||
0 0 (c >= 0xe47 && c <= 0xe4e) ||
32689 0 0 c == 0xeb1 ||
32690 0 0 (c >= 0xeb4 && c <= 0xeb9) ||
0 0 (c >= 0xeb4 && c <= 0xeb9) ||
32691 0 0 (c >= 0xebb && c <= 0xebc) ||
0 0 (c >= 0xebb && c <= 0xebc) ||
32692 0 0 (c >= 0xec8 && c <= 0xecd) ||
0 0 (c >= 0xec8 && c <= 0xecd) ||
32693 0 0 (c >= 0xf18 && c <= 0xf19) ||
0 0 (c >= 0xf18 && c <= 0xf19) ||
32694 0 0 c == 0xf35 ||
32695 0 0 c == 0xf37 ||
32696 0 0 c == 0xf39 ||
32697 0 0 c == 0xf3e ||
32698 0 0 c == 0xf3f ||
32699 0 0 (c >= 0xf71 && c <= 0xf84) ||
0 0 (c >= 0xf71 && c <= 0xf84) ||
32700 0 0 (c >= 0xf86 && c <= 0xf8b) ||
0 0 (c >= 0xf86 && c <= 0xf8b) ||
32701 0 0 (c >= 0xf90 && c <= 0xf95) ||
0 0 (c >= 0xf90 && c <= 0xf95) ||
32702 0 0 c == 0xf97 ||
32703 0 0 (c >= 0xf99 && c <= 0xfad) ||
0 0 (c >= 0xf99 && c <= 0xfad) ||
32704 0 0 (c >= 0xfb1 && c <= 0xfb7) ||
0 0 (c >= 0xfb1 && c <= 0xfb7) ||
32705 0 0 c == 0xfb9 ||
32706 0 0 (c >= 0x20d0 && c <= 0x20dc) ||
0 0 (c >= 0x20d0 && c <= 0x20dc) ||
32707 0 0 c == 0x20e1 ||
32708 0 0 (c >= 0x302a && c <= 0x302f) ||
0 0 (c >= 0x302a && c <= 0x302f) ||
32709 0 0 c == 0x3099 ||
32710 0 0 c == 0x309a ||
32711 0 0 (c >= 0x30 && c <= 0x39) ||
0 0 (c >= 0x30 && c <= 0x39) ||
32712 0 0 (c >= 0x660 && c <= 0x669) ||
0 0 (c >= 0x660 && c <= 0x669) ||
32713 0 0 (c >= 0x6f0 && c <= 0x6f9) ||
0 0 (c >= 0x6f0 && c <= 0x6f9) ||
32714 0 0 (c >= 0x966 && c <= 0x96f) ||
0 0 (c >= 0x966 && c <= 0x96f) ||
32715 0 0 (c >= 0x9e6 && c <= 0x9ef) ||
0 0 (c >= 0x9e6 && c <= 0x9ef) ||
32716 0 0 (c >= 0xa66 && c <= 0xa6f) ||
0 0 (c >= 0xa66 && c <= 0xa6f) ||
32717 0 0 (c >= 0xae6 && c <= 0xaef) ||
0 0 (c >= 0xae6 && c <= 0xaef) ||
32718 0 0 (c >= 0xb66 && c <= 0xb6f) ||
0 0 (c >= 0xb66 && c <= 0xb6f) ||
32719 0 0 (c >= 0xbe7 && c <= 0xbef) ||
0 0 (c >= 0xbe7 && c <= 0xbef) ||
32720 0 0 (c >= 0xc66 && c <= 0xc6f) ||
0 0 (c >= 0xc66 && c <= 0xc6f) ||
32721 0 0 (c >= 0xce6 && c <= 0xcef) ||
0 0 (c >= 0xce6 && c <= 0xcef) ||
32722 0 0 (c >= 0xd66 && c <= 0xd6f) ||
0 0 (c >= 0xd66 && c <= 0xd6f) ||
32723 0 0 (c >= 0xe50 && c <= 0xe59) ||
0 0 (c >= 0xe50 && c <= 0xe59) ||
32724 0 0 (c >= 0xed0 && c <= 0xed9) ||
0 0 (c >= 0xed0 && c <= 0xed9) ||
32725 0 0 (c >= 0xf20 && c <= 0xf29) ||
0 0 (c >= 0xf20 && c <= 0xf29) ||
32726 0 0 c == 0xb7 ||
32727 0 0 c == 0x2d0 ||
32728 0 0 c == 0x2d1 ||
32729 0 0 c == 0x387 ||
32730 0 0 c == 0x640 ||
32731 0 0 c == 0xe46 ||
32732 0 0 c == 0xec6 ||
32733 0 0 c == 0x3005 ||
32734 0 0 (c >= 0x3031 && c <= 0x3035) ||
0 0 (c >= 0x3031 && c <= 0x3035) ||
32735 0 0 (c >= 0x309d && c <= 0x309e) ||
0 0 (c >= 0x309d && c <= 0x309e) ||
0 0 (c >= 0x309d && c <= 0x309e) ||
32736 0 0 (c >= 0x30fc && c <= 0x30fe));
32741 25 0 unsigned int map = MAP(c);
32748 4088 0 unsigned int map = MAP(c);
32750 1077 3011 if (map & uppercase)
32758 0 0 unsigned int map = MAP(c);
32760 0 0 if (map & lowercase)
32773 0 0 if ( str && *str )
0 0 if ( str && *str )
32794 3 0 if ( lexer != NULL )
32812 0 2 assert( doc->docIn != NULL );
32813 2 0 return ( !doc->docIn->pushed && TY_(IsEOF)(doc->docIn) );
0 2 return ( !doc->docIn->pushed && TY_(IsEOF)(doc->docIn) );
32819 3 4 if ( lexer )
32824 3 0 if ( lexer->pushed || lexer->itoken )
0 3 if ( lexer->pushed || lexer->itoken )
32826 0 0 if (lexer->pushed)
32831 0 3 while ( lexer->istacksize > 0 )
32847 3 86 if ( lexer->lexsize + 2 >= lexer->lexlength )
32852 3 3 while ( lexer->lexsize + 2 >= allocAmt )
32854 3 0 if ( allocAmt == 0 )
32858 0 3 if (allocAmt < prev) /* Is. #761 - watch for wrap - and */
32862 3 0 if ( buf )
32877 7 0 if ( lexer->lexsize > 0 )
32890 0 89 if (err)
32899 89 89 for ( i = 0; i < count; ++i )
32911 0 0 while( 0 != (c = (unsigned char) *str++ ))
32945 0 0 if (!lexer)
32948 0 0 if (!buf)
32950 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream )
32952 0 0 if (c == ';')
32956 0 0 if ((offset + 2) > bufSize)
32960 0 0 if (!buf)
32966 0 0 if (offset == 1)
32968 0 0 if (c != '#') /* is a numeric entity */
32971 0 0 else if (offset == 2 && ((c == 'x') || (!isXml && c == 'X')))
0 0 else if (offset == 2 && ((c == 'x') || (!isXml && c == 'X')))
0 0 else if (offset == 2 && ((c == 'x') || (!isXml && c == 'X')))
0 0 else if (offset == 2 && ((c == 'x') || (!isXml && c == 'X')))
32977 0 0 if (type) /* if hex digits */
32979 0 0 if (!IsDigitHex(c))
32984 0 0 if (!TY_(IsDigit)(c))
32990 0 0 if (c == ';')
32995 0 0 if (type)
33000 0 0 if (scanned == 1 && TY_(IsHighSurrogate)(ch))
0 0 if (scanned == 1 && TY_(IsHighSurrogate)(ch))
33003 0 0 if (TY_(IsValidCombinedChar)(ch))
33017 0 0 if (status == SP_error)
33020 0 0 if (c == ';') /* if last, not added to buffer */
33022 0 0 if (buf && offset)
0 0 if (buf && offset)
33025 0 0 for (i = offset - 1; i >= 0; i--)
33033 0 0 if (buf)
33093 0 0 while ( (c = TY_(ReadChar)(doc->docIn)) != EndOfStream )
33095 0 0 if ( c == ';' )
33102 0 0 if (charRead == 1 && c == '#')
0 0 if (charRead == 1 && c == '#')
33104 0 0 if ( !cfgBool(doc, TidyNCR) ||
0 0 if ( !cfgBool(doc, TidyNCR) ||
33105 0 0 cfg(doc, TidyInCharEncoding) == BIG5 ||
33116 0 0 else if (charRead == 2 && entState == ENT_numdec
0 0 else if (charRead == 2 && entState == ENT_numdec
33117 0 0 && (c == 'x' || (!isXml && c == 'X')) )
0 0 && (c == 'x' || (!isXml && c == 'X')) )
0 0 && (c == 'x' || (!isXml && c == 'X')) )
33124 0 0 if ( entFn[entState](c) )
33142 0 0 if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0
33143 0 0 && !cfgBool(doc, TidyXmlOut)
33144 0 0 && !lexer->isvoyager
33145 0 0 && !cfgBool(doc, TidyXhtmlOut)
33146 0 0 && !(TY_(HTMLVersion)(doc) == HT50) ) /* Issue #239 - no warning if in HTML5++ mode */
33149 0 0 if (( mode == OtherNamespace ) && ( c == ';' ))
0 0 if (( mode == OtherNamespace ) && ( c == ';' ))
33168 0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
33171 0 0 if ((c1 = TY_(ReadChar)(doc->docIn)) == '&')
33178 0 0 if (status == SP_error)
33193 0 0 else if (!preserveEntities && found && TY_(IsHighSurrogate)(ch))
0 0 else if (!preserveEntities && found && TY_(IsHighSurrogate)(ch))
0 0 else if (!preserveEntities && found && TY_(IsHighSurrogate)(ch))
33203 0 0 if ( !found || (ch >= 128 && ch <= 159) || (ch >= 256 && c != ';') )
0 0 if ( !found || (ch >= 128 && ch <= 159) || (ch >= 256 && c != ';') )
0 0 if ( !found || (ch >= 128 && ch <= 159) || (ch >= 256 && c != ';') )
0 0 if ( !found || (ch >= 128 && ch <= 159) || (ch >= 256 && c != ';') )
0 0 if ( !found || (ch >= 128 && ch <= 159) || (ch >= 256 && c != ';') )
33209 0 0 if (lexer->lexsize > start + 1)
33211 0 0 if (ch >= 128 && ch <= 159)
0 0 if (ch >= 128 && ch <= 159)
33221 0 0 if ( c1 )
33224 0 0 if ( c != ';' ) /* issue warning if not terminated by ';' */
33230 0 0 if ( c1 )
33249 0 0 if (semicolon)
33257 0 0 if (TY_(HTMLVersion)(doc) != HT50)
33266 0 0 if ( c != ';' ) /* issue warning if not terminated by ';' */
33274 0 0 if (preserveEntities)
33279 0 0 if ( ch == 160 && (mode == Preformatted) )
0 0 if ( ch == 160 && (mode == Preformatted) )
33283 0 0 if ( ch == '&' && !cfgBool(doc, TidyQuoteAmpersand) )
0 0 if ( ch == '&' && !cfgBool(doc, TidyQuoteAmpersand) )
33299 8 0 if (!xml && TY_(IsUpper)(c))
0 8 if (!xml && TY_(IsUpper)(c))
33302 22 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
33304 22 0 if ((!xml && !TY_(IsNamechar)(c)) ||
14 8 if ((!xml && !TY_(IsNamechar)(c)) ||
0 14 if ((!xml && !TY_(IsNamechar)(c)) ||
33305 0 0 (xml && !TY_(IsXMLNamechar)(c)))
33309 14 0 if (!xml && TY_(IsUpper)(c))
0 14 if (!xml && TY_(IsUpper)(c))
33338 27 3 if ( lexer )
33359 0 0 if ( element )
33375 11 37 while ( node->attributes )
33379 11 0 if ( av->attribute )
33381 11 0 if ( (attrIsID(av) || attrIsNAME(av)) &&
8 3 if ( (attrIsID(av) || attrIsNAME(av)) &&
8 0 if ( (attrIsID(av) || attrIsNAME(av)) &&
11 0 if ( (attrIsID(av) || attrIsNAME(av)) &&
8 3 if ( (attrIsID(av) || attrIsNAME(av)) &&
33409 0 0 for ( av = node->attributes; av; av = av->next )
33411 0 0 if ( av == attr )
33413 0 0 if ( prev )
33456 37 70 while ( node )
33463 30 7 if (RootNode != node->type)
33511 3 5 if ( type == StartTag || type == StartEndTag || type == EndTag )
3 0 if ( type == StartTag || type == StartEndTag || type == EndTag )
3 0 if ( type == StartTag || type == StartEndTag || type == EndTag )
33540 0 0 while(0 != (c = *str++) ) {
33567 9 0 for ( node = (doc ? doc->root.content : NULL);
6 9 for ( node = (doc ? doc->root.content : NULL);
33568 6 0 node && node->type != DocTypeTag;
33577 0 0 for ( node = (node ? node->parent : NULL);
0 0 for ( node = (node ? node->parent : NULL);
33578 0 0 node && TY_(nodeHasCM)(node, CM_INLINE);
33590 24 0 for ( node = (doc ? doc->root.content : NULL);
31 0 for ( node = (doc ? doc->root.content : NULL);
33591 0 31 node && !nodeIsHTML(node);
7 24 node && !nodeIsHTML(node);
0 24 node && !nodeIsHTML(node);
33602 0 0 for ( node = (doc ? doc->root.content : NULL);
0 0 for ( node = (doc ? doc->root.content : NULL);
33603 0 0 node && !(node->type == XmlDecl);
33615 15 0 if ( node )
33617 15 0 for ( node = node->content;
33618 0 15 node && !nodeIsHEAD(node);
0 15 node && !nodeIsHEAD(node);
0 15 node && !nodeIsHEAD(node);
33630 3 0 if (node)
33631 1 2 for (node = node->content;
33632 0 1 node && !nodeIsTITLE(node);
0 1 node && !nodeIsTITLE(node);
0 1 node && !nodeIsTITLE(node);
33640 24 0 Node *node = ( doc ? doc->root.content : NULL );
33642 45 0 while ( node && !nodeIsHTML(node) )
0 45 while ( node && !nodeIsHTML(node) )
21 24 while ( node && !nodeIsHTML(node) )
0 24 while ( node && !nodeIsHTML(node) )
33645 0 24 if (node == NULL)
33649 48 0 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
48 0 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
48 0 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
24 24 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
0 24 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
0 24 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
24 0 while ( node && !nodeIsBODY(node) && !nodeIsFRAMESET(node) )
33652 24 0 if ( node && nodeIsFRAMESET(node) )
24 0 if ( node && nodeIsFRAMESET(node) )
24 0 if ( node && nodeIsFRAMESET(node) )
0 24 if ( node && nodeIsFRAMESET(node) )
33655 0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
33658 0 0 if ( node )
33661 0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
33677 3 0 if (head)
33686 3 3 for ( node = head->content; node; node = node->next )
33688 3 0 if ( nodeIsMETA(node) )
3 0 if ( nodeIsMETA(node) )
0 3 if ( nodeIsMETA(node) )
33692 0 0 if (AttrValueIs(attval, "generator"))
0 0 if (AttrValueIs(attval, "generator"))
0 0 if (AttrValueIs(attval, "generator"))
33696 0 0 if (AttrHasValue(attval) &&
33710 3 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
33735 0 0 if (!fpi || !fpi->value)
0 0 if (!fpi || !fpi->value)
33741 0 0 if (doctype->element && (TY_(tmbstrcasecmp)(doctype->element,"html") == 0))
0 0 if (doctype->element && (TY_(tmbstrcasecmp)(doctype->element,"html") == 0))
33750 0 0 if (VERS_XHTML & vers)
33767 3 0 if ((doc->lexer->doctype == XH11 ||
0 3 if ((doc->lexer->doctype == XH11 ||
33768 0 0 doc->lexer->doctype == XB10) &&
33785 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
33786 0 0 if (W3C_Doctypes[i].vers == vers)
33798 0 3 if ( isXhtml )
33802 0 3 if ( TY_(HTMLVersionNameFromCode)(doc->lexer->versionEmitted, isXhtml ) == NULL )
33806 3 0 if ( GetSIFromVers(doc->lexer->versionEmitted) == NULL )
33809 0 0 if ( (doctype = TY_(FindDocType)( doc )) != NULL
33810 0 0 && TY_(GetAttrByName)(doctype, "SYSTEM") == NULL )
33828 0 3 if ( !html )
33847 0 0 if (dtmode == TidyDoctypeOmit)
33849 0 0 if (doctype)
33854 0 0 if (dtmode == TidyDoctypeUser && !cfgStr(doc, TidyDoctype))
0 0 if (dtmode == TidyDoctypeUser && !cfgStr(doc, TidyDoctype))
33857 0 0 if (!doctype)
33893 0 0 if (lexer->doctype == VERS_UNKNOWN || lexer->doctype == VERS_HTML5) {
0 0 if (lexer->doctype == VERS_UNKNOWN || lexer->doctype == VERS_HTML5) {
33897 0 0 else if (lexer->versions & XH11 && lexer->doctype == XH11)
0 0 else if (lexer->versions & XH11 && lexer->doctype == XH11)
33899 0 0 if (!TY_(GetAttrByName)(doctype, sys))
33904 0 0 else if (lexer->versions & XH11 && !(lexer->versions & VERS_HTML40))
0 0 else if (lexer->versions & XH11 && !(lexer->versions & VERS_HTML40))
33910 0 0 else if (lexer->versions & XB10 && lexer->doctype == XB10)
0 0 else if (lexer->versions & XB10 && lexer->doctype == XB10)
33912 0 0 if (!TY_(GetAttrByName)(doctype, sys))
33917 0 0 else if (lexer->versions & VERS_HTML40_STRICT)
33923 0 0 else if (lexer->versions & VERS_FRAMESET)
33929 0 0 else if (lexer->versions & VERS_LOOSE)
33935 0 0 else if (lexer->versions & VERS_HTML5)
33947 0 0 if (doctype)
33970 0 3 if (doctype && (dtmode == TidyDoctypeAuto) &&
0 0 if (doctype && (dtmode == TidyDoctypeAuto) &&
0 0 if (doctype && (dtmode == TidyDoctypeAuto) &&
33977 3 0 if (dtmode == TidyDoctypeAuto &&
0 3 if (dtmode == TidyDoctypeAuto &&
33978 0 0 lexer->versions & lexer->doctype &&
33979 0 0 !(VERS_XHTML & lexer->doctype && !lexer->isvoyager)
33980 0 0 && TY_(FindDocType)(doc))
33986 0 3 if (dtmode == TidyDoctypeOmit)
33988 0 0 if (doctype)
33994 0 3 if (cfgBool(doc, TidyXmlOut))
33997 0 3 if (doctype)
34000 3 0 if ((dtmode == TidyDoctypeStrict ||
0 3 if ((dtmode == TidyDoctypeStrict ||
34001 0 0 dtmode == TidyDoctypeLoose) && doctype)
34024 0 3 if (guessed == VERS_UNKNOWN)
34027 0 3 if (doctype)
34039 0 3 if (hadSI)
34054 0 0 if ( root->content && root->content->type == XmlDecl )
0 0 if ( root->content && root->content->type == XmlDecl )
34062 0 0 if ( root->content )
34077 0 0 if ( encoding == NULL && cfg(doc, TidyOutCharEncoding) != UTF8 )
0 0 if ( encoding == NULL && cfg(doc, TidyOutCharEncoding) != UTF8 )
34080 0 0 if ( enc )
34084 0 0 if ( version == NULL )
34095 0 14 assert( dict != NULL );
34109 0 4 if (node->type != StartTag)
34113 0 4 if (node->tag == NULL)
34116 1 3 if (node->tag->model & CM_EMPTY)
34149 0 0 Bool nonested = ((nodeIsSCRIPT(container) || (nodeIsSTYLE(container))) &&
0 0 Bool nonested = ((nodeIsSCRIPT(container) || (nodeIsSTYLE(container))) &&
0 0 Bool nonested = ((nodeIsSCRIPT(container) || (nodeIsSTYLE(container))) &&
0 0 Bool nonested = ((nodeIsSCRIPT(container) || (nodeIsSTYLE(container))) &&
0 0 Bool nonested = ((nodeIsSCRIPT(container) || (nodeIsSTYLE(container))) &&
34150 0 0 cfgBool(doc, TidySkipNested)) ? yes : no;
0 0 cfgBool(doc, TidySkipNested)) ? yes : no;
34157 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
34162 0 0 if (state == CDATA_INTERMEDIATE)
34164 0 0 if (c != '<')
34166 0 0 if (isEmpty && !TY_(IsWhite)(c))
0 0 if (isEmpty && !TY_(IsWhite)(c))
34173 0 0 if (TY_(IsLetter)(c))
34176 0 0 if (hasSrc && isEmpty && nodeIsSCRIPT(container))
0 0 if (hasSrc && isEmpty && nodeIsSCRIPT(container))
0 0 if (hasSrc && isEmpty && nodeIsSCRIPT(container))
0 0 if (hasSrc && isEmpty && nodeIsSCRIPT(container))
0 0 if (hasSrc && isEmpty && nodeIsSCRIPT(container))
34188 0 0 else if (c == '/')
34194 0 0 if (!TY_(IsLetter)(c))
34204 0 0 else if (c == '\\')
34211 0 0 if (c != '/')
34219 0 0 if (nonested) {
34231 0 0 if (!TY_(IsLetter)(c))
34247 0 0 else if (state == CDATA_STARTTAG)
34249 0 0 if (TY_(IsLetter)(c))
34254 0 0 if (matches && !nonested)
0 0 if (matches && !nonested)
34260 0 0 else if (state == CDATA_ENDTAG)
34262 0 0 if (TY_(IsLetter)(c))
34268 0 0 if (isEmpty && !matches)
0 0 if (isEmpty && !matches)
34272 0 0 for (i = lexer->lexsize - 1; i >= start; --i)
34279 0 0 if (matches && nested-- <= 0)
0 0 if (matches && nested-- <= 0)
34281 0 0 for (i = lexer->lexsize - 1; i >= start; --i)
34288 0 0 else if (lexer->lexbuf[start - 2] != '\\')
34297 0 0 if ((TY_(IsJavaScript)(container)) && cfgBool(doc, TidyEscapeScripts) &&
34303 0 0 for (i = lexer->lexsize; i > start-1; --i)
34313 0 0 if (isEmpty)
34318 0 0 if (c == EndOfStream)
34361 17 13 if (lexer->pushed || lexer->itoken)
0 17 if (lexer->pushed || lexer->itoken)
34364 0 13 if (lexer->itoken)
34367 0 0 if (lexer->pushed)
34380 0 13 if (lexer->token->type != TextNode
34381 0 0 || !(lexer->insert || lexer->inode)) {
0 0 || !(lexer->insert || lexer->inode)) {
34392 17 0 assert( !(lexer->pushed || lexer->itoken) );
0 17 assert( !(lexer->pushed || lexer->itoken) );
34398 17 0 if ((lexer->insert || lexer->inode) && lexer->istacksize)
0 17 if ((lexer->insert || lexer->inode) && lexer->istacksize)
0 0 if ((lexer->insert || lexer->inode) && lexer->istacksize)
34409 0 17 if (mode == CdataContent)
34411 0 0 assert( lexer->parent != NULL );
34459 44 6 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
34461 0 44 if (lexer->insertspace)
34468 0 44 if (c == 160 && (mode == Preformatted))
0 0 if (c == 160 && (mode == Preformatted))
34482 6 22 if (TY_(IsWhite)(c) && (mode == IgnoreWhitespace)
2 4 if (TY_(IsWhite)(c) && (mode == IgnoreWhitespace)
34483 2 0 && lexer->lexsize == lexer->txtstart + 1)
34491 8 18 if (c == '<')
34497 4 14 if (TY_(IsWhite)(c))
34500 0 4 if (lexer->waswhite)
34502 0 0 if (mode != Preformatted && mode != IgnoreMarkup)
0 0 if (mode != Preformatted && mode != IgnoreMarkup)
34512 2 2 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
2 0 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
2 0 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
34518 0 14 else if (c == '&' && mode != IgnoreMarkup)
0 0 else if (c == '&' && mode != IgnoreMarkup)
34522 0 14 if (mode == IgnoreWhitespace)
34531 3 5 if (c == '/')
34533 0 3 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
34541 0 3 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
0 0 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
0 0 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
34551 2 1 if (lexer->txtend > lexer->txtstart)
34554 0 2 if (mode == IgnoreWhitespace && lexer->lexbuf[lexer->lexsize - 1] == ' ')
0 0 if (mode == IgnoreWhitespace && lexer->lexbuf[lexer->lexsize - 1] == ' ')
34574 0 5 if (mode == IgnoreMarkup)
34586 0 5 if (c == '!')
34590 0 0 if (c == '-')
34594 0 0 if (c == '-')
34600 0 0 CondReturnTextNode(doc, 4)
34611 0 0 else if (c == 'd' || c == 'D')
0 0 else if (c == 'd' || c == 'D')
34629 0 0 if (c == EndOfStream || c == '>')
0 0 if (c == EndOfStream || c == '>')
34636 0 0 if (!TY_(IsWhite)(c))
34646 0 0 if (c == EndOfStream || c == '>')
0 0 if (c == EndOfStream || c == '>')
34653 0 0 if (TY_(IsWhite)(c))
34663 0 0 CondReturnTextNode(doc, (skip + 3))
34668 0 0 else if (c == '[')
34675 0 0 CondReturnTextNode(doc, 2)
34689 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != '>')
34691 0 0 if (c == EndOfStream)
34708 0 5 if (c == '?')
34714 0 0 CondReturnTextNode(doc, 2)
34721 0 5 if (c == '%')
34727 0 0 CondReturnTextNode(doc, 2)
34734 0 5 if (c == '#')
34740 0 0 CondReturnTextNode(doc, 2)
34747 0 5 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
0 0 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
0 0 if (TY_(IsLetter)(c) || (cfgBool(doc, TidyXmlTags) && TY_(IsXMLNamechar)(c)))
34755 1 4 CondReturnTextNode(doc, 2)
34778 0 3 while ( c != '>' && c != EndOfStream )
0 0 while ( c != '>' && c != EndOfStream )
34783 0 3 if (c == EndOfStream)
34805 1 4 if (c != '>')
34807 0 1 if (c == '/')
34813 0 5 if (isempty)
34829 5 0 if ( nodeIsPRE(lexer->token) )
5 0 if ( nodeIsPRE(lexer->token) )
1 4 if ( nodeIsPRE(lexer->token) )
34834 4 1 if ((mode != Preformatted && ExpectsContent(lexer->token))
1 3 if ((mode != Preformatted && ExpectsContent(lexer->token))
34835 2 0 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
2 0 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
2 0 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
2 0 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
2 0 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
0 2 || nodeIsBR(lexer->token) || nodeIsHR(lexer->token))
34839 1 2 if ((c == '\n') && (mode != IgnoreWhitespace)) /* Issue #329 - Can NOT afford to lose this newline */
0 1 if ((c == '\n') && (mode != IgnoreWhitespace)) /* Issue #329 - Can NOT afford to lose this newline */
34841 2 1 else if (c != '\n' && c != '\f')
2 0 else if (c != '\n' && c != '\f')
34850 0 5 if (lexer->token->tag == NULL)
34852 0 0 if (mode != OtherNamespace) /* [i_a]2 only issue warning if NOT 'OtherNamespace', and tag null */
34859 0 0 if ( (doc->lexer->doctype & VERS_HTML5) > 0 && TY_(elementIsAutonomousCustomFormat)( lexer->token->element ) )
0 0 if ( (doc->lexer->doctype & VERS_HTML5) > 0 && TY_(elementIsAutonomousCustomFormat)( lexer->token->element ) )
34865 5 0 else if ( !cfgBool(doc, TidyXmlTags) )
34877 0 0 if (c != '-')
34883 0 0 if ( c != '-' && fixComments && lexer->lexsize - lexer->txtstart == 1 )
0 0 if ( c != '-' && fixComments && lexer->lexsize - lexer->txtstart == 1 )
0 0 if ( c != '-' && fixComments && lexer->lexsize - lexer->txtstart == 1 )
34890 0 0 if (c != '-')
34896 0 0 if (c == '>')
34898 0 0 if (badcomment)
34905 0 0 if ( (TY_(HTMLVersion)(doc) & HT50) )
34907 0 0 if ( fixComments )
34913 0 0 if ( fixComments )
34932 0 0 if (c == '\n')
34943 0 0 if (!badcomment)
34952 0 0 if ( fixComments )
34956 0 0 if (c == '-')
34963 0 0 if ( fixComments )
34984 0 0 if (lexer->doctype == VERS_UNKNOWN && lexer->token && !cfgBool(doc, TidyXmlTags))
0 0 if (lexer->doctype == VERS_UNKNOWN && lexer->token && !cfgBool(doc, TidyXmlTags))
0 0 if (lexer->doctype == VERS_UNKNOWN && lexer->token && !cfgBool(doc, TidyXmlTags))
34987 0 0 if (lexer->doctype != VERS_HTML5)
35005 0 0 if (lexer->lexsize - lexer->txtstart == 3)
35007 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + lexer->txtstart, "php", 3) == 0)
35014 0 0 if (lexer->lexsize - lexer->txtstart == 4)
35025 0 0 if (cfgBool(doc, TidyXmlPIs) || lexer->isvoyager) /* insist on ?> as terminator */
0 0 if (cfgBool(doc, TidyXmlPIs) || lexer->isvoyager) /* insist on ?> as terminator */
35027 0 0 if (c != '?')
35033 0 0 if (c == EndOfStream)
35044 0 0 if (c != '>')
35049 0 0 if (lexer->lexsize)
35060 0 0 if (closed)
35087 0 0 if (c != '%')
35094 0 0 if (c != '>')
35113 0 0 if (c != '#')
35120 0 0 if (c != '>')
35138 0 0 if (c != '?')
35144 0 0 if (c != '>')
35162 0 0 if (TY_(IsWhite)(c) && c != '?')
0 0 if (TY_(IsWhite)(c) && c != '?')
35166 0 0 if (c != '?')
35178 0 0 if (!name)
35181 0 0 if (asp)
35189 0 0 if (php)
35222 0 0 if (c != '>')
35239 0 0 if (c == '[')
35250 0 0 if (c == '>')
35254 0 0 } else if (c != ']')
35261 0 0 if (c != '>')
35264 0 0 if (c == '-')
35267 0 0 if (c == '-')
35270 0 0 if (c != '>')
35307 0 0 if (c != ']')
35313 0 0 if (c != ']')
35322 0 0 if (c != '>')
35341 6 0 if (lexer->state == LEX_CONTENT) /* text string */
35345 2 4 if (lexer->txtend > lexer->txtstart)
35349 1 1 if (lexer->lexbuf[lexer->lexsize - 1] == ' ')
35360 0 0 else if (lexer->state == LEX_COMMENT) /* comment */
35362 0 0 if (c == EndOfStream)
35379 0 4 if (attributes)
35388 332 28 while ( *str )
35433 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35439 0 0 if (c != '%')
35442 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35447 0 0 if (c == '>')
35455 0 0 if (lexer->txtend > lexer->txtstart)
35477 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35483 0 0 if (c != '?')
35486 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35491 0 0 if (c == '>')
35499 0 0 if (lexer->txtend > lexer->txtstart)
35526 0 2 if (c == '/')
35530 0 0 if (c == '>')
35541 1 1 if (c == '>')
35544 0 1 if (c =='<')
35548 0 0 if (c == '%')
35553 0 0 else if (c == '?')
35565 0 1 if (c == '=')
35571 1 0 if (c == '"' || c == '\'')
0 1 if (c == '"' || c == '\'')
35577 0 1 if (c == EndOfStream)
35585 1 0 if (!TY_(IsWhite)(c))
35595 3 1 if (c == '=' || c == '>')
0 3 if (c == '=' || c == '>')
35601 3 0 if (c == '<' || c == EndOfStream)
0 3 if (c == '<' || c == EndOfStream)
35607 0 3 if (lastc == '-' && (c == '"' || c == '\''))
0 0 if (lastc == '-' && (c == '"' || c == '\''))
0 0 if (lastc == '-' && (c == '"' || c == '\''))
35615 0 3 if (TY_(IsWhite)(c))
35618 0 3 if (c == '/') /* Issue #395 - potential self closing tag */
35621 0 0 if (c == '>')
35638 3 0 if ( cfg(doc, TidyUpperCaseAttrs) != TidyUppercasePreserve )
35640 3 0 if ( !cfgBool(doc, TidyXmlTags) && TY_(IsUpper)(c) )
0 3 if ( !cfgBool(doc, TidyXmlTags) && TY_(IsUpper)(c) )
35652 1 0 lexer->lexbuf+start, len) : NULL);
35673 0 0 if (c == '%' || c == '?' || c == '@')
0 0 if (c == '%' || c == '?' || c == '@')
0 0 if (c == '%' || c == '?' || c == '@')
35680 0 0 if (c == EndOfStream)
35683 0 0 if (c == '>')
35685 0 0 if (isrule)
35695 0 0 if (!isrule)
35697 0 0 if (TY_(IsWhite)(c))
35703 0 0 if (c == '"')
35708 0 0 if (c == EndOfStream) /* #427840 - fix by Terry Teague 30 Jun 01 */
35714 0 0 if (c == '>') /* #427840 - fix by Terry Teague 30 Jun 01 */
35722 0 0 while (c != '"');
35727 0 0 if (c == '\'')
35732 0 0 if (c == EndOfStream) /* #427840 - fix by Terry Teague 30 Jun 01 */
35738 0 0 if (c == '>') /* #427840 - fix by Terry Teague 30 Jun 01 */
35746 0 0 while (c != '\'');
35774 0 1 if ( cfgBool(doc, TidyLiteralAttribs) )
35783 0 1 if (c == EndOfStream)
35789 1 0 if (!TY_(IsWhite)(c))
35799 0 1 if (c != '=' && c != '"' && c != '\'')
0 0 if (c != '=' && c != '"' && c != '\'')
0 0 if (c != '=' && c != '"' && c != '\'')
35811 0 1 if (c == EndOfStream)
35817 1 0 if (!TY_(IsWhite)(c))
35823 1 0 if (c == '"' || c == '\'')
1 0 if (c == '"' || c == '\'')
35825 0 0 else if (c == '<')
35833 0 0 lexer->lexbuf+start, len) : NULL);
35852 0 26 if (c == EndOfStream)
35859 0 26 if (delim == (tmbchar)0)
35861 0 0 if (c == '>')
35867 0 0 if (c == '"' || c == '\'')
0 0 if (c == '"' || c == '\'')
35876 0 0 if (c == '>')
35889 0 0 if (c == '<')
35904 0 0 if (c == '/')
35909 0 0 if ( c == '>' && !TY_(IsUrl)(doc, name) )
0 0 if ( c == '>' && !TY_(IsUrl)(doc, name) )
35923 1 25 if (c == delim)
35926 25 0 if (c == '\n' || c == '<' || c == '>')
25 0 if (c == '\n' || c == '<' || c == '>')
0 25 if (c == '\n' || c == '<' || c == '>')
35929 0 25 if (c == '>')
35933 0 25 if (c == '&')
35937 0 0 if (lexer->lexbuf[lexer->lexsize - 1] == '\n' && munge)
0 0 if (lexer->lexbuf[lexer->lexsize - 1] == '\n' && munge)
35946 0 25 if (c == '\\')
35950 0 0 if (c != '\n')
35957 0 25 if (TY_(IsWhite)(c))
35959 0 0 if ( delim == 0 )
35962 0 0 if (munge)
35966 0 0 if ( c == '\n' && TY_(IsUrl)(doc, name) )
0 0 if ( c == '\n' && TY_(IsUrl)(doc, name) )
35975 0 0 if (lastc == ' ')
35977 0 0 if (TY_(IsUrl)(doc, name) )
35983 0 25 else if (foldCase && TY_(IsUpper)(c))
0 0 else if (foldCase && TY_(IsUpper)(c))
35989 0 1 if (quotewarning > 10 && seen_gt && munge)
0 0 if (quotewarning > 10 && seen_gt && munge)
0 0 if (quotewarning > 10 && seen_gt && munge)
36011 0 1 if (len > 0 || delim)
0 0 if (len > 0 || delim)
36018 1 0 if ((len > 0) && munge &&
36019 1 0 TY_(tmbstrcasecmp)(name, "alt") &&
36020 1 0 TY_(tmbstrcasecmp)(name, "title") &&
36021 1 0 TY_(tmbstrcasecmp)(name, "value") &&
36024 0 1 while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
0 0 while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
36028 0 1 while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
0 0 while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
36052 0 1 if (!TY_(IsLetter)(c))
36056 2 1 for( i = 1; i < TY_(tmbstrlen)(attr); i++)
36060 2 0 if (TY_(IsNamechar)(c))
36091 7 4 if ( *list == NULL )
36096 0 4 while ( here->next )
36125 2 0 while ( !EndOfInput(doc) )
36129 1 1 if (attribute == NULL)
36132 0 1 if (asp)
36141 0 1 if (php)
36154 1 0 if (attribute && (IsValidAttrName(attribute) ||
0 1 if (attribute && (IsValidAttrName(attribute) ||
0 0 if (attribute && (IsValidAttrName(attribute) ||
36155 0 0 (cfgBool(doc, TidyXmlTags) && IsValidXMLAttrName(attribute))))
36158 1 0 av->delim = delim ? delim : '"';
36163 0 1 if ( !delim && value )
0 0 if ( !delim && value )
36172 0 0 if (LastChar(attribute) == '"')
36174 0 0 else if (value == NULL)
36217 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
36220 0 0 if (state != DT_INTSUBSET)
36221 0 0 c = c == '\n' ? ' ' : c;
36224 0 0 if (TY_(IsWhite)(c) && state != DT_INTSUBSET)
0 0 if (TY_(IsWhite)(c) && state != DT_INTSUBSET)
36226 0 0 if (!lexer->waswhite)
36247 0 0 if (TY_(ToUpper)(c) == 'P' || TY_(ToUpper)(c) == 'S')
0 0 if (TY_(ToUpper)(c) == 'P' || TY_(ToUpper)(c) == 'S')
36253 0 0 else if (c == '[')
36259 0 0 else if (c == '\'' || c == '"')
0 0 else if (c == '\'' || c == '"')
36266 0 0 else if (c == '>')
36273 0 0 if (si)
36276 0 0 if (!node->element || !IsValidXMLElemName(node->element))
0 0 if (!node->element || !IsValidXMLElemName(node->element))
36291 0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
36296 0 0 if (c == '>' || c == '[')
0 0 if (c == '>' || c == '[')
36308 0 0 if (TY_(IsWhite)(c) || c == '>')
0 0 if (TY_(IsWhite)(c) || c == '>')
36319 0 0 if (c == '>')
36331 0 0 if (c == delim)
36336 0 0 AttVal* att = TY_(AddAttribute)(doc, node, hasfpi ? "PUBLIC" : "SYSTEM", value);
36347 0 0 if (c == ']')
36431 0 0 if ( !fin )
36435 0 0 if ( fstat(fd, &sbuf) == -1
36436 0 0 || sbuf.st_size == 0
36437 0 0 || (fin->base = mmap(0, fin->size = sbuf.st_size, PROT_READ,
36459 0 0 if ( inp->getByte == mapped_getByte )
36750 6 5 if (tag)
36752 6 0 if (TY_(nodeIsElement)(tag))
36754 0 0 else if (tag->type == EndTag)
36756 0 0 else if (tag->type == DocTypeTag)
36758 0 0 else if (tag->type == TextNode)
36760 0 0 else if (tag->type == XmlDecl)
36762 0 0 else if (tag->element)
36781 0 0 if (n == 0)
36787 0 0 while (i >= 0)
36802 0 0 unsigned int version = versionEmitted == 0 ? declared : versionEmitted;
36804 0 0 if (!result)
36826 0 11 if ( !message )
36866 8 3 if ( message->level <= TidyFatal )
36872 7 4 if ( cfgBool( doc, TidyQuiet ) == yes )
36874 7 0 go = go && message->code != STRING_DOCTYPE_GIVEN;
7 0 go = go && message->code != STRING_DOCTYPE_GIVEN;
36875 7 0 go = go && message->code != STRING_CONTENT_LOOKS;
5 2 go = go && message->code != STRING_CONTENT_LOOKS;
36876 5 2 go = go && message->code != STRING_NO_SYSID;
5 0 go = go && message->code != STRING_NO_SYSID;
36877 5 2 go = go && message->level != TidyDialogueInfo;
5 0 go = go && message->level != TidyDialogueInfo;
36878 5 2 go = go && message->level != TidyConfig;
5 0 go = go && message->level != TidyConfig;
36879 5 2 go = go && message->level != TidyInfo;
5 0 go = go && message->level != TidyInfo;
36880 5 2 go = go && !(message->level >= TidyDialogueSummary &&
2 3 go = go && !(message->level >= TidyDialogueSummary &&
0 2 go = go && !(message->level >= TidyDialogueSummary &&
36885 0 11 if ( cfgBool( doc, TidyShowInfo ) == no )
36887 0 0 go = go && message->level != TidyInfo;
0 0 go = go && message->level != TidyInfo;
36892 0 0 go = go && message->level != TidyDialogueInfo;
0 0 go = go && message->level != TidyDialogueInfo;
36896 0 11 if ( cfgBool( doc, TidyShowWarnings ) == no )
36898 0 0 go = go && message->level != TidyWarning;
0 0 go = go && message->level != TidyWarning;
36902 7 4 if ( go )
36907 357 7 for ( cp = message->messageOutput; *cp; ++cp )
36910 1 356 if (b == (byte)'\n')
37247 1 0 if ( ( av = va_arg(args, AttVal*) ) )
1 0 if ( ( av = va_arg(args, AttVal*) ) )
37249 1 0 if (av->attribute)
37251 1 0 if (av->value)
37324 0 0 unsigned int c = va_arg( args, unsigned int );
37325 0 0 Bool discarded = va_arg( args, Bool );
37326 0 0 ctmbstr action = tidyLocalizedString(discarded ? STRING_DISCARDING : STRING_REPLACING);
37382 3 4 Node* rpt = ( element ? element : node );
37386 3 4 if ( element )
37425 3 0 if ( (str = va_arg( args, ctmbstr)) )
3 0 if ( (str = va_arg( args, ctmbstr)) )
37437 0 0 if ( !(entityname = va_arg( args, ctmbstr)) )
0 0 if ( !(entityname = va_arg( args, ctmbstr)) )
37447 0 0 if ( (name = va_arg( args, ctmbstr)) )
0 0 if ( (name = va_arg( args, ctmbstr)) )
37455 0 0 if ( (str = va_arg( args, ctmbstr)) )
0 0 if ( (str = va_arg( args, ctmbstr)) )
37462 0 0 ctmbstr s1 = va_arg( args, ctmbstr );
37463 0 0 ctmbstr s2 = va_arg( args, ctmbstr );
37469 0 0 ctmbstr s1 = va_arg( args, ctmbstr );
37470 0 0 ctmbstr s2 = va_arg( args, ctmbstr );
37471 0 0 ctmbstr s3 = va_arg( args, ctmbstr );
37480 0 0 unsigned int c1 = va_arg( args, unsigned int );
37481 0 0 unsigned int c2 = va_arg( args, unsigned int );
37583 0 0 switch (code)
37588 0 0 return TY_(tidyMessageCreateWithNode)(doc, node, code, doc->badForm ? TidyError : TidyWarning, nodedesc );
37613 522 0 while ( dispatchTable[i].code != 0 )
37615 8 514 if ( dispatchTable[i].code == code )
37627 0 8 if ( dispatchTable[i].next )
37678 0 0 assert( option != NULL );
37789 0 0 ctmbstr str = va_arg(args, ctmbstr);
37840 15 0 while ( dialogueDispatchTable[i].code != 0 )
37842 3 12 if ( dialogueDispatchTable[i].code == code )
37877 0 0 if ( charenc == WIN1252 )
37879 0 0 else if ( charenc == MACROMAN )
37881 0 0 else if ( charenc == IBM858 )
37883 0 0 else if ( charenc == LATIN0 )
37887 0 0 if ( doc->badAccess & (BA_USING_FRAMES | BA_USING_NOFRAMES) )
37889 0 0 if (!((doc->badAccess & BA_USING_FRAMES) && !(doc->badAccess & BA_USING_NOFRAMES)))
0 0 if (!((doc->badAccess & BA_USING_FRAMES) && !(doc->badAccess & BA_USING_NOFRAMES)))
37895 0 0 if (doc->badChars)
37897 0 0 if (doc->badChars & BC_VENDOR_SPECIFIC_CHARS)
37900 0 0 if ((doc->badChars & BC_INVALID_SGML_CHARS) || (doc->badChars & BC_INVALID_NCR))
0 0 if ((doc->badChars & BC_INVALID_SGML_CHARS) || (doc->badChars & BC_INVALID_NCR))
37903 0 0 if (doc->badChars & BC_INVALID_UTF8)
37906 0 0 if (doc->badChars & BC_INVALID_UTF16)
37909 0 0 if (doc->badChars & BC_INVALID_URI)
37913 0 0 if (doc->badForm)
37915 0 0 if (doc->badForm & flg_BadForm) /* Issue #166 - changed to BIT flag to support other errors */
37918 0 0 if (doc->badForm & flg_BadMain) /* Issue #166 - repeated
element */
37922 0 0 if (doc->badAccess)
37925 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
37927 0 0 if (doc->badAccess & BA_MISSING_SUMMARY)
37930 0 0 if (doc->badAccess & BA_MISSING_IMAGE_ALT)
37933 0 0 if (doc->badAccess & BA_MISSING_IMAGE_MAP)
37936 0 0 if (doc->badAccess & BA_MISSING_LINK_ALT)
37939 0 0 if ((doc->badAccess & BA_USING_FRAMES) && !(doc->badAccess & BA_USING_NOFRAMES))
0 0 if ((doc->badAccess & BA_USING_FRAMES) && !(doc->badAccess & BA_USING_NOFRAMES))
37943 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) > 0 )
37949 0 0 if (doc->badLayout)
37951 0 0 if (doc->badLayout & USING_LAYER)
37954 0 0 if (doc->badLayout & USING_SPACER)
37957 0 0 if (doc->badLayout & USING_FONT)
37960 0 0 if (doc->badLayout & USING_NOBR)
37963 0 0 if (doc->badLayout & USING_BODY)
37967 0 0 if (doc->footnotes)
37969 0 0 if (doc->footnotes & FN_TRIM_EMPTY_ELEMENT)
37981 0 3 if ( doc->givenDoctype )
37984 3 0 if ( ! cfgBool(doc, TidyXmlTags) )
37990 0 3 if ( !vers )
37996 0 3 if ( TY_(WarnMissingSIInEmittedDocType)( doc ) )
38007 0 3 if ( doc->warnings > 0 || doc->errors > 0 )
0 0 if ( doc->warnings > 0 || doc->errors > 0 )
38009 3 0 if ( doc->errors > cfg(doc, TidyShowErrors) || !cfgBool(doc, TidyShowWarnings) )
0 3 if ( doc->errors > cfg(doc, TidyShowErrors) || !cfgBool(doc, TidyShowWarnings) )
38035 0 4 if ( list->list )
38046 0 0 if ( message <= REPORT_MESSAGE_FIRST || message >= REPORT_MESSAGE_LAST)
0 0 if ( message <= REPORT_MESSAGE_FIRST || message >= REPORT_MESSAGE_LAST)
38052 0 0 if ( !list->list )
38060 0 0 if ( list->count >= list->capacity )
38089 0 0 assert( iter != NULL );
38092 0 0 if ( index > 0 && index <= list->count )
0 0 if ( index > 0 && index <= list->count )
38097 0 0 *iter = (TidyIterator) ( index <= list->count ? index : (size_t)0 );
38144 1120 0 while (tidyStringsKeys[i].key) {
38145 11 1109 if ( tidyStringsKeys[i].value == code )
38159 0 0 while (tidyStringsKeys[i].key) {
38160 0 0 if ( strcmp(tidyStringsKeys[i].key, code) == 0 )
38175 0 0 if ( array_size == 0 )
38177 0 0 while ( tidyStringsKeys[array_size].key ) {
38202 0 0 assert( iter != NULL );
38206 0 0 if ( itemIndex > 0 && itemIndex <= tidyErrorCodeListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyErrorCodeListSize() )
38212 0 0 *iter = (TidyIterator)( itemIndex <= tidyErrorCodeListSize() ? itemIndex : (size_t)0 );
38297 0 0 while( docs_xrefs[i].opt != N_TIDY_OPTIONS )
38299 0 0 if ( docs_xrefs[i].opt == optId )
38418 0 11 while ((doc->muted.list) && (doc->muted.list[i] != 0))
0 0 while ((doc->muted.list) && (doc->muted.list[i] != 0))
38420 0 0 if (doc->muted.list[i] == code)
38452 0 11 if ( cfgBool(doc, TidyEmacs) && cfgStr(doc, TidyEmacsFile) )
0 0 if ( cfgBool(doc, TidyEmacs) && cfgStr(doc, TidyEmacsFile) )
38458 0 11 else if ( cfgBool(doc, TidyShowFilename) && cfgStr(doc, TidyEmacsFile) )
0 0 else if ( cfgBool(doc, TidyShowFilename) && cfgStr(doc, TidyEmacsFile) )
38477 5 6 if ( line > 0 && column > 0 )
5 0 if ( line > 0 && column > 0 )
38482 3 8 if ( level > TidyFatal )
38495 0 11 if ( ( cfgBool(doc, TidyMuteShow) == yes ) && level <= TidyFatal )
0 0 if ( ( cfgBool(doc, TidyMuteShow) == yes ) && level <= TidyFatal )
38502 0 0 if (i < sizeMessageBuf)
38505 0 0 if (i < sizeMessageBuf)
38516 8 3 if ( (result->level <= TidyFatal) && doc->reportFilter )
0 8 if ( (result->level <= TidyFatal) && doc->reportFilter )
38524 8 3 if ( (result->level <= TidyFatal) && doc->reportCallback )
0 8 if ( (result->level <= TidyFatal) && doc->reportCallback )
38534 0 11 if ( doc->messageCallback )
38566 4 1 int line = ( node ? node->line :
1 0 int line = ( node ? node->line :
38568 4 1 int col = ( node ? node->column :
1 0 int col = ( node ? node->column :
38586 0 0 int line = ( doc->lexer ? doc->lexer->lines : 0 );
38587 0 0 int col = ( doc->lexer ? doc->lexer->columns : 0 );
38599 0 11 if ( !message )
38711 0 0 if (message.argcount > 0)
38721 0 0 assert( iter != NULL );
38725 0 0 if ( itemIndex >= 1 && itemIndex <= (size_t)message.argcount )
0 0 if ( itemIndex >= 1 && itemIndex <= (size_t)message.argcount )
38735 0 0 *iter = (TidyIterator)( itemIndex <= (size_t)message.argcount ? itemIndex : (size_t)0 );
38743 0 0 assert( argNum <= message.argcount );
38752 0 0 assert( argNum <= message.argcount );
38761 0 0 assert( argNum <= message.argcount );
38762 0 0 assert( message.arguments[argNum].type == tidyFormatType_STRING);
38771 0 0 assert( argNum <= message.argcount );
38772 0 0 assert( message.arguments[argNum].type == tidyFormatType_UINT);
38781 0 0 assert( argNum <= message.argcount );
38782 0 0 assert( message.arguments[argNum].type == tidyFormatType_INT);
38791 0 0 assert( argNum <= message.argcount );
38792 0 0 assert( message.arguments[argNum].type == tidyFormatType_DOUBLE);
38833 290 11 while( ( c = *p++ ) != 0 )
38835 269 21 if( c != '%' )
38838 0 21 if( ( c = *p++ ) == '%' ) /* skip %% case */
38845 1 10 if( number == 0 )
38850 0 10 if( !nas )
38857 21 10 for( i = 0; i < number; i++ )
38866 260 10 while( ( c = *p++ ) != 0 )
38868 239 21 if( c != '%' )
38871 0 21 if( ( c = *p++ ) == '%' )
38877 0 21 if (c == '*')
38885 21 0 while ((c >= '0') && (c <= '9'))
0 21 while ((c >= '0') && (c <= '9'))
38891 0 21 if (c == '.')
38894 0 0 if (c == '*') {
38900 0 0 while ((c >= '0') && (c <= '9'))
0 0 while ((c >= '0') && (c <= '9'))
38918 6 0 nas[cn].u.ui = va_arg( ap, unsigned int );
38924 0 0 nas[cn].u.i = va_arg( ap, int );
38930 11 4 nas[cn].u.s = va_arg( ap, char* );
38940 0 0 nas[cn].u.d = va_arg( ap, double );
38954 0 21 if ( nas[cn].formatLength >= FORMAT_LENGTH )
38967 0 21 if( nas[cn].type == tidyFormatType_UNKNOWN )
38977 0 10 if( *rv < 0 )
39015 8 38 if (node->prev)
39017 0 8 if (node->prev->next != node)
39021 8 38 if (node->next)
39023 8 0 if (node->next == node || node->next->prev != node)
0 8 if (node->next == node || node->next->prev != node)
39027 40 6 if (node->parent)
39029 32 8 if (node->prev == NULL && node->parent->content != node)
0 32 if (node->prev == NULL && node->parent->content != node)
39032 32 8 if (node->next == NULL && node->parent->last != node)
0 32 if (node->next == NULL && node->parent->last != node)
39036 40 46 for (child = node->content; child; child = child->next)
39037 40 0 if ( child->parent != node || !TY_(CheckNodeIntegrity)(child) )
0 40 if ( child->parent != node || !TY_(CheckNodeIntegrity)(child) )
39052 0 0 if (node && node->tag)
0 0 if (node && node->tag)
39064 0 0 if (obsolete)
39066 0 0 else if (unexpected)
39085 2 0 if (node->prev)
39088 0 2 if (node->next)
39091 2 0 if (node->parent)
39093 0 2 if (node->parent->content == node)
39096 2 0 if (node->parent->last == node)
39109 2 0 if (element)
39127 0 3 if (element->content == NULL)
39146 6 16 if (element->last != NULL)
39165 0 0 if (node->parent->content == element)
39168 0 0 if (node->parent->last == element)
39174 0 0 if (node->prev)
39180 0 0 if (node->next)
39195 0 3 if (node->prev)
39198 3 0 if (parent->content == element)
39211 0 0 if (parent != NULL && parent->last == element)
0 0 if (parent != NULL && parent->last == element)
39217 0 0 if (node->next != NULL)
39227 0 18 if ( !cfgBool(doc, TidyDropEmptyElems) )
39230 1 17 if ( TY_(nodeIsText)(element) )
39233 13 4 if ( element->content )
39236 0 4 if ( element->tag == NULL )
39239 1 3 if ( element->tag->model & CM_BLOCK && element->attributes != NULL )
0 1 if ( element->tag->model & CM_BLOCK && element->attributes != NULL )
39242 4 0 if ( nodeIsA(element) && element->attributes != NULL )
4 0 if ( nodeIsA(element) && element->attributes != NULL )
0 4 if ( nodeIsA(element) && element->attributes != NULL )
0 0 if ( nodeIsA(element) && element->attributes != NULL )
39245 4 0 if ( nodeIsP(element) && !cfgBool(doc, TidyDropEmptyParas) )
4 0 if ( nodeIsP(element) && !cfgBool(doc, TidyDropEmptyParas) )
1 3 if ( nodeIsP(element) && !cfgBool(doc, TidyDropEmptyParas) )
0 1 if ( nodeIsP(element) && !cfgBool(doc, TidyDropEmptyParas) )
39248 0 4 if ( element->tag->model & CM_ROW )
39251 1 3 if ( element->tag->model & CM_EMPTY )
39254 3 0 if ( nodeIsAPPLET(element) )
3 0 if ( nodeIsAPPLET(element) )
0 3 if ( nodeIsAPPLET(element) )
39257 3 0 if ( nodeIsOBJECT(element) )
3 0 if ( nodeIsOBJECT(element) )
0 3 if ( nodeIsOBJECT(element) )
39260 3 0 if ( nodeIsSCRIPT(element) && attrGetSRC(element) )
3 0 if ( nodeIsSCRIPT(element) && attrGetSRC(element) )
0 3 if ( nodeIsSCRIPT(element) && attrGetSRC(element) )
0 0 if ( nodeIsSCRIPT(element) && attrGetSRC(element) )
39263 3 0 if ( nodeIsTITLE(element) )
3 0 if ( nodeIsTITLE(element) )
2 1 if ( nodeIsTITLE(element) )
39267 1 0 if ( nodeIsIFRAME(element) )
1 0 if ( nodeIsIFRAME(element) )
0 1 if ( nodeIsIFRAME(element) )
39271 1 0 if (nodeIsTEXTAREA(element))
1 0 if (nodeIsTEXTAREA(element))
0 1 if (nodeIsTEXTAREA(element))
39275 1 0 if (nodeIsCANVAS(element))
1 0 if (nodeIsCANVAS(element))
0 1 if (nodeIsCANVAS(element))
39278 1 0 if (nodeIsPROGRESS(element))
1 0 if (nodeIsPROGRESS(element))
0 1 if (nodeIsPROGRESS(element))
39281 1 0 if ( attrGetID(element) || attrGetNAME(element) )
0 1 if ( attrGetID(element) || attrGetNAME(element) )
39286 0 1 if (attrGetDATAFLD(element))
39290 0 1 if (element->tag->id == TidyTag_UNKNOWN)
39293 1 0 if (nodeIsBODY(element))
1 0 if (nodeIsBODY(element))
0 1 if (nodeIsBODY(element))
39296 1 0 if (nodeIsCOLGROUP(element))
1 0 if (nodeIsCOLGROUP(element))
0 1 if (nodeIsCOLGROUP(element))
39300 1 0 if ( nodeIsOPTION(element) && element->attributes != NULL )
1 0 if ( nodeIsOPTION(element) && element->attributes != NULL )
0 1 if ( nodeIsOPTION(element) && element->attributes != NULL )
0 0 if ( nodeIsOPTION(element) && element->attributes != NULL )
39304 1 0 if (nodeIsDD(element))
1 0 if (nodeIsDD(element))
0 1 if (nodeIsDD(element))
39313 2 16 if ( CanPrune(doc, element) )
39315 1 1 if (element->type != TextNode)
39330 25 19 while (node)
39334 16 9 if (node->content)
39338 4 1 !(TY_(nodeIsText)(node) && !(node->start < node->end)))
39378 2 0 if (TY_(nodeIsText)(last))
39380 2 0 if (last->end > last->start)
39384 1 1 if ( c == ' ' )
39387 0 1 if ( (element->tag->model & CM_INLINE) &&
0 0 if ( (element->tag->model & CM_INLINE) &&
39399 0 0 if ( isBlank )
39400 0 0 isBlank = ( node->end == node->start || /* Zero length */
0 0 isBlank = ( node->end == node->start || /* Zero length */
39402 0 0 && lexer->lexbuf[node->start] == ' ' ) );
39421 3 0 if ( TY_(nodeIsText)(text) &&
0 3 if ( TY_(nodeIsText)(text) &&
39422 0 0 lexer->lexbuf[text->start] == ' ' &&
39425 0 0 if ( (element->tag->model & CM_INLINE) &&
0 0 if ( (element->tag->model & CM_INLINE) &&
39430 0 0 if (TY_(nodeIsText)(prev))
39432 0 0 if (prev->end == 0 || lexer->lexbuf[prev->end - 1] != ' ')
0 0 if (prev->end == 0 || lexer->lexbuf[prev->end - 1] != ' ')
39458 38 10 while (parent)
39460 28 10 if (parent->tag && parent->tag->parser == TY_(ParsePre))
2 26 if (parent->tag && parent->tag->parser == TY_(ParsePre))
39473 0 4 if (!TY_(nodeIsText)(node))
39476 0 4 if (node->parent->type == DocTypeTag)
39479 1 3 if (IsPreDescendant(node))
39482 3 0 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
0 3 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
39488 3 0 if (!next && !TY_(nodeHasCM)(node->parent, CM_INLINE))
3 0 if (!next && !TY_(nodeHasCM)(node->parent, CM_INLINE))
39492 0 0 if (!next && node->parent->next && !TY_(nodeHasCM)(node->parent->next, CM_INLINE))
0 0 if (!next && node->parent->next && !TY_(nodeHasCM)(node->parent->next, CM_INLINE))
0 0 if (!next && node->parent->next && !TY_(nodeHasCM)(node->parent->next, CM_INLINE))
39495 0 0 if (!next)
39498 0 0 if (nodeIsBR(next))
0 0 if (nodeIsBR(next))
0 0 if (nodeIsBR(next))
39501 0 0 if (TY_(nodeHasCM)(next, CM_INLINE))
39505 0 0 if (next->type == StartTag)
39509 0 0 if (next->type == StartEndTag)
39513 0 0 if (TY_(nodeIsText)(next) && next->start < next->end
0 0 if (TY_(nodeIsText)(next) && next->start < next->end
39514 0 0 && TY_(IsWhite)(doc->lexer->lexbuf[next->start]))
39522 0 4 if (!TY_(nodeIsText)(node))
39525 0 4 if (node->parent->type == DocTypeTag)
39528 1 3 if (IsPreDescendant(node))
39531 3 0 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
0 3 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
39535 0 3 if (nodeIsBR(node->prev))
0 0 if (nodeIsBR(node->prev))
0 0 if (nodeIsBR(node->prev))
39539 3 0 if (node->prev == NULL && !TY_(nodeHasCM)(node->parent, CM_INLINE))
3 0 if (node->prev == NULL && !TY_(nodeHasCM)(node->parent, CM_INLINE))
39543 0 0 if (node->prev && !TY_(nodeHasCM)(node->prev, CM_INLINE) &&
39548 0 0 if (!node->prev && !node->parent->prev && !TY_(nodeHasCM)(node->parent->parent, CM_INLINE))
0 0 if (!node->prev && !node->parent->prev && !TY_(nodeHasCM)(node->parent->parent, CM_INLINE))
0 0 if (!node->prev && !node->parent->prev && !TY_(nodeHasCM)(node->parent->parent, CM_INLINE))
39558 23 19 while (node)
39562 4 19 if (TY_(nodeIsText)(node) && CleanLeadingWhitespace(doc, node))
3 1 if (TY_(nodeIsText)(node) && CleanLeadingWhitespace(doc, node))
39563 3 0 while (node->start < node->end && TY_(IsWhite)(doc->lexer->lexbuf[node->start]))
0 3 while (node->start < node->end && TY_(IsWhite)(doc->lexer->lexbuf[node->start]))
39566 4 19 if (TY_(nodeIsText)(node) && CleanTrailingWhitespace(doc, node))
3 1 if (TY_(nodeIsText)(node) && CleanTrailingWhitespace(doc, node))
39567 3 0 while (node->end > node->start && TY_(IsWhite)(doc->lexer->lexbuf[node->end - 1]))
0 3 while (node->end > node->start && TY_(IsWhite)(doc->lexer->lexbuf[node->end - 1]))
39570 4 19 if (TY_(nodeIsText)(node) && !(node->start < node->end))
0 4 if (TY_(nodeIsText)(node) && !(node->start < node->end))
39579 16 7 if (node->content)
39602 5 0 if (nodeIsPRE(element) || IsPreDescendant(element))
5 0 if (nodeIsPRE(element) || IsPreDescendant(element))
4 1 if (nodeIsPRE(element) || IsPreDescendant(element))
0 4 if (nodeIsPRE(element) || IsPreDescendant(element))
39605 2 2 if (TY_(nodeIsText)(text))
39610 2 2 if (TY_(nodeIsText)(text))
39617 0 0 for ( parent = element->parent;
39621 0 0 if ( TagIsId(parent, tid) )
0 0 if ( TagIsId(parent, tid) )
0 0 if ( TagIsId(parent, tid) )
39629 20 0 if (node->type == CommentTag ||
20 0 if (node->type == CommentTag ||
39630 20 0 node->type == ProcInsTag ||
39631 20 0 node->type == CDATATag ||
39632 20 0 node->type == SectionTag ||
39633 20 0 node->type == AspTag ||
39634 0 20 node->type == JsteTag ||
39641 0 20 if ( node->type == XmlDecl )
39644 0 0 while ( root && root->parent )
0 0 while ( root && root->parent )
39646 0 0 if ( root && !(root->content && root->content->type == XmlDecl))
0 0 if ( root && !(root->content && root->content->type == XmlDecl))
0 0 if ( root && !(root->content && root->content->type == XmlDecl))
39658 5 13 TY_(nodeIsElement)(node) &&
39659 5 0 TY_(nodeCMIsEmpty)(node) && TagId(node) == TidyTag_UNKNOWN &&
5 0 TY_(nodeCMIsEmpty)(node) && TagId(node) == TidyTag_UNKNOWN &&
0 5 TY_(nodeCMIsEmpty)(node) && TagId(node) == TidyTag_UNKNOWN &&
0 0 TY_(nodeCMIsEmpty)(node) && TagId(node) == TidyTag_UNKNOWN &&
39674 0 9 if (node->tag == NULL) /* [i_a]2 prevent crash for active content (php, asp) docs */
39681 1 8 if (node->tag->model & CM_EMPTY)
39684 0 1 if (node->tag->parser == NULL)
39687 8 0 else if (!(node->tag->model & CM_INLINE))
39690 0 9 if (node->tag->parser == NULL)
39693 1 8 if (node->type == StartEndTag)
39708 0 0 if ( existing )
39716 0 0 while ( !nodeIsHTML(element) )
0 0 while ( !nodeIsHTML(element) )
0 0 while ( !nodeIsHTML(element) )
39732 0 0 if ( TY_(nodeIsElement)(node) )
39737 0 0 assert(head != NULL);
39741 0 0 if ( node->tag->parser )
39755 0 0 if ( body )
39767 0 0 if ( !cfgBool(doc, TidyDecorateInferredUL) )
39769 0 0 if ( cfgBool(doc, TidyMakeClean) )
39797 0 0 if ( element->tag->model & CM_EMPTY ) {
39805 0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
39817 0 0 if (element->tag->model & CM_OBJECT)
39823 0 0 if (!(element->tag->model & CM_MIXED))
39832 0 0 if ( !(element->tag->model & CM_INLINE) ||
0 0 if ( !(element->tag->model & CM_INLINE) ||
39837 0 0 else if (mode == IgnoreWhitespace)
39845 0 0 while ((node = TY_(GetToken)(doc, mode /*MixedContent*/)) != NULL)
39848 0 0 if (node->type == EndTag && node->tag &&
0 0 if (node->type == EndTag && node->tag &&
0 0 if (node->type == EndTag && node->tag &&
39849 0 0 (node->tag == element->tag || element->was == node->tag))
39853 0 0 if (element->tag->model & CM_OBJECT)
39856 0 0 while (lexer->istacksize > lexer->istackbase)
39870 0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
0 0 if ( nodeIsHTML(node) || nodeIsHEAD(node) || nodeIsBODY(node) )
39872 0 0 if ( TY_(nodeIsElement)(node) )
39879 0 0 if (node->type == EndTag)
39881 0 0 if (node->tag == NULL)
39887 0 0 else if ( nodeIsBR(node) )
0 0 else if ( nodeIsBR(node) )
0 0 else if ( nodeIsBR(node) )
39889 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
39900 0 0 else if (DescendantOf( element, node->tag->id ))
39912 0 0 if ( lexer->exiled
39913 0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
39927 0 0 if (TY_(nodeIsText)(node))
39929 0 0 if ( checkstack )
39932 0 0 if (!(element->tag->model & CM_MIXED))
39934 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
39950 0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
39951 0 0 nodeIsMAP(element) ||
0 0 nodeIsMAP(element) ||
0 0 nodeIsMAP(element) ||
39952 0 0 nodeIsBLOCKQUOTE(element) ||
0 0 nodeIsBLOCKQUOTE(element) ||
0 0 nodeIsBLOCKQUOTE(element) ||
39953 0 0 nodeIsFORM(element) ||
0 0 nodeIsFORM(element) ||
0 0 nodeIsFORM(element) ||
39954 0 0 nodeIsNOSCRIPT(element) )
0 0 nodeIsNOSCRIPT(element) )
39959 0 0 if ( InsertMisc(element, node) )
39963 0 0 if ( nodeIsPARAM(node) )
0 0 if ( nodeIsPARAM(node) )
0 0 if ( nodeIsPARAM(node) )
39965 0 0 if ( TY_(nodeHasCM)(element, CM_PARAM) && TY_(nodeIsElement)(node) )
0 0 if ( TY_(nodeHasCM)(element, CM_PARAM) && TY_(nodeIsElement)(node) )
39978 0 0 if ( nodeIsAREA(node) )
0 0 if ( nodeIsAREA(node) )
0 0 if ( nodeIsAREA(node) )
39980 0 0 if ( nodeIsMAP(element) && TY_(nodeIsElement)(node) )
0 0 if ( nodeIsMAP(element) && TY_(nodeIsElement)(node) )
0 0 if ( nodeIsMAP(element) && TY_(nodeIsElement)(node) )
0 0 if ( nodeIsMAP(element) && TY_(nodeIsElement)(node) )
39993 0 0 if ( node->tag == NULL )
40011 0 0 if ( !TY_(nodeHasCM)(node, CM_INLINE) )
40013 0 0 if ( !TY_(nodeIsElement)(node) )
40015 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
40039 0 0 if ( nodeIsLI(element) )
0 0 if ( nodeIsLI(element) )
0 0 if ( nodeIsLI(element) )
40041 0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
40042 0 0 nodeIsFRAMESET(node) ||
0 0 nodeIsFRAMESET(node) ||
0 0 nodeIsFRAMESET(node) ||
40043 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
40044 0 0 nodeIsOPTION(node) )
0 0 nodeIsOPTION(node) )
40052 0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
0 0 if ( nodeIsTD(element) || nodeIsTH(element) )
40056 0 0 if ( TY_(nodeHasCM)(node, CM_HEAD) )
40062 0 0 if ( TY_(nodeHasCM)(node, CM_LIST) )
40069 0 0 else if ( TY_(nodeHasCM)(node, CM_DEFLIST) )
40077 0 0 if ( !TY_(nodeHasCM)(node, CM_BLOCK) )
40088 0 0 else if ( TY_(nodeHasCM)(node, CM_BLOCK) )
40090 0 0 if ( lexer->excludeBlocks )
40092 0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) )
40097 0 0 if ( TY_(nodeHasCM)(element, CM_OBJECT) )
40110 0 0 if (node->tag->model & CM_HEAD)
40121 0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
40122 0 0 nodeIsTD(element->parent) &&
0 0 nodeIsTD(element->parent) &&
0 0 nodeIsTD(element->parent) &&
40125 0 0 if ( nodeIsTD(node) )
0 0 if ( nodeIsTD(node) )
0 0 if ( nodeIsTD(node) )
40132 0 0 if ( nodeIsTH(node) )
0 0 if ( nodeIsTH(node) )
0 0 if ( nodeIsTH(node) )
40144 0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) && !element->implicit )
0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) && !element->implicit )
40148 0 0 if ( cfgBool( doc, TidyOmitOptionalTags ) == no && TY_(nodeHasCM)(element, CM_OPT) )
0 0 if ( cfgBool( doc, TidyOmitOptionalTags ) == no && TY_(nodeHasCM)(element, CM_OPT) )
40154 0 0 if ( TY_(nodeHasCM)(node, CM_LIST) )
40156 0 0 if ( element->parent && element->parent->tag &&
0 0 if ( element->parent && element->parent->tag &&
0 0 if ( element->parent && element->parent->tag &&
40170 0 0 else if ( TY_(nodeHasCM)(node, CM_DEFLIST) )
40172 0 0 if ( nodeIsDL(element->parent) )
0 0 if ( nodeIsDL(element->parent) )
0 0 if ( nodeIsDL(element->parent) )
40184 0 0 else if ( TY_(nodeHasCM)(node, CM_TABLE) || TY_(nodeHasCM)(node, CM_ROW) )
0 0 else if ( TY_(nodeHasCM)(node, CM_TABLE) || TY_(nodeHasCM)(node, CM_ROW) )
40189 0 0 if (lexer->exiled) {
40198 0 0 else if ( TY_(nodeHasCM)(element, CM_OBJECT) )
40201 0 0 while ( lexer->istacksize > lexer->istackbase )
40231 0 0 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
40232 0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
40234 0 0 if (node->type != EndTag && node->attributes == NULL
0 0 if (node->type != EndTag && node->attributes == NULL
40235 0 0 && cfgBool(doc, TidyCoerceEndTags) )
40243 0 0 if (nodeIsA(element))
0 0 if (nodeIsA(element))
0 0 if (nodeIsA(element))
40256 0 0 if (!(mode & Preformatted))
40267 0 0 if (TY_(nodeIsElement)(node))
40269 0 0 if (node->tag->model & CM_INLINE)
40271 0 0 if (checkstack && !node->implicit)
0 0 if (checkstack && !node->implicit)
40275 0 0 if (!(element->tag->model & CM_MIXED)) /* #431731 - fix by Randy Waki 25 Dec 00 */
40277 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
40291 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
40296 0 0 if (node->implicit)
40307 0 0 if (node->type == EndTag)
40315 0 0 if (!(element->tag->model & CM_OPT))
40318 0 0 if (element->tag->model & CM_OBJECT)
40321 0 0 while ( lexer->istacksize > lexer->istackbase )
40350 0 0 if (TagId(node) == cb_data->matching_tagId)
0 0 if (TagId(node) == cb_data->matching_tagId)
0 0 if (TagId(node) == cb_data->matching_tagId)
40353 0 0 if (cb_data->matching_tagId != TidyTag_UNKNOWN ||
0 0 if (cb_data->matching_tagId != TidyTag_UNKNOWN ||
40354 0 0 (node->element != NULL &&
40355 0 0 cb_data->node_to_find != NULL &&
40356 0 0 cb_data->node_to_find->element != NULL &&
40364 0 0 if (cb_data->passed_marker_node && node == cb_data->marker_node)
0 0 if (cb_data->passed_marker_node && node == cb_data->marker_node)
40383 0 0 cb_data.matching_tagId = TagId(node);
0 0 cb_data.matching_tagId = TagId(node);
40387 0 0 assert(node);
40389 0 0 if (is_parent_of_marker)
40415 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
40426 0 0 if (node->type == EndTag)
40437 0 0 if (mp != NULL)
40446 0 0 for (n = parent;
40447 0 0 n != NULL && n != basenode->parent && n != mp;
0 0 n != NULL && n != basenode->parent && n != mp;
40462 0 0 if (outside == no)
40480 0 0 if (node == basenode)
40483 0 0 assert(basenode->closed == yes);
40492 0 0 assert(parent);
40497 0 0 else if (node->type == StartTag)
40501 0 0 for ( av = node->attributes; av; av = av->next )
40513 0 0 for ( av = node->attributes; av; av = av->next )
40537 0 2 if (element->tag->model & CM_EMPTY) {
40561 0 2 if ((TY_(nodeHasCM)(element, CM_BLOCK) || nodeIsDT(element)) &&
0 0 if ((TY_(nodeHasCM)(element, CM_BLOCK) || nodeIsDT(element)) &&
0 0 if ((TY_(nodeHasCM)(element, CM_BLOCK) || nodeIsDT(element)) &&
40564 0 0 else if (TY_(nodeHasCM)(element, CM_INLINE))
40567 2 0 if ( nodeIsNOBR(element) )
2 0 if ( nodeIsNOBR(element) )
0 2 if ( nodeIsNOBR(element) )
40569 2 0 else if ( nodeIsFONT(element) )
2 0 else if ( nodeIsFONT(element) )
0 2 else if ( nodeIsFONT(element) )
40573 2 0 if (mode != Preformatted)
40576 3 1 while ((node = TY_(GetToken)(doc, mode)) != NULL)
40579 0 3 if (node->tag == element->tag && node->type == EndTag)
0 0 if (node->tag == element->tag && node->type == EndTag)
40581 0 0 if (element->tag->model & CM_INLINE)
40586 0 0 if (!(mode & Preformatted))
40594 0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
40595 0 0 element->content && element->content == element->last )
40599 0 0 if ( nodeIsA(child) )
0 0 if ( nodeIsA(child) )
0 0 if ( nodeIsA(child) )
40631 1 2 if ( node->type == StartTag
40632 0 1 && node->tag == element->tag
40633 0 0 && TY_(IsPushed)( doc, node )
40634 0 0 && !node->implicit
40635 0 0 && !element->implicit
40636 0 0 && node->tag && (node->tag->model & CM_INLINE)
0 0 && node->tag && (node->tag->model & CM_INLINE)
40637 0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
40638 0 0 && !nodeIsFONT(node)
0 0 && !nodeIsFONT(node)
0 0 && !nodeIsFONT(node)
40639 0 0 && !nodeIsBIG(node)
0 0 && !nodeIsBIG(node)
0 0 && !nodeIsBIG(node)
40640 0 0 && !nodeIsSMALL(node)
0 0 && !nodeIsSMALL(node)
0 0 && !nodeIsSMALL(node)
40641 0 0 && !nodeIsSUB(node)
0 0 && !nodeIsSUB(node)
0 0 && !nodeIsSUB(node)
40642 0 0 && !nodeIsSUP(node)
0 0 && !nodeIsSUP(node)
0 0 && !nodeIsSUP(node)
40643 0 0 && !nodeIsQ(node)
0 0 && !nodeIsQ(node)
0 0 && !nodeIsQ(node)
40644 0 0 && !nodeIsSPAN(node)
0 0 && !nodeIsSPAN(node)
0 0 && !nodeIsSPAN(node)
40645 0 0 && cfgBool(doc, TidyCoerceEndTags)
40650 0 0 if (element->content != NULL && node->attributes == NULL
0 0 if (element->content != NULL && node->attributes == NULL
40651 0 0 && TY_(nodeIsText)(element->last)
40652 0 0 && !TY_(TextNodeEndWithSpace)(doc->lexer, element->last) )
40660 0 0 if (node->attributes == NULL || element->attributes == NULL)
0 0 if (node->attributes == NULL || element->attributes == NULL)
40663 0 3 else if ( TY_(IsPushed)(doc, node) && node->type == StartTag &&
0 0 else if ( TY_(IsPushed)(doc, node) && node->type == StartTag &&
0 0 else if ( TY_(IsPushed)(doc, node) && node->type == StartTag &&
40664 0 0 nodeIsQ(node) )
0 0 nodeIsQ(node) )
40670 0 0 if (TY_(HTMLVersion)(doc) != HT50)
40676 2 1 if ( TY_(nodeIsText)(node) )
40679 2 0 if ( element->content == NULL && !(mode & Preformatted) )
2 0 if ( element->content == NULL && !(mode & Preformatted) )
40682 0 2 if ( node->start >= node->end )
40693 0 1 if (InsertMisc(element, node))
40697 1 0 if ( nodeIsHTML(node) )
1 0 if ( nodeIsHTML(node) )
0 1 if ( nodeIsHTML(node) )
40699 0 0 if ( TY_(nodeIsElement)(node) )
40709 0 0 if (!(mode & Preformatted))
40719 1 0 if ( nodeIsP(node) &&
1 0 if ( nodeIsP(node) &&
0 1 if ( nodeIsP(node) &&
0 0 if ( nodeIsP(node) &&
40720 0 0 node->type == StartTag &&
40721 0 0 ( (mode & Preformatted) ||
40722 0 0 nodeIsDT(element) ||
40736 1 0 if ( nodeIsP(node) &&
1 0 if ( nodeIsP(node) &&
0 1 if ( nodeIsP(node) &&
0 0 if ( nodeIsP(node) &&
40737 0 0 node->type == StartTag &&
40738 0 0 nodeIsADDRESS(element) )
0 0 nodeIsADDRESS(element) )
40747 1 0 if ( node->tag == NULL || nodeIsPARAM(node) )
1 0 if ( node->tag == NULL || nodeIsPARAM(node) )
1 0 if ( node->tag == NULL || nodeIsPARAM(node) )
0 1 if ( node->tag == NULL || nodeIsPARAM(node) )
40754 1 0 if ( nodeIsBR(node) && node->type == EndTag )
1 0 if ( nodeIsBR(node) && node->type == EndTag )
0 1 if ( nodeIsBR(node) && node->type == EndTag )
0 0 if ( nodeIsBR(node) && node->type == EndTag )
40757 0 1 if ( node->type == EndTag )
40760 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
40762 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
40765 0 0 if ( !DescendantOf(element, TidyTag_P) )
40775 0 0 else if ( TY_(nodeHasCM)(node, CM_INLINE)
40776 0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
40777 0 0 && !TY_(nodeHasCM)(node, CM_OBJECT)
40778 0 0 && TY_(nodeHasCM)(element, CM_INLINE) )
40787 0 0 if ( !nodeIsA(element)
0 0 if ( !nodeIsA(element)
0 0 if ( !nodeIsA(element)
40788 0 0 && (node->tag != element->tag)
40789 0 0 && TY_(IsPushed)( doc, node )
40790 0 0 && TY_(IsPushed)( doc, element ) )
40794 0 0 if ( TY_(SwitchInline)( doc, element, node ) )
40799 0 0 if (!(mode & Preformatted))
40810 0 0 if ( !nodeIsA(element) )
0 0 if ( !nodeIsA(element) )
0 0 if ( !nodeIsA(element) )
40812 0 0 if ( nodeIsA(node) && node->tag != element->tag )
0 0 if ( nodeIsA(node) && node->tag != element->tag )
0 0 if ( nodeIsA(node) && node->tag != element->tag )
0 0 if ( nodeIsA(node) && node->tag != element->tag )
40823 0 0 if (!(mode & Preformatted))
40837 0 0 else if ( lexer->exiled
40838 0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
40851 0 1 if ( TY_(nodeHasCM)(node, CM_HEADING) && TY_(nodeHasCM)(element, CM_HEADING) )
0 0 if ( TY_(nodeHasCM)(node, CM_HEADING) && TY_(nodeHasCM)(element, CM_HEADING) )
40854 0 0 if ( node->tag == element->tag )
40865 0 0 if (!(mode & Preformatted))
40881 1 0 if ( nodeIsA(node) && !node->implicit &&
1 0 if ( nodeIsA(node) && !node->implicit &&
0 1 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
0 0 if ( nodeIsA(node) && !node->implicit &&
40882 0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
40888 0 0 if (node->type != EndTag && node->attributes == NULL
0 0 if (node->type != EndTag && node->attributes == NULL
40889 0 0 && cfgBool(doc, TidyCoerceEndTags) )
40902 0 0 if (!(mode & Preformatted))
40912 0 1 if (element->tag->model & CM_HEADING)
40914 0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
0 0 if ( nodeIsCENTER(node) || nodeIsDIV(node) )
40916 0 0 if (!TY_(nodeIsElement)(node))
40926 0 0 if (element->content == NULL)
40935 0 0 if (!(mode & Preformatted))
40943 0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
40945 0 0 if ( !TY_(nodeIsElement)(node) )
40955 0 0 if (element->content == NULL)
40964 0 0 if (!(mode & Preformatted))
40973 1 0 if ( nodeIsDT(element) )
1 0 if ( nodeIsDT(element) )
0 1 if ( nodeIsDT(element) )
40975 0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
40978 0 0 if ( !TY_(nodeIsElement)(node) )
40989 0 0 if (element->content == NULL)
41000 0 0 if (!(mode & Preformatted))
41014 0 1 if (node->type == EndTag)
41016 0 0 for (parent = element->parent;
41019 0 0 if (node->tag == parent->tag)
41021 0 0 if (!(element->tag->model & CM_OPT) && !element->implicit)
0 0 if (!(element->tag->model & CM_OPT) && !element->implicit)
41024 0 0 if( TY_(IsPushedLast)( doc, element, node ) )
41028 0 0 if (!(mode & Preformatted))
41048 1 0 if (!(node->tag->model & CM_INLINE) &&
1 0 if (!(node->tag->model & CM_INLINE) &&
41049 1 0 !(element->tag->model & CM_MIXED) &&
41050 1 0 !(nodeIsSPAN(element) && nodeIsMETA(node)) )
0 1 !(nodeIsSPAN(element) && nodeIsMETA(node)) )
0 0 !(nodeIsSPAN(element) && nodeIsMETA(node)) )
0 0 !(nodeIsSPAN(element) && nodeIsMETA(node)) )
0 0 !(nodeIsSPAN(element) && nodeIsMETA(node)) )
41052 0 1 if ( !TY_(nodeIsElement)(node) )
41059 1 0 if (nodeIsDATALIST(element)) {
1 0 if (nodeIsDATALIST(element)) {
0 1 if (nodeIsDATALIST(element)) {
41062 0 1 if (!(element->tag->model & CM_OPT))
41065 0 1 if (node->tag->model & CM_HEAD && !(node->tag->model & CM_BLOCK))
0 0 if (node->tag->model & CM_HEAD && !(node->tag->model & CM_BLOCK))
41075 1 0 if ( nodeIsA(element) )
1 0 if ( nodeIsA(element) )
0 1 if ( nodeIsA(element) )
41077 0 0 if (node->tag && !(node->tag->model & CM_HEADING))
0 0 if (node->tag && !(node->tag->model & CM_HEADING))
41079 0 0 else if (!(element->content))
41093 1 0 if (!(mode & Preformatted))
41104 0 0 if (TY_(nodeIsElement)(node))
41106 0 0 if (node->implicit)
41110 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
41124 0 1 if (!(element->tag->model & CM_OPT))
41136 0 1 if ( lexer->isvoyager )
41139 0 0 if ( node )
41141 0 0 if ( !(node->type == EndTag && node->tag == element->tag) )
0 0 if ( !(node->type == EndTag && node->tag == element->tag) )
41159 0 0 if (list->tag->model & CM_EMPTY)
41164 0 0 while ((node = TY_(GetToken)( doc, IgnoreWhitespace)) != NULL)
41166 0 0 if (node->tag == list->tag && node->type == EndTag)
0 0 if (node->tag == list->tag && node->type == EndTag)
41174 0 0 if (InsertMisc(list, node))
41177 0 0 if (TY_(nodeIsText)(node))
41184 0 0 if (node->tag == NULL)
41195 0 0 if (node->type == EndTag)
41198 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41206 0 0 for (parent = list->parent;
41212 0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
41217 0 0 if (node->tag == parent->tag)
41225 0 0 if (discardIt)
41234 0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
41236 0 0 if (list->content)
41261 0 0 if (parent->last == node)
41269 0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
0 0 if ( !(nodeIsDT(node) || nodeIsDD(node)) )
41273 0 0 if (!(node->tag->model & (CM_BLOCK | CM_INLINE)))
41280 0 0 if (!(node->tag->model & CM_INLINE) && lexer->excludeBlocks)
0 0 if (!(node->tag->model & CM_INLINE) && lexer->excludeBlocks)
41287 0 0 if (node->type == EndTag)
41307 0 0 for ( node = list->content; node ; node = node->next )
41308 0 0 if ( nodeIsLI(node) && node->type == StartTag )
0 0 if ( nodeIsLI(node) && node->type == StartTag )
0 0 if ( nodeIsLI(node) && node->type == StartTag )
0 0 if ( nodeIsLI(node) && node->type == StartTag )
41321 0 0 Bool nodeisOL = nodeIsOL(list);
0 0 Bool nodeisOL = nodeIsOL(list);
0 0 Bool nodeisOL = nodeIsOL(list);
41327 0 0 if (list->tag->model & CM_EMPTY)
41337 0 0 while ((node = TY_(GetToken)( doc, IgnoreWhitespace)) != NULL)
41340 0 0 if (node->tag == list->tag && node->type == EndTag)
0 0 if (node->tag == list->tag && node->type == EndTag)
41352 0 0 if (InsertMisc(list, node))
41355 0 0 if (node->type != TextNode && node->tag == NULL)
0 0 if (node->type != TextNode && node->tag == NULL)
41361 0 0 if (lexer && (node->type == TextNode))
0 0 if (lexer && (node->type == TextNode))
41365 0 0 while (ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while (ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
41366 0 0 && (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n'))
0 0 && (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n'))
0 0 && (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n'))
0 0 && (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n'))
41368 0 0 if (ix >= node->end)
41381 0 0 if (node->type == EndTag)
41383 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41391 0 0 if (TY_(nodeHasCM)(node,CM_INLINE))
41399 0 0 for ( parent = list->parent;
41405 0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
41407 0 0 if (node->tag == parent->tag)
41424 0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
41430 0 0 if ( nodeIsLI(node) || (TY_(IsHTML5Mode)(doc) && !foundLI) )
0 0 if ( nodeIsLI(node) || (TY_(IsHTML5Mode)(doc) && !foundLI) )
0 0 if ( nodeIsLI(node) || (TY_(IsHTML5Mode)(doc) && !foundLI) )
0 0 if ( nodeIsLI(node) || (TY_(IsHTML5Mode)(doc) && !foundLI) )
0 0 if ( nodeIsLI(node) || (TY_(IsHTML5Mode)(doc) && !foundLI) )
41441 0 0 if (TY_(nodeHasCM)(node,CM_BLOCK) && lexer->excludeBlocks)
0 0 if (TY_(nodeHasCM)(node,CM_BLOCK) && lexer->excludeBlocks)
41452 0 0 else if ( lexer->exiled
41453 0 0 && (TY_(nodeHasCM)(node, CM_TABLE|CM_ROWGRP|CM_ROW)
41454 0 0 || nodeIsTABLE(node)) )
0 0 || nodeIsTABLE(node)) )
0 0 || nodeIsTABLE(node)) )
41466 0 0 if ( nodeIsOL(list) && FindLastLI(list, &lastli) )
0 0 if ( nodeIsOL(list) && FindLastLI(list, &lastli) )
0 0 if ( nodeIsOL(list) && FindLastLI(list, &lastli) )
0 0 if ( nodeIsOL(list) && FindLastLI(list, &lastli) )
41481 0 0 TY_(AddStyleProperty)( doc, node,
41512 0 0 for (table = row->parent; table; table = table->parent)
41514 0 0 if ( nodeIsTABLE(table) )
0 0 if ( nodeIsTABLE(table) )
0 0 if ( nodeIsTABLE(table) )
41533 0 0 if (row->content == NULL)
41547 0 0 if (row->tag->model & CM_EMPTY)
41550 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41552 0 0 if (node->tag == row->tag)
41554 0 0 if (node->type == EndTag)
41572 0 0 if ( node->type == EndTag )
41574 0 0 if ( (TY_(nodeHasCM)(node, CM_HTML|CM_TABLE) || nodeIsTABLE(node))
0 0 if ( (TY_(nodeHasCM)(node, CM_HTML|CM_TABLE) || nodeIsTABLE(node))
0 0 if ( (TY_(nodeHasCM)(node, CM_HTML|CM_TABLE) || nodeIsTABLE(node))
0 0 if ( (TY_(nodeHasCM)(node, CM_HTML|CM_TABLE) || nodeIsTABLE(node))
41575 0 0 && DescendantOf(row, TagId(node)) )
0 0 && DescendantOf(row, TagId(node)) )
0 0 && DescendantOf(row, TagId(node)) )
41581 0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
41583 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41591 0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
41600 0 0 if (InsertMisc(row, node))
41604 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41612 0 0 if ( nodeIsTABLE(node) )
0 0 if ( nodeIsTABLE(node) )
0 0 if ( nodeIsTABLE(node) )
41620 0 0 if ( TY_(nodeHasCM)(node, CM_ROWGRP) )
41626 0 0 if (node->type == EndTag)
41638 0 0 if (node->type != EndTag)
41640 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41646 0 0 else if ( TY_(nodeIsText)(node)
41647 0 0 || TY_(nodeHasCM)(node, CM_BLOCK | CM_INLINE) )
41655 0 0 if (node->type != TextNode)
41662 0 0 else if (node->tag->model & CM_HEAD)
41670 0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
0 0 if ( !(nodeIsTD(node) || nodeIsTH(node)) )
41686 0 0 while ( lexer->istacksize > lexer->istackbase )
41697 0 0 if (rowgroup->tag->model & CM_EMPTY)
41700 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41702 0 0 if (node->tag == rowgroup->tag)
41704 0 0 if (node->type == EndTag)
41716 0 0 if ( nodeIsTABLE(node) && node->type == EndTag )
0 0 if ( nodeIsTABLE(node) && node->type == EndTag )
0 0 if ( nodeIsTABLE(node) && node->type == EndTag )
0 0 if ( nodeIsTABLE(node) && node->type == EndTag )
41723 0 0 if (InsertMisc(rowgroup, node))
41727 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41740 0 0 if (node->type != EndTag)
41742 0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) )
41748 0 0 else if ( TY_(nodeIsText)(node)
41749 0 0 || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
41755 0 0 if (node->type != TextNode)
41761 0 0 else if (node->tag->model & CM_HEAD)
41773 0 0 if (node->type == EndTag)
41775 0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
0 0 if ( nodeIsFORM(node) || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
41777 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41785 0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
0 0 if ( nodeIsTR(node) || nodeIsTD(node) || nodeIsTH(node) )
41792 0 0 for ( parent = rowgroup->parent;
41796 0 0 if (node->tag == parent->tag)
41808 0 0 if (node->tag->model & CM_ROWGRP)
41810 0 0 if (node->type != EndTag)
41817 0 0 if (node->type == EndTag)
41824 0 0 if ( !nodeIsTR(node) )
0 0 if ( !nodeIsTR(node) )
0 0 if ( !nodeIsTR(node) )
41842 0 0 if (colgroup->tag->model & CM_EMPTY)
41845 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41847 0 0 if (node->tag == colgroup->tag && node->type == EndTag)
0 0 if (node->tag == colgroup->tag && node->type == EndTag)
41858 0 0 if (node->type == EndTag)
41860 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41868 0 0 for ( parent = colgroup->parent;
41872 0 0 if (node->tag == parent->tag)
41880 0 0 if (TY_(nodeIsText)(node))
41887 0 0 if (InsertMisc(colgroup, node))
41891 0 0 if (node->tag == NULL)
41898 0 0 if ( !nodeIsCOL(node) )
0 0 if ( !nodeIsCOL(node) )
0 0 if ( !nodeIsCOL(node) )
41904 0 0 if (node->type == EndTag)
41934 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41936 0 0 if (node->tag == table->tag )
41938 0 0 if (node->type == EndTag)
41962 0 0 if (InsertMisc(table, node))
41966 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41975 0 0 if (node->type != EndTag)
41977 0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
0 0 if ( nodeIsTD(node) || nodeIsTH(node) || nodeIsTABLE(node) )
41983 0 0 else if ( TY_(nodeIsText)(node) ||TY_(nodeHasCM)(node,CM_BLOCK|CM_INLINE) )
0 0 else if ( TY_(nodeIsText)(node) ||TY_(nodeHasCM)(node,CM_BLOCK|CM_INLINE) )
41989 0 0 if (node->type != TextNode)
41995 0 0 else if (node->tag->model & CM_HEAD)
42006 0 0 if (node->type == EndTag)
42008 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
42025 0 0 for ( parent = table->parent;
42029 0 0 if (node->tag == parent->tag)
42043 0 0 if (!(node->tag->model & CM_TABLE))
42055 0 0 if (TY_(nodeIsElement)(node))
42079 0 0 if ( nodeIsP(node) || TY_(nodeIsText)(node) )
0 0 if ( nodeIsP(node) || TY_(nodeIsText)(node) )
0 0 if ( nodeIsP(node) || TY_(nodeIsText)(node) )
0 0 if ( nodeIsP(node) || TY_(nodeIsText)(node) )
42082 0 0 if ( node->tag == NULL ||
0 0 if ( node->tag == NULL ||
42083 0 0 nodeIsPARAM(node) ||
42094 0 1 if (pre->tag->model & CM_EMPTY)
42099 2 0 while ((node = TY_(GetToken)(doc, Preformatted)) != NULL)
42101 1 1 if ( node->type == EndTag &&
0 1 if ( node->type == EndTag &&
42102 0 0 (node->tag == pre->tag || DescendantOf(pre, TagId(node))) )
0 0 (node->tag == pre->tag || DescendantOf(pre, TagId(node))) )
0 0 (node->tag == pre->tag || DescendantOf(pre, TagId(node))) )
42104 1 0 if (nodeIsBODY(node) || nodeIsHTML(node))
1 0 if (nodeIsBODY(node) || nodeIsHTML(node))
1 0 if (nodeIsBODY(node) || nodeIsHTML(node))
1 0 if (nodeIsBODY(node) || nodeIsHTML(node))
1 0 if (nodeIsBODY(node) || nodeIsHTML(node))
0 1 if (nodeIsBODY(node) || nodeIsHTML(node))
42110 1 0 if (node->tag == pre->tag)
42124 1 0 if (TY_(nodeIsText)(node))
42131 0 0 if (InsertMisc(pre, node))
42134 0 0 if (node->tag == NULL)
42142 0 0 if ( !PreContent(doc, node) )
42147 0 0 if (node->type == EndTag)
42150 0 0 if ( doc->lexer->exiled
42151 0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
0 0 && (TY_(nodeHasCM)(node, CM_TABLE) || nodeIsTABLE(node)) )
42163 0 0 else if (TY_(nodeHasCM)(node, CM_TABLE|CM_ROW)
42164 0 0 || nodeIsTABLE(node) )
0 0 || nodeIsTABLE(node) )
0 0 || nodeIsTABLE(node) )
42166 0 0 if (!doc->lexer->exiled)
42223 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
42225 0 0 if (node->type == StartTag)
42245 0 0 if ( TY_(nodeIsElement)(node) )
42248 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
42271 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42273 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42282 0 0 if (InsertMisc(field, node))
42285 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42286 0 0 (nodeIsOPTION(node) || nodeIsOPTGROUP(node)) )
0 0 (nodeIsOPTION(node) || nodeIsOPTGROUP(node)) )
0 0 (nodeIsOPTION(node) || nodeIsOPTGROUP(node)) )
0 0 (nodeIsOPTION(node) || nodeIsOPTGROUP(node)) )
0 0 (nodeIsOPTION(node) || nodeIsOPTGROUP(node)) )
42288 0 0 if ( nodeIsOPTGROUP(node) )
0 0 if ( nodeIsOPTGROUP(node) )
0 0 if ( nodeIsOPTGROUP(node) )
42317 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42319 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42332 0 0 if (InsertMisc(field, node))
42335 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42336 0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
42337 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
42338 0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
42339 0 0 nodeIsSCRIPT(node))
0 0 nodeIsSCRIPT(node))
42374 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42376 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42389 0 0 if (InsertMisc(field, node))
42392 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42393 0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
42394 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
42395 0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
42396 0 0 nodeIsSCRIPT(node))
0 0 nodeIsSCRIPT(node))
42426 0 0 if ( nodeIsTEXTAREA(field) )
0 0 if ( nodeIsTEXTAREA(field) )
0 0 if ( nodeIsTEXTAREA(field) )
42431 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
42433 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42442 0 0 if (InsertMisc(field, node))
42445 0 0 if (TY_(nodeIsText)(node))
42448 0 0 if (field->content == NULL && !(mode & Preformatted))
0 0 if (field->content == NULL && !(mode & Preformatted))
42451 0 0 if (node->start >= node->end)
42464 0 0 if ( node->tag
42465 0 0 && node->tag->model & CM_INLINE
42466 0 0 && !(node->tag->model & CM_FIELD)) /* #487283 - fix by Lee Passey 25 Jan 02 */
42474 0 0 if (!(field->tag->model & CM_OPT))
42482 0 0 if (!(field->tag->model & CM_OPT))
42490 2 0 while ((node = TY_(GetToken)(doc, MixedContent)) != NULL)
42492 1 1 if (node->tag == title->tag && node->type == StartTag
0 1 if (node->tag == title->tag && node->type == StartTag
42493 0 0 && cfgBool(doc, TidyCoerceEndTags) )
42500 1 1 else if (node->tag == title->tag && node->type == EndTag)
1 0 else if (node->tag == title->tag && node->type == EndTag)
42508 1 0 if (TY_(nodeIsText)(node))
42511 1 0 if (title->content == NULL)
42514 0 1 if (node->start >= node->end)
42525 0 0 if (InsertMisc(title, node))
42529 0 0 if (node->tag == NULL)
42561 0 0 if (node)
42574 0 0 if (!(node && node->type == EndTag && node->tag &&
0 0 if (!(node && node->type == EndTag && node->tag &&
0 0 if (!(node && node->type == EndTag && node->tag &&
0 0 if (!(node && node->type == EndTag && node->tag &&
42579 0 0 if (node)
42593 0 0 if (node->attributes == NULL)
42596 0 0 for (attr = node->attributes; attr; attr = attr->next)
42598 0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
0 0 if ( (attrIsLANGUAGE(attr) || attrIsTYPE(attr))
42599 0 0 && AttrContains(attr, "javascript") )
0 0 && AttrContains(attr, "javascript") )
0 0 && AttrContains(attr, "javascript") )
42617 4 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42619 0 4 if (node->tag == head->tag && node->type == EndTag)
0 0 if (node->tag == head->tag && node->type == EndTag)
42628 4 0 if ((node->tag == head->tag || nodeIsHTML(node)) && node->type == StartTag)
4 0 if ((node->tag == head->tag || nodeIsHTML(node)) && node->type == StartTag)
4 0 if ((node->tag == head->tag || nodeIsHTML(node)) && node->type == StartTag)
0 4 if ((node->tag == head->tag || nodeIsHTML(node)) && node->type == StartTag)
0 0 if ((node->tag == head->tag || nodeIsHTML(node)) && node->type == StartTag)
42635 0 4 if (TY_(nodeIsText)(node))
42641 0 0 if (!cfgBool( doc, TidyOmitOptionalTags ) &&
0 0 if (!cfgBool( doc, TidyOmitOptionalTags ) &&
42650 0 4 if (node->type == ProcInsTag && node->element &&
42659 0 4 if (InsertMisc(head, node))
42662 0 4 if (node->type == DocTypeTag)
42669 0 4 if (node->tag == NULL)
42681 3 1 if (!(node->tag->model & CM_HEAD))
42684 0 3 if ( lexer->isvoyager )
42690 1 0 if (TY_(nodeIsElement)(node))
42692 1 0 if ( nodeIsTITLE(node) )
1 0 if ( nodeIsTITLE(node) )
1 0 if ( nodeIsTITLE(node) )
42696 0 1 if (HasTitle > 1)
42697 0 0 TY_(Report)(doc, head, node,
42701 0 0 else if ( nodeIsBASE(node) )
0 0 else if ( nodeIsBASE(node) )
0 0 else if ( nodeIsBASE(node) )
42705 0 0 if (HasBase > 1)
42706 0 0 TY_(Report)(doc, head, node,
42730 0 0 while (node)
42732 0 0 if (TagIsId(node,tid))
0 0 if (TagIsId(node,tid))
0 0 if (TagIsId(node,tid))
42742 0 0 if (content)
42744 0 0 if (TY_(FindNodeWithId)(content,tid))
42759 0 0 Node *node = (doc ? doc->root.content : NULL);
42776 6 3 while ((node = TY_(GetToken)(doc, mode)) != NULL)
42779 0 6 if (node->tag == body->tag && node->type == StartTag)
0 0 if (node->tag == body->tag && node->type == StartTag)
42787 6 0 if ( nodeIsHTML(node) )
5 1 if ( nodeIsHTML(node) )
0 5 if ( nodeIsHTML(node) )
42789 0 0 if (TY_(nodeIsElement)(node) || lexer->seenEndHtml)
0 0 if (TY_(nodeIsElement)(node) || lexer->seenEndHtml)
42798 0 6 if ( lexer->seenEndBody &&
0 0 if ( lexer->seenEndBody &&
42799 0 0 ( node->type == StartTag ||
42800 0 0 node->type == EndTag ||
42806 0 6 if ( node->tag == body->tag && node->type == EndTag )
0 0 if ( node->tag == body->tag && node->type == EndTag )
42814 0 0 if ( nodeIsNOFRAMES(body->parent) )
0 0 if ( nodeIsNOFRAMES(body->parent) )
0 0 if ( nodeIsNOFRAMES(body->parent) )
42820 6 0 if ( nodeIsNOFRAMES(node) )
5 1 if ( nodeIsNOFRAMES(node) )
0 5 if ( nodeIsNOFRAMES(node) )
42822 0 0 if (node->type == StartTag)
42829 0 0 if (node->type == EndTag && nodeIsNOFRAMES(body->parent) )
0 0 if (node->type == EndTag && nodeIsNOFRAMES(body->parent) )
0 0 if (node->type == EndTag && nodeIsNOFRAMES(body->parent) )
0 0 if (node->type == EndTag && nodeIsNOFRAMES(body->parent) )
42837 6 0 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
5 1 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
5 0 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
6 0 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
5 1 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
0 5 if ( (nodeIsFRAME(node) || nodeIsFRAMESET(node))
42838 0 0 && nodeIsNOFRAMES(body->parent) )
0 0 && nodeIsNOFRAMES(body->parent) )
0 0 && nodeIsNOFRAMES(body->parent) )
42847 1 5 if ( TY_(nodeIsText)(node) &&
1 0 if ( TY_(nodeIsText)(node) &&
42848 1 0 node->end <= node->start + 1 &&
42853 0 6 if (InsertMisc(body, node))
42857 1 5 if (TY_(nodeIsText)(node))
42859 1 0 if (iswhitenode && mode == IgnoreWhitespace)
0 1 if (iswhitenode && mode == IgnoreWhitespace)
42868 0 1 if (checkstack)
42872 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
42881 0 5 if (node->type == DocTypeTag)
42887 5 0 if ( node->tag == NULL || nodeIsPARAM(node) )
5 0 if ( node->tag == NULL || nodeIsPARAM(node) )
5 0 if ( node->tag == NULL || nodeIsPARAM(node) )
0 5 if ( node->tag == NULL || nodeIsPARAM(node) )
42902 5 0 if (( nodeIsINPUT(node) ||
5 0 if (( nodeIsINPUT(node) ||
42903 0 1 (!TY_(nodeHasCM)(node, CM_BLOCK) && !TY_(nodeHasCM)(node, CM_INLINE))
42904 0 0 ) && !TY_(IsHTML5Mode)(doc) )
42907 0 0 if (!(node->tag->model & CM_HEAD))
42910 0 0 if (node->tag->model & CM_HTML)
42913 0 0 if ( nodeIsBODY(node) && body->implicit
0 0 if ( nodeIsBODY(node) && body->implicit
0 0 if ( nodeIsBODY(node) && body->implicit
0 0 if ( nodeIsBODY(node) && body->implicit
42914 0 0 && body->attributes == NULL )
42924 0 0 if (node->tag->model & CM_HEAD)
42930 0 0 if (node->tag->model & CM_LIST)
42937 0 0 else if (node->tag->model & CM_DEFLIST)
42943 0 0 else if (node->tag->model & (CM_TABLE | CM_ROWGRP | CM_ROW))
42946 0 0 if (node->type != EndTag) {
42952 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
42960 0 0 if ( !TY_(nodeHasCM)(node, CM_ROW | CM_FIELD) )
42972 1 4 if (node->type == EndTag)
42974 1 0 if ( nodeIsBR(node) )
1 0 if ( nodeIsBR(node) )
0 1 if ( nodeIsBR(node) )
42976 1 0 else if ( nodeIsP(node) )
1 0 else if ( nodeIsP(node) )
1 0 else if ( nodeIsP(node) )
42981 0 0 else if ( TY_(nodeHasCM)(node, CM_INLINE) )
42985 5 0 if (TY_(nodeIsElement)(node))
42987 5 0 if (nodeIsMAIN(node)) {
5 0 if (nodeIsMAIN(node)) {
0 5 if (nodeIsMAIN(node)) {
42991 0 0 if ( TY_(FindNodeById)(doc, TidyTag_MAIN) )
43002 1 4 if ( TY_(nodeHasCM)(node, CM_INLINE) )
43006 1 0 if ( nodeIsIMG(node) )
1 0 if ( nodeIsIMG(node) )
1 0 if ( nodeIsIMG(node) )
43011 1 0 if (checkstack && !node->implicit)
1 0 if (checkstack && !node->implicit)
43015 0 1 if ( TY_(InlineDup)(doc, node) > 0 )
43027 1 4 if (node->implicit)
43047 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43053 0 0 while ( (node = TY_(GetToken)(doc, mode)) != NULL )
43055 0 0 if ( node->tag == noframes->tag && node->type == EndTag )
0 0 if ( node->tag == noframes->tag && node->type == EndTag )
43063 0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
0 0 if ( nodeIsFRAME(node) || nodeIsFRAMESET(node) )
43066 0 0 if (node->type == EndTag)
43079 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
43081 0 0 if (TY_(nodeIsElement)(node))
43089 0 0 if (InsertMisc(noframes, node))
43092 0 0 if ( nodeIsBODY(node) && node->type == StartTag )
0 0 if ( nodeIsBODY(node) && node->type == StartTag )
0 0 if ( nodeIsBODY(node) && node->type == StartTag )
0 0 if ( nodeIsBODY(node) && node->type == StartTag )
43099 0 0 if (seen_body && TY_(FindBody)(doc) != node)
0 0 if (seen_body && TY_(FindBody)(doc) != node)
43108 0 0 if (TY_(nodeIsText)(node) || (node->tag && node->type != EndTag))
0 0 if (TY_(nodeIsText)(node) || (node->tag && node->type != EndTag))
0 0 if (TY_(nodeIsText)(node) || (node->tag && node->type != EndTag))
43111 0 0 if ( body || lexer->seenEndBody )
0 0 if ( body || lexer->seenEndBody )
43113 0 0 if ( body == NULL )
43119 0 0 if ( TY_(nodeIsText)(node) )
43131 0 0 if ( cfgBool(doc, TidyXmlOut) )
43153 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43158 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43160 0 0 if (node->tag == frameset->tag && node->type == EndTag)
0 0 if (node->tag == frameset->tag && node->type == EndTag)
43169 0 0 if (InsertMisc(frameset, node))
43172 0 0 if (node->tag == NULL)
43179 0 0 if (TY_(nodeIsElement)(node))
43181 0 0 if (node->tag && node->tag->model & CM_HEAD)
0 0 if (node->tag && node->tag->model & CM_HEAD)
43188 0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
43195 0 0 if (node->type == StartTag && (node->tag->model & CM_FRAMES))
0 0 if (node->type == StartTag && (node->tag->model & CM_FRAMES))
43202 0 0 else if (node->type == StartEndTag && (node->tag->model & CM_FRAMES))
0 0 else if (node->type == StartEndTag && (node->tag->model & CM_FRAMES))
43210 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
43233 0 3 if (node == NULL)
43239 3 0 if ( nodeIsHEAD(node) )
3 0 if ( nodeIsHEAD(node) )
0 3 if ( nodeIsHEAD(node) )
43242 0 3 if (node->tag == html->tag && node->type == EndTag)
0 0 if (node->tag == html->tag && node->type == EndTag)
43250 0 3 if (node->tag == html->tag && node->type == StartTag)
0 0 if (node->tag == html->tag && node->type == StartTag)
43258 0 3 if (InsertMisc(html, node))
43274 0 3 if (node == NULL)
43276 0 0 if (frameset == NULL) /* implied body */
43288 0 3 if (node->tag == html->tag)
43290 0 0 if (node->type != StartTag && frameset == NULL)
0 0 if (node->type != StartTag && frameset == NULL)
43298 0 3 if (InsertMisc(html, node))
43302 3 0 if ( nodeIsBODY(node) )
3 0 if ( nodeIsBODY(node) )
0 3 if ( nodeIsBODY(node) )
43304 0 0 if (node->type != StartTag)
43311 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43313 0 0 if (frameset != NULL)
43317 0 0 if (noframes == NULL)
43325 0 0 if (noframes->type == StartEndTag)
43339 3 0 if ( nodeIsFRAMESET(node) )
3 0 if ( nodeIsFRAMESET(node) )
0 3 if ( nodeIsFRAMESET(node) )
43341 0 0 if (node->type != StartTag)
43348 0 0 if (frameset != NULL)
43361 0 0 for (node = frameset->content; node; node = node->next)
43363 0 0 if ( nodeIsNOFRAMES(node) )
0 0 if ( nodeIsNOFRAMES(node) )
0 0 if ( nodeIsNOFRAMES(node) )
43370 3 0 if ( nodeIsNOFRAMES(node) )
3 0 if ( nodeIsNOFRAMES(node) )
0 3 if ( nodeIsNOFRAMES(node) )
43372 0 0 if (node->type != StartTag)
43379 0 0 if (frameset == NULL)
43387 0 0 if (noframes == NULL)
43399 3 0 if (TY_(nodeIsElement)(node))
43401 3 0 if (node->tag && node->tag->model & CM_HEAD)
0 3 if (node->tag && node->tag->model & CM_HEAD)
43408 0 3 if ( frameset != NULL && nodeIsFRAME(node) )
0 0 if ( frameset != NULL && nodeIsFRAME(node) )
0 0 if ( frameset != NULL && nodeIsFRAME(node) )
0 0 if ( frameset != NULL && nodeIsFRAME(node) )
43420 0 3 if (frameset)
43422 0 0 if (noframes == NULL)
43430 0 0 if (noframes->type == StartEndTag)
43442 1 2 if (!showingBodyOnly(doc))
43457 0 0 return TY_(nodeHasCM)( node, CM_INLINE ) && !TY_(nodeHasCM)( node, CM_BLOCK );
0 0 return TY_(nodeHasCM)( node, CM_INLINE ) && !TY_(nodeHasCM)( node, CM_BLOCK );
43465 0 0 if (!body)
43470 0 0 while (node)
43472 0 0 if ((TY_(nodeIsText)(node) && !TY_(IsBlank)(doc->lexer, node)) ||
43473 0 0 (TY_(nodeIsElement)(node) && nodeCMIsOnlyInline(node)))
43477 0 0 while (node && (!TY_(nodeIsElement)(node) || nodeCMIsOnlyInline(node)))
0 0 while (node && (!TY_(nodeIsElement)(node) || nodeCMIsOnlyInline(node)))
0 0 while (node && (!TY_(nodeIsElement)(node) || nodeCMIsOnlyInline(node)))
43499 0 0 while (node)
43503 0 0 if (node->content)
43506 0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
0 0 if (!(nodeIsFORM(node) || nodeIsNOSCRIPT(node) ||
43507 0 0 nodeIsBLOCKQUOTE(node))
0 0 nodeIsBLOCKQUOTE(node))
43508 0 0 || !node->content)
43516 0 0 if ((TY_(nodeIsText)(block) && !TY_(IsBlank)(doc->lexer, block)) ||
43517 0 0 (TY_(nodeIsElement)(block) && nodeCMIsOnlyInline(block)))
43522 0 0 (!TY_(nodeIsElement)(block) || nodeCMIsOnlyInline(block)))
43541 25 19 while (node)
43547 25 0 if (nodeIsDIR(node))
17 8 if (nodeIsDIR(node))
0 17 if (nodeIsDIR(node))
43550 25 0 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
17 8 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
17 0 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
25 0 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
17 8 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
17 0 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
17 8 if (nodeIsXMP(node) || nodeIsLISTING(node) ||
43551 0 17 (node->tag && node->tag->id == TidyTag_PLAINTEXT))
43554 16 9 if (node->content)
43565 25 19 while (node)
43569 17 8 if (TY_(nodeIsElement)(node))
43571 17 0 if (node->tag && node->tag->chkattrs) /* [i_a]2 fix crash after adding SVG support with alt/unknown tag subtree insertion there */
4 13 if (node->tag && node->tag->chkattrs) /* [i_a]2 fix crash after adding SVG support with alt/unknown tag subtree insertion there */
43577 16 9 if (node->content)
43580 0 25 assert( next != node ); /* http://tidy.sf.net/issue/1603538 */
43592 3 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43594 0 3 if (node->type == XmlDecl)
43598 0 0 if (TY_(FindXmlDecl)(doc) && doc->root.content)
0 0 if (TY_(FindXmlDecl)(doc) && doc->root.content)
43604 0 0 if (node->line > 1 || node->column != 1)
0 0 if (node->line > 1 || node->column != 1)
43611 0 3 if (InsertMisc( &doc->root, node ))
43614 0 3 if (node->type == DocTypeTag)
43616 0 0 if (doctype == NULL)
43629 0 3 if (node->type == EndTag)
43636 3 0 if (node->type == StartTag && nodeIsHTML(node))
3 0 if (node->type == StartTag && nodeIsHTML(node))
3 0 if (node->type == StartTag && nodeIsHTML(node))
0 3 if (node->type == StartTag && nodeIsHTML(node))
43642 0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
43650 0 0 if ( !htmlOut )
43658 3 0 if ( node->type != StartTag || !nodeIsHTML(node) )
3 0 if ( node->type != StartTag || !nodeIsHTML(node) )
3 0 if ( node->type != StartTag || !nodeIsHTML(node) )
3 0 if ( node->type != StartTag || !nodeIsHTML(node) )
43671 3 0 if (!TY_(FindDocType)(doc))
43674 3 0 if ((dtmode != TidyDoctypeOmit) && !showingBodyOnly(doc))
1 2 if ((dtmode != TidyDoctypeOmit) && !showingBodyOnly(doc))
43676 0 3 if ((dtmode != TidyDoctypeAuto) && (dtmode != TidyDoctypeHtml5))
0 0 if ((dtmode != TidyDoctypeAuto) && (dtmode != TidyDoctypeHtml5))
43691 0 3 if ( cfg( doc, TidyAccessibilityCheckLevel ) > 0 )
43694 0 3 if (!TY_(FindHTML)(doc))
43703 2 1 if (!node)
43707 0 2 if (!showingBodyOnly(doc))
43713 0 1 else if (!node->content && !showingBodyOnly(doc))
0 0 else if (!node->content && !showingBodyOnly(doc))
43716 0 0 if (TY_(IsHTML5Mode)(doc))
43727 0 3 if (cfgBool(doc, TidyEncloseBodyText))
43729 0 3 if (cfgBool(doc, TidyEncloseBlockText))
43738 0 0 for (attribute = element->attributes; attribute; attribute = attribute->next)
43740 0 0 if (attrIsXML_SPACE(attribute))
0 0 if (attrIsXML_SPACE(attribute))
0 0 if (attrIsXML_SPACE(attribute))
43742 0 0 if (AttrValueIs(attribute, "preserve"))
0 0 if (AttrValueIs(attribute, "preserve"))
0 0 if (AttrValueIs(attribute, "preserve"))
43749 0 0 if (element->element == NULL)
43753 0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
43754 0 0 nodeIsSCRIPT(element) ||
0 0 nodeIsSCRIPT(element) ||
0 0 nodeIsSCRIPT(element) ||
43755 0 0 nodeIsSTYLE(element) ||
43760 0 0 if ( TY_(tmbstrcasecmp)(element->element, "xsl:text") == 0 )
43776 0 0 if ( TY_(XMLPreserveWhiteSpace)(doc, element) )
43779 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
43781 0 0 if (node->type == EndTag &&
0 0 if (node->type == EndTag &&
43791 0 0 if (node->type == EndTag)
43793 0 0 if (element)
43803 0 0 if (node->type == StartTag)
43816 0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
43818 0 0 if ( lexer->lexbuf[node->start] == ' ' )
43822 0 0 if (node->start >= node->end)
43834 0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
43836 0 0 if ( lexer->lexbuf[node->end - 1] == ' ' )
43840 0 0 if (node->start >= node->end)
43854 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43857 0 0 if (node->type == EndTag)
43865 0 0 if (InsertMisc( &doc->root, node))
43868 0 0 if (node->type == DocTypeTag)
43870 0 0 if (doctype == NULL)
43883 0 0 if (node->type == StartEndTag)
43890 0 0 if (node->type == StartTag)
43902 0 0 if ( cfgBool(doc, TidyXmlDecl) )
44141 0 0 for (i = 0; unicode4cat[i].code && unicode4cat[i].code <= c; ++i)
0 0 for (i = 0; unicode4cat[i].code && unicode4cat[i].code <= c; ++i)
44142 0 0 if (unicode4cat[i].code == c)
44145 0 0 if (unicode4cat[i].category == UCPS ||
0 0 if (unicode4cat[i].category == UCPS ||
44158 0 0 if ((c & 0xFF00) == 0xA100)
44161 0 0 if ( c > 0xA15C && c < 0xA1AD && (c & 1) == 1 )
0 0 if ( c > 0xA15C && c < 0xA1AD && (c & 1) == 1 )
0 0 if ( c > 0xA15C && c < 0xA1AD && (c & 1) == 1 )
44196 3 0 if ( buflen == 0 )
44198 0 3 while ( len >= buflen )
44202 3 0 if ( ip )
44225 0 0 return ind->attrStringStart = ( inString ? -1 : (int) pprint->linelen );
44230 0 15 return ( ind->attrStringStart >= 0 &&
0 0 return ( ind->attrStringStart >= 0 &&
44237 1 0 return ( ind->attrStringStart == 0 ||
0 1 return ( ind->attrStringStart == 0 ||
44238 0 0 (ind->attrStringStart > 0 && ind->attrStringStart < wrap) );
44245 0 0 if (!element)
44248 0 0 for (node = element->content; node; node = node->next)
44249 0 0 if ( TY_(nodeIsText)(node) )
44269 1 0 return ( ind->attrValStart == 0 ||
0 1 return ( ind->attrValStart == 0 ||
44270 0 0 (ind->attrValStart > 0 && ind->attrValStart < wrap) );
44277 0 16 if ( wantIt )
44280 0 0 wantIt = ( ( !IsWrapInAttrVal(pprint) || indentAttrs ) &&
44301 0 0 if ( onoff )
44309 2 204 if ( string_index + 1 >= pprint->lbufsize )
44323 1 8 if ( string_index + len >= pprint->lbufsize )
44326 28 9 for ( ix=0; ix
44344 9 0 if ( wrap )
44346 2 7 if ( pprint->indent[0].spaces < 0 )
44350 0 0 else if ( pprint->ixInd == 0 )
44361 0 0 if ( *valFrom > (int) wrapPoint )
44376 0 0 if ( wrap )
44378 0 0 if ( ind[0].spaces < 0 )
44382 0 0 else if ( pprint->ixInd == 0 )
44404 0 16 if ( pprint->ixInd > 0 )
44410 10 6 if ( pprint->wraphere > 0 )
44413 0 10 if ( ind[0].attrStringStart > wrap )
44415 0 10 if ( ind[0].attrValStart > wrap )
44420 0 6 if ( ind[0].attrStringStart > 0 )
44422 0 6 if ( ind[0].attrValStart > 0 )
44433 1 0 if ( pprint->linelen > pprint->wraphere )
44439 1 0 if ( ! IsWrapInAttrVal(pprint) )
44441 1 0 while ( q < end && *q == ' ' )
0 1 while ( q < end && *q == ' ' )
44445 46 1 while ( q < end )
44471 0 0 if (spaces && (indent_char == '\t') && tabsize)
0 0 if (spaces && (indent_char == '\t') && tabsize)
0 0 if (spaces && (indent_char == '\t') && tabsize)
44474 0 0 if (spaces == 0) // with a minimum of one
44477 0 0 for (i = 0; i < spaces; i++)
44491 0 1 if ( pprint->wraphere == 0 )
44494 0 1 if ( WantIndent(doc) )
44497 31 1 for ( i = 0; i < pprint->wraphere; ++i )
44500 0 1 if ( IsWrapInString(pprint) )
44515 0 15 if ( GetSpaces(pprint) + pprint->linelen >= cfg(doc, TidyWrapLen) )
44526 1 36 if ( GetSpaces(pprint) + pprint->linelen >= cfg(doc, TidyWrapLen) )
44529 0 1 if ( pprint->indent[ 0 ].spaces < 0 )
44547 0 0 if ( WantIndent(doc) )
44550 0 0 for ( i = 0; i < pprint->wraphere; ++i )
44553 0 0 if ( IsWrapInString(pprint) )
44571 0 15 if ( WantIndent(doc) )
44574 203 15 for ( i = 0; i < pprint->linelen; ++i )
44577 0 15 if ( IsInString(pprint) )
44587 5 0 if ( pprint->linelen > 0 )
44593 0 5 if (pprint->indent[ 0 ].spaces != (int)indent )
44606 0 0 if ( pprint->linelen > 0 )
44615 0 0 if ( pprint->indent[ 0 ].spaces != (int)indent )
44634 8 0 if ( pprint->linelen > 0 )
44638 8 0 if(TidyAddVS) {
44643 0 8 if ( pprint->indent[ 0 ].spaces != (int)indent )
44656 2 11 if ( pprint->linelen > 0 )
44661 2 0 if(TidyAddVS) {
44672 1 12 if (pprint->indent[ 0 ].spaces != (int)indent)
44689 7 89 if ( c == ' ' && !(mode & (PREFORMATTED | COMMENT | ATTRIBVALUE | CDATA)))
0 7 if ( c == ' ' && !(mode & (PREFORMATTED | COMMENT | ATTRIBVALUE | CDATA)))
44692 0 0 if (mode & NOWRAP)
44696 0 0 if ( cfgBool(doc, TidyNumEntities) || cfgBool(doc, TidyXmlTags) )
0 0 if ( cfgBool(doc, TidyNumEntities) || cfgBool(doc, TidyXmlTags) )
44706 0 96 if ( mode & (COMMENT | CDATA) )
44713 96 0 if ( !(mode & CDATA) )
44715 0 96 if ( c == '<')
44721 0 96 if ( c == '>')
44732 0 96 if ( c == '&' && cfgBool(doc, TidyQuoteAmpersand)
0 0 if ( c == '&' && cfgBool(doc, TidyQuoteAmpersand)
44733 0 0 && !cfgBool(doc, TidyPreserveEntities)
44734 0 0 && ( mode != OtherNamespace) ) /* #130 MathML attr and entity fix! */
44740 0 96 if ( c == '"' && qmark )
0 0 if ( c == '"' && qmark )
44746 0 96 if ( c == '\'' && qmark )
0 0 if ( c == '\'' && qmark )
44752 0 96 if ( c == 160 && outenc != RAW )
0 0 if ( c == 160 && outenc != RAW )
44754 0 0 if ( cfgBool(doc, TidyQuoteNbsp) )
44756 0 0 if ( cfgBool(doc, TidyNumEntities) ||
0 0 if ( cfgBool(doc, TidyNumEntities) ||
44776 11 85 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
0 11 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
44779 0 0 if (wp == WrapBefore)
44781 0 0 else if (wp == WrapAfter)
44790 0 0 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
0 0 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
44793 0 0 if (wp == WrapBefore)
44795 0 0 else if (wp == WrapAfter)
44810 0 96 if ( outenc == LATIN1 )
44812 0 0 if (c > 255) /* multi byte chars */
44815 0 0 if ( !cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
0 0 if ( !cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
44824 0 0 if (c > 126 && c < 160)
0 0 if (c > 126 && c < 160)
44836 96 0 if ( outenc == UTF8 )
44843 0 0 if ( outenc == UTF16 || outenc == UTF16LE || outenc == UTF16BE )
0 0 if ( outenc == UTF16 || outenc == UTF16LE || outenc == UTF16BE )
0 0 if ( outenc == UTF16 || outenc == UTF16LE || outenc == UTF16BE )
44850 0 0 if ( cfgBool(doc, TidyXmlTags) )
44853 0 0 if ( c > 127 && outenc == ASCII )
0 0 if ( c > 127 && outenc == ASCII )
44866 0 0 if ( outenc == ASCII && (c > 126 || (c < ' ' && c != '\t')) )
0 0 if ( outenc == ASCII && (c > 126 || (c < ' ' && c != '\t')) )
0 0 if ( outenc == ASCII && (c > 126 || (c < ' ' && c != '\t')) )
0 0 if ( outenc == ASCII && (c > 126 || (c < ' ' && c != '\t')) )
44869 0 0 if (!cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
0 0 if (!cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
44883 0 6 if ( ixWS > 0 )
44904 0 4 if ( ixNL > 0 )
44908 16 4 for ( ix = start; ix < end; ++ix )
44921 0 16 if ( c > 0x7F )
44924 2 14 if ( c == '\n' )
44930 0 14 else if (( c == '&' ) && (TY_(HTMLVersion)(doc) == HT50) &&
0 0 else if (( c == '&' ) && (TY_(HTMLVersion)(doc) == HT50) &&
0 0 else if (( c == '&' ) && (TY_(HTMLVersion)(doc) == HT50) &&
44931 0 0 (((ix + 1) == end) || (((ix + 1) < end) && (isspace(doc->lexer->lexbuf[ix+1] & 0xff)))) )
0 0 (((ix + 1) == end) || (((ix + 1) < end) && (isspace(doc->lexer->lexbuf[ix+1] & 0xff)))) )
44954 0 4 if ( wrappable )
44958 4 0 if ( value && value[0] == '<' )
0 4 if ( value && value[0] == '<' )
44960 0 0 if ( value[1] == '%' || value[1] == '@'||
44965 0 4 if ( delim == 0 )
44971 0 4 if ( !cfgBool(doc, TidyXmlOut) || cfgBool(doc, TidyXhtmlOut) )
0 0 if ( !cfgBool(doc, TidyXmlOut) || cfgBool(doc, TidyXhtmlOut) )
44983 4 0 if ( value )
44989 82 4 while (*value != '\0')
44993 0 82 if ( wrappable && c == ' ' )
0 0 if ( wrappable && c == ' ' )
44996 0 82 if ( wrappable && pprint->wraphere > 0 &&
45000 0 82 if ( c == delim )
45002 0 0 ctmbstr entity = (c == '"' ? """ : "'");
45007 0 82 else if (c == '"')
45009 0 0 if ( cfgBool(doc, TidyQuoteMarks) )
45014 0 0 if ( delim == '\'' && scriptAttr && scriptlets )
0 0 if ( delim == '\'' && scriptAttr && scriptlets )
0 0 if ( delim == '\'' && scriptAttr && scriptlets )
45020 0 82 else if ( c == '\'' )
45022 0 0 if ( cfgBool(doc, TidyQuoteMarks) )
45027 0 0 if ( delim == '"' && scriptAttr && scriptlets )
0 0 if ( delim == '"' && scriptAttr && scriptlets )
0 0 if ( delim == '"' && scriptAttr && scriptlets )
45035 0 82 if ( c > 0x7F )
45039 0 82 if ( c == '\n' )
45042 0 0 TY_(PFlushLine)( doc, (strStart < 0
45043 0 0 && !cfgBool(doc, TidyLiteralAttribs) ?
45059 0 4 if ( node->element == NULL )
45063 2 0 !ShouldIndent(doc, node->parent ? node->parent: node) )
45066 0 0 if ( NULL != (node = TY_(FindContainer)(node)) )
45097 4 0 if (!indAttrs)
45100 0 4 if ( indAttrs )
45102 0 0 if ( TY_(nodeIsElement)(node) && !first )
0 0 if ( TY_(nodeIsElement)(node) && !first )
45113 4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
45115 0 4 if ( TY_(IsScript)(doc, name) )
45117 4 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
4 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 1 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
3 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
2 1 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
2 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
2 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
2 0 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
0 2 else if (!(attrIsCONTENT(attr) || attrIsVALUE(attr) || attrIsALT(attr) || attrIsTITLE(attr)) && wrapAttrs )
45121 2 2 if ( !first && !SetWrap(doc, indent) )
0 2 if ( !first && !SetWrap(doc, indent) )
45125 4 0 else if ( pprint->linelen > 0 )
45131 17 4 while (*name)
45135 0 17 if (c > 0x7F)
45137 0 17 else if (ucAttrs == TidyUppercaseYes)
45146 0 4 if ( attr->value == NULL )
45151 0 0 if ( xmlOut )
45152 0 0 PPrintAttrValue( doc, indent, isB ? attr->attribute : NULLSTR,
45155 0 0 else if ( !isB && !TY_(IsNewNode)(node) )
0 0 else if ( !isB && !TY_(IsNewNode)(node) )
45171 0 9 if ( cfgBool(doc, TidyXmlOut) && cfgBool(doc, TidyXmlSpace) &&
45172 0 0 !TY_(GetAttrByName)(node, "xml:space") &&
45178 4 9 for ( av = node->attributes; av; av = av->next )
45180 4 0 if ( av->attribute != NULL )
45184 0 0 else if ( av->asp != NULL )
45189 0 0 else if ( av->php != NULL )
45199 0 0 if (TY_(nodeIsText)(node) && node->end > node->start)
0 0 if (TY_(nodeIsText)(node) && node->end > node->start)
45202 0 0 for (i = node->start; i < node->end; ++i)
45205 0 0 if ( c > 0x7F )
45209 0 0 if ( c == ' ' || c == '\n' )
0 0 if ( c == ' ' || c == '\n' )
45233 7 0 if ( !TY_(nodeCMIsInline)(node) )
45237 0 0 if (prev)
45239 0 0 if (TY_(nodeIsText)(prev))
45241 0 0 else if (nodeIsBR(prev))
0 0 else if (nodeIsBR(prev))
0 0 else if (nodeIsBR(prev))
45247 0 0 if ( isEmpty && !TY_(nodeCMIsInline)(node->parent) )
0 0 if ( isEmpty && !TY_(nodeCMIsInline)(node->parent) )
45279 0 0 if ( !node )
45281 0 0 if ( !node->tag )
45284 0 0 if (nodeIsAREA(node))
0 0 if (nodeIsAREA(node))
0 0 if (nodeIsAREA(node))
45286 0 0 if (nodeIsBASE(node))
0 0 if (nodeIsBASE(node))
0 0 if (nodeIsBASE(node))
45288 0 0 if (nodeIsBR(node))
0 0 if (nodeIsBR(node))
0 0 if (nodeIsBR(node))
45290 0 0 if (nodeIsCOL(node))
0 0 if (nodeIsCOL(node))
0 0 if (nodeIsCOL(node))
45293 0 0 if (id == TidyTag_COMMAND)
45295 0 0 if (nodeIsEMBED(node))
0 0 if (nodeIsEMBED(node))
0 0 if (nodeIsEMBED(node))
45297 0 0 if (nodeIsHR(node))
0 0 if (nodeIsHR(node))
0 0 if (nodeIsHR(node))
45299 0 0 if (nodeIsIMG(node))
0 0 if (nodeIsIMG(node))
0 0 if (nodeIsIMG(node))
45301 0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
45304 0 0 if (id == TidyTag_KEYGEN )
45306 0 0 if (nodeIsLINK(node))
0 0 if (nodeIsLINK(node))
0 0 if (nodeIsLINK(node))
45308 0 0 if (nodeIsMETA(node))
0 0 if (nodeIsMETA(node))
0 0 if (nodeIsMETA(node))
45310 0 0 if (nodeIsPARAM(node))
0 0 if (nodeIsPARAM(node))
0 0 if (nodeIsPARAM(node))
45313 0 0 if (id == TidyTag_SOURCE )
45316 0 0 if (id == TidyTag_TRACK )
45318 0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
45336 0 9 if ( node->type == EndTag )
45339 9 0 if (s)
45341 29 9 while (*s)
45345 0 29 if (c > 0x7F)
45347 0 29 else if (uc)
45357 9 0 if ( (xmlOut || xhtmlOut) &&
0 9 if ( (xmlOut || xhtmlOut) &&
0 0 if ( (xmlOut || xhtmlOut) &&
45358 0 0 (node->type == StartEndTag || TY_(nodeCMIsEmpty)(node)) )
45373 0 9 if ((node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50) && !TY_(isVoidElement)(node) )
0 0 if ((node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50) && !TY_(isVoidElement)(node) )
0 0 if ((node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50) && !TY_(isVoidElement)(node) )
45378 0 9 if ( (node->type != StartEndTag || xhtmlOut || (node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50)) && !(mode & PREFORMATTED) )
0 0 if ( (node->type != StartEndTag || xhtmlOut || (node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50)) && !(mode & PREFORMATTED) )
0 0 if ( (node->type != StartEndTag || xhtmlOut || (node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50)) && !(mode & PREFORMATTED) )
0 0 if ( (node->type != StartEndTag || xhtmlOut || (node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50)) && !(mode & PREFORMATTED) )
9 0 if ( (node->type != StartEndTag || xhtmlOut || (node->type == StartEndTag && TY_(HTMLVersion)(doc) == HT50)) && !(mode & PREFORMATTED) )
45383 9 0 if ( indent + pprint->linelen < wraplen )
45391 8 1 if (!(mode & NOWRAP)
45392 1 7 && (!TY_(nodeCMIsInline)(node) || nodeIsBR(node))
1 0 && (!TY_(nodeCMIsInline)(node) || nodeIsBR(node))
1 0 && (!TY_(nodeCMIsInline)(node) || nodeIsBR(node))
0 1 && (!TY_(nodeCMIsInline)(node) || nodeIsBR(node))
45393 7 0 && AfterSpace(doc->lexer, node))
45401 0 0 else if ( mode & NOWRAP ||
0 0 else if ( mode & NOWRAP ||
45402 0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
45417 7 0 if (s)
45419 22 7 while (*s)
45423 0 22 if (c > 0x7F)
45425 0 22 else if (uc)
45447 0 0 if ( node->linebreak && node->next )
0 0 if ( node->linebreak && node->next )
45466 1 0 if (node->element)
45471 1 0 if (fpi && fpi->value)
0 1 if (fpi && fpi->value)
45479 1 0 if (fpi && fpi->value && sys && sys->value)
0 1 if (fpi && fpi->value && sys && sys->value)
0 0 if (fpi && fpi->value && sys && sys->value)
0 0 if (fpi && fpi->value && sys && sys->value)
45482 0 0 if (!(i>0&&TY_(tmbstrlen)(sys->value)+2+i
0 0 if (!(i>0&&TY_(tmbstrlen)(sys->value)+2+i
0 0 if (!(i>0&&TY_(tmbstrlen)(sys->value)+2+i
0 0 if (!(i>0&&TY_(tmbstrlen)(sys->value)+2+i
45486 0 0 if (pprint->linelen)
45489 0 1 else if (sys && sys->value)
0 0 else if (sys && sys->value)
45494 0 1 if (sys && sys->value)
0 0 if (sys && sys->value)
45501 0 1 if (node->content)
45525 0 0 while (s && *s)
0 0 while (s && *s)
45528 0 0 if (c > 0x7F)
45537 0 0 if (cfgBool(doc, TidyXmlOut) ||
0 0 if (cfgBool(doc, TidyXmlOut) ||
45538 0 0 cfgBool(doc, TidyXhtmlOut) || node->closed)
45562 0 0 if ( NULL != (att = TY_(AttrGetById)(node, TidyAttr_VERSION)) )
45564 0 0 if ( NULL != (att = TY_(AttrGetById)(node, TidyAttr_ENCODING)) )
45566 0 0 if ( NULL != (att = TY_(GetAttrByName)(node, "standalone")) )
45572 0 0 if ( node->end <= 0 || doc->lexer->lexbuf[node->end - 1] != '?' )
0 0 if ( node->end <= 0 || doc->lexer->lexbuf[node->end - 1] != '?' )
45585 0 0 unsigned int saveWrap = WrapOffCond( doc, !wrapAsp || !wrapJste );
0 0 unsigned int saveWrap = WrapOffCond( doc, !wrapAsp || !wrapJste );
45588 0 0 PPrintText( doc, (wrapAsp ? CDATA : COMMENT), indent, node );
45603 0 0 PPrintText( doc, (cfgBool(doc, TidyWrapJste) ? CDATA : COMMENT),
45623 0 0 if (wrapPhp)
45634 0 0 if ( !indentCData )
45655 0 0 PPrintText( doc, (wrapSect ? CDATA : COMMENT),
45677 0 0 if ( nodeIsHEAD(node) )
0 0 if ( nodeIsHEAD(node) )
0 0 if ( nodeIsHEAD(node) )
45680 0 0 if ( node->parent != NULL )
45694 0 4 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsText)(node) && node->end > node->start )
0 0 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsText)(node) && node->end > node->start )
0 0 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsText)(node) && node->end > node->start )
45701 0 0 while ( ix > node->start && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while ( ix > node->start && (ch = (lexer->lexbuf[ix] & 0xff))
45702 0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
45705 0 0 if ( lexer->lexbuf[ ix ] == '\n' )
45722 0 0 if ( TY_(nodeIsText)(node) )
45724 0 0 if ( node->type == AspTag )
45726 0 0 if (node->type == PhpTag)
45734 0 6 assert( node != NULL );
45735 0 6 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsTextLike)(node) && node->end > node->start && start >= node->start )
0 0 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsTextLike)(node) && node->end > node->start && start >= node->start )
0 0 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsTextLike)(node) && node->end > node->start && start >= node->start )
0 0 if ( (mode & (CDATA|COMMENT)) && TY_(nodeIsTextLike)(node) && node->end > node->start && start >= node->start )
45739 0 0 while ( ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while ( ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
45740 0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
45743 0 0 if ( ix > start )
45757 0 0 if ( node->type != TextNode )
45775 0 0 if ( InsideHead(doc, node) )
45785 0 0 if ( node->content != NULL )
45788 0 0 if ( xhtmlOut && node->content != NULL )
0 0 if ( xhtmlOut && node->content != NULL )
45792 0 0 if (AttrValueIs(type, "text/javascript"))
0 0 if (AttrValueIs(type, "text/javascript"))
0 0 if (AttrValueIs(type, "text/javascript"))
45797 0 0 else if (AttrValueIs(type, "text/css"))
0 0 else if (AttrValueIs(type, "text/css"))
0 0 else if (AttrValueIs(type, "text/css"))
45802 0 0 else if (AttrValueIs(type, "text/vbscript"))
0 0 else if (AttrValueIs(type, "text/vbscript"))
0 0 else if (AttrValueIs(type, "text/vbscript"))
45810 0 0 if (!hasCData)
45823 0 0 for ( content = node->content;
45835 0 0 if ( content == node->last )
45841 0 0 if ( contentIndent < 0 && node->content != NULL )
0 0 if ( contentIndent < 0 && node->content != NULL )
45847 0 0 if ( xhtmlOut && node->content != NULL )
0 0 if ( xhtmlOut && node->content != NULL )
45849 0 0 if ( ! hasCData )
45862 0 0 if ( node->content && pprint->indent[ 0 ].spaces != (int)indent )
0 0 if ( node->content && pprint->indent[ 0 ].spaces != (int)indent )
45870 0 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState
45872 0 0 !( TY_(nodeHasCM)(node, CM_INLINE) || TY_(nodeIsText)(node) ) )
45881 20 0 if ( indentContent == TidyNoState )
45884 0 0 if ( nodeIsTEXTAREA(node) )
0 0 if ( nodeIsTEXTAREA(node) )
0 0 if ( nodeIsTEXTAREA(node) )
45887 0 0 if ( indentContent == TidyAutoState )
45889 0 0 if ( node->content && TY_(nodeHasCM)(node, CM_NO_INDENT) )
0 0 if ( node->content && TY_(nodeHasCM)(node, CM_NO_INDENT) )
45891 0 0 for ( node = node->content; node; node = node->next )
45892 0 0 if ( TY_(nodeHasCM)(node, CM_BLOCK) )
45897 0 0 if ( TY_(nodeHasCM)(node, CM_HEADING) )
45900 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
45903 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
45906 0 0 if ( nodeIsTITLE(node) )
0 0 if ( nodeIsTITLE(node) )
0 0 if ( nodeIsTITLE(node) )
45911 0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
0 0 if ( nodeIsDIV(node) && node->last && nodeIsIMG(node->last) )
45915 0 0 if ( TY_(nodeHasCM)(node, CM_FIELD | CM_OBJECT) )
45918 0 0 if ( nodeIsMAP(node) )
0 0 if ( nodeIsMAP(node) )
0 0 if ( nodeIsMAP(node) )
45921 0 0 return ( !TY_(nodeHasCM)( node, CM_INLINE ) && node->content );
0 0 return ( !TY_(nodeHasCM)( node, CM_INLINE ) && node->content );
45936 2 0 if ( node )
45938 3 2 for ( node = node->content; node != NULL; node = node->next )
45952 0 0 for ( content = node->content; content; content = content->next )
45964 0 15 if ( node == NULL )
45967 0 15 if (doc->progressCallback)
45976 4 11 if (node->type == TextNode)
45980 0 11 else if ( node->type == CommentTag )
45984 1 10 else if ( node->type == RootNode )
45986 2 1 for ( content = node->content; content; content = content->next )
45989 1 9 else if ( node->type == DocTypeTag )
45991 0 9 else if ( node->type == ProcInsTag)
45993 0 9 else if ( node->type == XmlDecl)
45995 0 9 else if ( node->type == CDATATag)
45997 0 9 else if ( node->type == SectionTag)
45999 0 9 else if ( node->type == AspTag)
46001 0 9 else if ( node->type == JsteTag)
46003 0 9 else if ( node->type == PhpTag)
46005 9 0 else if ( nodeIsMATHML(node) )
9 0 else if ( nodeIsMATHML(node) )
0 9 else if ( nodeIsMATHML(node) )
46007 7 2 else if ( TY_(nodeCMIsEmpty)(node) ||
0 7 else if ( TY_(nodeCMIsEmpty)(node) ||
46008 0 0 (node->type == StartEndTag && !xhtml) )
46014 1 1 if ( ! TY_(nodeHasCM)(node, CM_INLINE) )
46017 2 0 if ( nodeIsBR(node) && node->prev &&
2 0 if ( nodeIsBR(node) && node->prev &&
0 2 if ( nodeIsBR(node) && node->prev &&
0 0 if ( nodeIsBR(node) && node->prev &&
0 0 if ( nodeIsBR(node) && node->prev &&
46018 0 0 !(nodeIsBR(node->prev) || (mode & PREFORMATTED)) &&
0 0 !(nodeIsBR(node->prev) || (mode & PREFORMATTED)) &&
0 0 !(nodeIsBR(node->prev) || (mode & PREFORMATTED)) &&
0 0 !(nodeIsBR(node->prev) || (mode & PREFORMATTED)) &&
46022 2 0 if ( nodeIsHR(node) )
2 0 if ( nodeIsHR(node) )
0 2 if ( nodeIsHR(node) )
46026 0 0 if (classic && node->parent && node->parent->content != node)
0 0 if (classic && node->parent && node->parent->content != node)
0 0 if (classic && node->parent && node->parent->content != node)
46034 1 1 if (node->next)
46036 1 0 if (nodeIsPARAM(node) || nodeIsAREA(node))
1 0 if (nodeIsPARAM(node) || nodeIsAREA(node))
1 0 if (nodeIsPARAM(node) || nodeIsAREA(node))
1 0 if (nodeIsPARAM(node) || nodeIsAREA(node))
1 0 if (nodeIsPARAM(node) || nodeIsAREA(node))
0 1 if (nodeIsPARAM(node) || nodeIsAREA(node))
46038 1 0 else if ((nodeIsBR(node) && !(mode & PREFORMATTED))
1 0 else if ((nodeIsBR(node) && !(mode & PREFORMATTED))
0 1 else if ((nodeIsBR(node) && !(mode & PREFORMATTED))
0 0 else if ((nodeIsBR(node) && !(mode & PREFORMATTED))
46039 1 0 || nodeIsHR(node))
1 0 || nodeIsHR(node))
0 1 || nodeIsHR(node))
46045 0 7 if ( node->type == StartEndTag )
46048 7 0 if ( node->tag &&
6 1 if ( node->tag &&
46049 6 0 (node->tag->parser == TY_(ParsePre) || nodeIsTEXTAREA(node)) )
6 0 (node->tag->parser == TY_(ParsePre) || nodeIsTEXTAREA(node)) )
0 6 (node->tag->parser == TY_(ParsePre) || nodeIsTEXTAREA(node)) )
46057 0 1 if (classic && node->parent && node->parent->content != node)
0 0 if (classic && node->parent && node->parent->content != node)
0 0 if (classic && node->parent && node->parent->content != node)
46068 1 1 for ( content = node->content; content; content = content->next )
46078 1 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState
46079 0 1 && node->next != NULL )
46082 6 0 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
6 0 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
6 0 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
6 0 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
6 0 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
0 6 else if ( nodeIsSTYLE(node) || nodeIsSCRIPT(node) )
46087 0 6 else if ( TY_(nodeCMIsInline)(node) )
46089 0 0 if ( cfgBool(doc, TidyMakeClean) )
46092 0 0 if ( nodeIsNOBR(node) )
0 0 if ( nodeIsNOBR(node) )
0 0 if ( nodeIsNOBR(node) )
46094 0 0 for ( content = node->content;
46106 0 0 if ( ShouldIndent(doc, node) )
46111 0 0 for ( content = node->content;
46122 0 0 for ( content = node->content;
46139 0 6 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
0 0 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
0 0 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
0 0 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
0 0 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
0 0 if (classic && node->parent && node->parent->content != node && !nodeIsHTML(node))
46144 0 6 if ( ShouldIndent(doc, node) )
46160 0 6 if ( !hideend || !TY_(nodeHasCM)(node, CM_OMITST) ||
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OMITST) ||
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OMITST) ||
46165 0 6 if ( ShouldIndent(doc, node) )
46169 0 0 if (!(nodeIsLI(node) && TY_(nodeIsText)(node->content)))
0 0 if (!(nodeIsLI(node) && TY_(nodeIsText)(node->content)))
0 0 if (!(nodeIsLI(node) && TY_(nodeIsText)(node->content)))
0 0 if (!(nodeIsLI(node) && TY_(nodeIsText)(node->content)))
46172 3 3 else if ( TY_(nodeHasCM)(node, CM_HTML) || nodeIsNOFRAMES(node) ||
3 0 else if ( TY_(nodeHasCM)(node, CM_HTML) || nodeIsNOFRAMES(node) ||
3 0 else if ( TY_(nodeHasCM)(node, CM_HTML) || nodeIsNOFRAMES(node) ||
46173 1 0 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node)) )
1 0 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node)) )
0 1 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node)) )
46176 0 0 else if ( ShouldIndent(doc, node) )
46187 8 6 for ( content = node->content; content; content = content->next )
46190 2 6 if ( last && !indcont && TY_(nodeIsText)(last) &&
2 0 if ( last && !indcont && TY_(nodeIsText)(last) &&
0 2 if ( last && !indcont && TY_(nodeIsText)(last) &&
0 0 if ( last && !indcont && TY_(nodeIsText)(last) &&
46191 0 0 content->tag && !TY_(nodeHasCM)(content, CM_INLINE) )
46202 6 0 if ( ShouldIndent(doc, node) ||
6 0 if ( ShouldIndent(doc, node) ||
46203 3 3 ( !hideend &&
46204 3 0 ( TY_(nodeHasCM)(node, CM_HTML) ||
46205 3 0 nodeIsNOFRAMES(node) ||
46206 1 0 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node))
1 0 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node))
0 1 (TY_(nodeHasCM)(node, CM_HEAD) && !nodeIsTITLE(node))
46212 0 3 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
46220 0 3 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
46223 0 3 if ( classic && !HasMixedContent(node) )
0 0 if ( classic && !HasMixedContent(node) )
46227 0 0 else if (hideend)
46231 0 0 if (pprint->indent[ 0 ].spaces != (int)indent)
46241 6 0 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
6 0 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
6 0 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
6 0 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
5 1 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
5 0 if (!indcont && !hideend && !nodeIsHTML(node) && !classic)
46243 0 1 else if (classic && node->next != NULL && TY_(nodeHasCM)(node, CM_LIST|CM_DEFLIST|CM_TABLE|CM_BLOCK/*|CM_HEADING*/))
0 0 else if (classic && node->next != NULL && TY_(nodeHasCM)(node, CM_LIST|CM_DEFLIST|CM_TABLE|CM_BLOCK/*|CM_HEADING*/))
0 0 else if (classic && node->next != NULL && TY_(nodeHasCM)(node, CM_LIST|CM_DEFLIST|CM_TABLE|CM_BLOCK/*|CM_HEADING*/))
46252 0 0 if (node == NULL)
46255 0 0 if (doc->progressCallback)
46260 0 0 if ( node->type == TextNode)
46264 0 0 else if ( node->type == CommentTag )
46270 0 0 else if ( node->type == RootNode )
46273 0 0 for ( content = node->content;
46278 0 0 else if ( node->type == DocTypeTag )
46280 0 0 else if ( node->type == ProcInsTag )
46282 0 0 else if ( node->type == XmlDecl )
46284 0 0 else if ( node->type == CDATATag )
46286 0 0 else if ( node->type == SectionTag )
46288 0 0 else if ( node->type == AspTag )
46290 0 0 else if ( node->type == JsteTag)
46292 0 0 else if ( node->type == PhpTag)
46294 0 0 else if ( TY_(nodeHasCM)(node, CM_EMPTY) ||
0 0 else if ( TY_(nodeHasCM)(node, CM_EMPTY) ||
46295 0 0 (node->type == StartEndTag && !xhtmlOut) )
46308 0 0 for ( content = node->content; content; content = content->next )
46310 0 0 if ( TY_(nodeIsText)(content) )
46319 0 0 if ( TY_(XMLPreserveWhiteSpace)(doc, node) )
46325 0 0 else if (mixed)
46331 0 0 if ( !mixed && node->content )
0 0 if ( !mixed && node->content )
46334 0 0 for ( content = node->content; content; content = content->next )
46337 0 0 if ( !mixed && node->content )
0 0 if ( !mixed && node->content )
46843 4 0 if ( stderrStreamOut.sink.sinkData == 0 )
46850 7 0 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
3 4 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
3 0 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
46852 0 3 if ( out->iotype == FileIO )
46890 0 0 if ( TY_(initFileSource)( doc->allocator, &in->source, fp ) != 0 )
46921 0 3 if (c == EndOfStream)
46925 0 3 if (c1 == EndOfStream)
46936 0 3 if ( bom == UNICODE_BOM_BE )
46939 0 0 if ( in->encoding != UTF16 && in->encoding != UTF16BE )
0 0 if ( in->encoding != UTF16 && in->encoding != UTF16BE )
46944 0 3 else if (bom == UNICODE_BOM_LE)
46947 0 0 if (in->encoding != UTF16 && in->encoding != UTF16LE)
0 0 if (in->encoding != UTF16 && in->encoding != UTF16LE)
46956 0 3 if (c2 == EndOfStream)
46963 0 3 if (((c << 16) + (c1 << 8) + c2) == UNICODE_BOM_UTF8)
46966 0 0 if (in->encoding != UTF8)
46990 0 122 if ( in->curlastpos == in->firstlastpos )
47002 0 16 if ( in->firstlastpos == in->curlastpos )
47007 0 16 if ( in->curlastpos == 0 )
47017 16 106 if ( in->pushed )
47022 0 106 if ( in->tabs > 0 )
47033 7 103 if ( EndOfStream == c )
47036 7 96 if (c == '\n')
47043 0 96 if (c == '\t')
47046 0 0 if (!keeptabs) {
47048 0 0 in->tabs = tabsize > 0 ?
47058 0 96 if (c == '\r')
47061 0 0 if (c != '\n')
47076 0 96 if (c == '\033')
47081 0 96 if ( c == '\015' && !cfgBool(in->doc, TidyXmlTags) )
0 0 if ( c == '\015' && !cfgBool(in->doc, TidyXmlTags) )
47084 4 92 if ( c < 32 )
47090 87 5 if (
47093 87 0 || in->encoding == ISO2022
47095 0 87 || in->encoding == UTF8
47096 0 0 || in->encoding == SHIFTJIS /* #431953 - RJ */
47097 0 0 || in->encoding == BIG5 /* #431953 - RJ */
47105 0 0 if ( in->encoding == UTF16LE ||
0 0 if ( in->encoding == UTF16LE ||
47106 0 0 in->encoding == UTF16 ||
47109 0 0 if ( !TY_(IsValidUTF16FromUCS4)(c) )
47115 0 0 else if ( TY_(IsLowSurrogate)(c) )
47119 0 0 if ( m == EndOfStream )
47123 0 0 if ( TY_(IsHighSurrogate)(m) )
47126 0 0 if ( TY_(IsValidCombinedChar)(n) )
47130 0 0 if ( 0 == c )
47151 0 0 if ( 127 < c && c < 160 )
0 0 if ( 127 < c && c < 160 )
47154 0 0 Bool isVendorChar = ( in->encoding == WIN1252 ||
0 0 Bool isVendorChar = ( in->encoding == WIN1252 ||
47159 0 0 if (in->doc->lexer)
47165 0 0 if ( isMacChar )
47169 0 0 if ( c1 )
47172 0 0 if ( c1 == 0 && isVendorChar )
0 0 if ( c1 == 0 && isVendorChar )
47174 0 0 else if ( ! isVendorChar )
47180 0 0 if ( c == 0 )
47193 16 0 if ( in->pushed )
47195 0 16 assert( in->bufpos > 0 );
47197 11 5 if ( in->bufpos == 0 )
47200 0 16 if ( c == '\n' )
47215 2 16 if (c == EndOfStream)
47223 0 16 if (in->bufpos + 1 >= in->bufsize)
47228 0 16 if (c == '\n')
47275 24 234 if ( '\n' == c )
47277 0 24 if ( out->nl == TidyCRLF )
47279 0 24 else if ( out->nl == TidyCR )
47283 0 258 if (out->encoding == MACROMAN)
47287 0 258 else if (out->encoding == WIN1252)
47291 0 258 else if (out->encoding == IBM858)
47295 0 258 else if (out->encoding == LATIN0)
47300 258 0 else if (out->encoding == UTF8)
47305 0 258 if (count <= 0)
47312 0 0 else if (out->encoding == ISO2022)
47314 0 0 if (c == 0x1b) /* ESC */
47321 0 0 if (c == '$')
47323 0 0 else if (c == '(')
47330 0 0 if (c == '(')
47357 0 0 else if ( out->encoding == UTF16LE ||
0 0 else if ( out->encoding == UTF16LE ||
47358 0 0 out->encoding == UTF16BE ||
47364 0 0 if ( !TY_(IsValidUTF16FromUCS4)(c) )
47370 0 0 else if ( TY_(IsCombinedChar)(c) )
47374 0 0 if ( !TY_(SplitSurrogatePair)(c, &theChars[0], &theChars[1]) )
47386 0 0 for (i = 0; i < numChars; i++)
47390 0 0 if (out->encoding == UTF16LE)
47396 0 0 else if (out->encoding == UTF16BE || out->encoding == UTF16)
0 0 else if (out->encoding == UTF16BE || out->encoding == UTF16)
47403 0 0 else if (out->encoding == BIG5 || out->encoding == SHIFTJIS)
0 0 else if (out->encoding == BIG5 || out->encoding == SHIFTJIS)
47405 0 0 if (c < 128)
47437 0 0 if (127 < c && c < 160)
0 0 if (127 < c && c < 160)
47445 0 0 if (c < 128 || (c > 159 && c < 256))
0 0 if (c < 128 || (c > 159 && c < 256))
0 0 if (c < 128 || (c > 159 && c < 256))
47451 0 0 for (i = 128; i < 160; i++)
47452 0 0 if (Win2Unicode[i - 128] == c)
47501 0 0 if (127 < c && c < 256) /* Is. #891 */
0 0 if (127 < c && c < 256) /* Is. #891 */
47508 0 0 if (c < 128)
47514 0 0 for (i = 128; i < 256; i++)
47516 0 0 if (Mac2Unicode[i - 128] == c)
47551 0 0 if (127 < c && c < 256)
0 0 if (127 < c && c < 256)
47560 0 0 if (c < 128)
47565 0 0 for (i = 128; i < 256; i++)
47567 0 0 if (IBM2Unicode[i - 128] == c)
47580 0 0 if (163 < c && c < 191)
0 0 if (163 < c && c < 191)
47624 0 0 Bool status = ( source && srcData && gbFunc && ugbFunc && endFunc );
0 0 Bool status = ( source && srcData && gbFunc && ugbFunc && endFunc );
0 0 Bool status = ( source && srcData && gbFunc && ugbFunc && endFunc );
0 0 Bool status = ( source && srcData && gbFunc && ugbFunc && endFunc );
0 0 Bool status = ( source && srcData && gbFunc && ugbFunc && endFunc );
47626 0 0 if ( status )
47641 0 0 Bool status = ( sink && snkData && pbFunc );
0 0 Bool status = ( sink && snkData && pbFunc );
0 0 Bool status = ( sink && snkData && pbFunc );
47642 0 0 if ( status )
47694 7 103 if ( TY_(IsEOF)(in) )
47699 0 103 if (c == EndOfStream)
47722 0 103 if (in->encoding == ISO2022)
47724 0 0 if (c == 0x1b) /* ESC */
47733 0 0 if (c == '$')
47735 0 0 else if (c == '(')
47742 0 0 if (c == '(')
47768 0 103 if ( in->encoding == UTF16LE )
47771 0 0 if ( EndOfStream == c1 )
47777 103 0 if ((in->encoding == UTF16) || (in->encoding == UTF16BE)) /* UTF-16 is big-endian by default */
0 103 if ((in->encoding == UTF16) || (in->encoding == UTF16BE)) /* UTF-16 is big-endian by default */
47780 0 0 if ( EndOfStream == c1 )
47786 97 6 if ( in->encoding == UTF8 )
47794 97 0 if (!err && (n == (unsigned int)EndOfStream) && (count == 1)) /* EOF */
0 97 if (!err && (n == (unsigned int)EndOfStream) && (count == 1)) /* EOF */
0 0 if (!err && (n == (unsigned int)EndOfStream) && (count == 1)) /* EOF */
47796 0 97 else if (err)
47816 6 0 if ((in->encoding == BIG5) || (in->encoding == SHIFTJIS))
0 6 if ((in->encoding == BIG5) || (in->encoding == SHIFTJIS))
47818 0 0 if (c < 128)
47820 0 0 else if ((in->encoding == SHIFTJIS) && (c >= 0xa1 && c <= 0xdf)) /* 461643 - fix suggested by Rick Cameron 14 Sep 01 */
0 0 else if ((in->encoding == SHIFTJIS) && (c >= 0xa1 && c <= 0xdf)) /* 461643 - fix suggested by Rick Cameron 14 Sep 01 */
0 0 else if ((in->encoding == SHIFTJIS) && (c >= 0xa1 && c <= 0xdf)) /* 461643 - fix suggested by Rick Cameron 14 Sep 01 */
47832 0 0 if ( EndOfStream == c1 )
47847 0 0 if ( out->encoding == UTF8
47848 0 0 || out->encoding == UTF16LE
47849 0 0 || out->encoding == UTF16BE
47850 0 0 || out->encoding == UTF16
47889 12 0 for (i = 0; enc2iana[i].name; ++i)
47890 3 9 if (enc2iana[i].id == id)
47900 0 0 for (i = 0; i < sizeof(enc2iana)/sizeof(enc2iana[0]); ++i)
47901 0 0 if (enc2iana[i].id == id)
47911 0 0 for (i = 0; i < sizeof(enc2iana)/sizeof(enc2iana[0]); ++i)
47912 0 0 if (TY_(tmbstrcasecmp)(charenc, enc2iana[i].tidyOptName) == 0 )
48267 35 13 for (hashval = 0; *s != '\0'; s++)
48278 5 0 if (old)
48295 0 0 for (p = tags->hashtab[h]; p && p->tag; p = p->next)
0 0 for (p = tags->hashtab[h]; p && p->tag; p = p->next)
48297 0 0 if (TY_(tmbstrcmp)(s, p->tag->name) == 0)
48300 0 0 if ( prev )
48316 1246 7 for (i = 0; i < ELEMENT_HASH_SIZE; ++i)
48321 5 1246 while(next)
48337 0 8 if (!s)
48345 3 5 for (p = tags->hashtab[tagsHash(s)]; p && p->tag; p = p->next)
3 0 for (p = tags->hashtab[tagsHash(s)]; p && p->tag; p = p->next)
48346 3 0 if (TY_(tmbstrcmp)(s, p->tag->name) == 0)
48349 341 0 for (np = tag_defs + 1; np < tag_defs + N_TIDY_TAGS; ++np)
48350 5 336 if (TY_(tmbstrcmp)(s, np->name) == 0)
48353 0 0 for (np = tags->declared_tag_list; np; np = np->next)
48354 0 0 if (TY_(tmbstrcmp)(s, np->name) == 0)
48364 0 4 np->name = name ? TY_(tmbstrdup)( doc->allocator, name ) : NULL;
48376 4 0 if ( d )
48385 0 0 if ( name )
48388 0 0 if ( np == NULL )
48396 0 0 if ( np->id == TidyTag_UNKNOWN )
48492 0 8 if ( cfgBool(doc, TidyXmlTags) )
48498 8 0 if ( node->element && (np = tagsLookup(doc, &doc->tags, node->element)) )
8 0 if ( node->element && (np = tagsLookup(doc, &doc->tags, node->element)) )
48506 0 0 if ( TY_(nodeIsAutonomousCustomTag)( doc, node) )
48527 936 0 for (np = tag_defs + 1; np < tag_defs + N_TIDY_TAGS; ++np )
48528 26 910 if (np->id == tid)
48537 0 0 if ( np )
48573 0 0 if ( cm && parser )
0 0 if ( cm && parser )
48587 0 0 for ( curr = (Dict*) *iter; name == NULL && curr != NULL; curr = curr->next )
0 0 for ( curr = (Dict*) *iter; name == NULL && curr != NULL; curr = curr->next )
48592 0 0 if ( (curr->model & CM_EMPTY) != 0 )
48597 0 0 if ( (curr->model & CM_INLINE) != 0 )
48602 0 0 if ( (curr->model & CM_BLOCK) != 0 &&
0 0 if ( (curr->model & CM_BLOCK) != 0 &&
48608 0 0 if ( (curr->model & CM_BLOCK) != 0 &&
0 0 if ( (curr->model & CM_BLOCK) != 0 &&
48646 0 12 for ( curr=tags->declared_tag_list; curr; curr = next )
48661 0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
48666 0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
48674 0 0 if ( deleteIt )
48678 0 0 if ( prev )
48701 0 0 if (np)
48713 0 0 if (np)
48724 0 0 if (np)
48735 0 0 if (np)
48761 3 0 if (np)
48767 3 0 if (np)
48773 3 0 if (np)
48782 3 0 if (np)
48809 1 17 while (attval)
48829 1 0 if ( !HasAlt )
48832 1 0 if ( ( cfg(doc, TidyAccessibilityCheckLevel) == 0 ) && ( !alttext ) )
0 1 if ( ( cfg(doc, TidyAccessibilityCheckLevel) == 0 ) && ( !alttext ) )
48838 1 0 if ( alttext ) {
48844 0 1 if ( !HasSrc && !HasDataFld )
0 0 if ( !HasSrc && !HasDataFld )
48847 1 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
48849 0 1 if ( HasIsMap && !HasUseMap )
0 0 if ( HasIsMap && !HasUseMap )
48865 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
48868 0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
0 0 if (AttrValueIs(attval, "left") || AttrValueIs(attval, "right"))
48870 0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
0 0 else if (AttrValueIs(attval, "top") || AttrValueIs(attval, "bottom"))
48889 0 0 if ( !HasAlt )
48891 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
48898 0 0 if ( !HasHref && !HasNohref )
0 0 if ( !HasHref && !HasNohref )
48907 0 0 Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
0 0 Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
48914 0 0 if (cfg(doc, TidyAccessibilityCheckLevel) == 0)
48916 0 0 if (HasSummary && isHTML5)
0 0 if (HasSummary && isHTML5)
48921 0 0 else if (!HasSummary && !isHTML5)
0 0 else if (!HasSummary && !isHTML5)
48930 0 0 if ( cfgBool(doc, TidyXmlOut) && (attval = TY_(AttrGetById)(node, TidyAttr_BORDER)) )
0 0 if ( cfgBool(doc, TidyXmlOut) && (attval = TY_(AttrGetById)(node, TidyAttr_BORDER)) )
48932 0 0 if (attval->value == NULL)
48944 0 0 if (!HasHref)
48949 0 0 if (!HasItemprop && !HasRel)
0 0 if (!HasItemprop && !HasRel)
48957 136 4 return ( node && node->type == TextNode );
42 94 return ( node && node->type == TextNode );
48962 0 0 if ( doc && node )
0 0 if ( doc && node )
48966 0 0 for ( ix = node->start; ix < node->end; ++ix )
48969 0 0 if ( !TY_(IsWhite)( lexer->lexbuf[ix] ) )
48978 195 0 return ( node &&
62 133 return ( node &&
48979 5 57 (node->type == StartTag || node->type == StartEndTag) );
48984 0 0 if ( element )
48989 0 0 if ( ptr && (ptr - element > 0) )
0 0 if ( ptr && (ptr - element > 0) )
49000 0 0 if ( node->element )
49009 0 0 && ( cfg( doc, TidyUseCustomTags ) != TidyCustomNo );
0 0 && ( cfg( doc, TidyUseCustomTags ) != TidyCustomNo );
49018 101 0 return ( node && node->tag &&
101 0 return ( node && node->tag &&
28 73 return ( node && node->tag &&
49037 0 0 TidyTagId tid = TagId( node );
0 0 TidyTagId tid = TagId( node );
49038 0 0 return ( tid && (
0 0 return ( tid && (
49039 0 0 tid == TidyTag_H1 ||
49040 0 0 tid == TidyTag_H2 ||
49041 0 0 tid == TidyTag_H3 ||
49042 0 0 tid == TidyTag_H4 ||
49043 0 0 tid == TidyTag_H5 ||
49049 0 0 TidyTagId tid = TagId( node );
0 0 TidyTagId tid = TagId( node );
49075 0 0 while (node)
49079 0 0 if (node->content && (s == ContinueTraversal || s == SkipSiblings))
0 0 if (node->content && (s == ContinueTraversal || s == SkipSiblings))
0 0 if (node->content && (s == ContinueTraversal || s == SkipSiblings))
49235 4 0 if ( TY_(tidyGetLanguageSetByUser)() == no )
49237 4 0 if( ! TY_(tidySetLanguage)( getenv( "LC_MESSAGES" ) ) )
49264 4 0 if ( doc )
49266 0 4 assert( doc->docIn == NULL );
49267 0 4 assert( doc->docOut == NULL );
49276 0 4 if (doc->givenDoctype)
49299 0 0 if ( impl )
49305 0 0 if ( impl )
49335 0 0 if ( impl )
49346 0 0 if ( impl )
49357 0 0 if ( impl )
49370 0 0 if ( impl )
49378 0 0 if ( impl )
49386 0 0 if ( impl )
49389 0 0 if ( enc >= 0 && TY_(AdjustCharEncoding)(impl, enc) )
0 0 if ( enc >= 0 && TY_(AdjustCharEncoding)(impl, enc) )
49400 0 0 if ( impl )
49403 0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyInCharEncoding, enc ) )
0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyInCharEncoding, enc ) )
49414 0 0 if ( impl )
49417 0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyOutCharEncoding, enc ) )
0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyOutCharEncoding, enc ) )
49428 0 0 if ( option )
49436 0 0 if ( impl )
49445 0 0 if ( impl )
49447 0 0 else if ( pos )
49467 6 0 if ( option )
49474 0 0 if ( option )
49481 6 0 if ( option )
49488 0 0 if ( option )
49495 0 0 if ( option )
49503 0 0 if ( option && option->id == TidyDoctype )
0 0 if ( option && option->id == TidyDoctype )
49508 0 0 if ( option && option->type == TidyString )
0 0 if ( option && option->type == TidyString )
49515 0 0 if ( option && option->type != TidyString )
0 0 if ( option && option->type != TidyString )
49519 0 0 if ( option->id == TidyDoctype )
49530 0 0 if ( option && option->type != TidyString )
0 0 if ( option && option->type != TidyString )
49537 0 0 if ( option )
49546 0 0 if ( option )
49553 0 0 if ( option )
49563 0 0 if ( impl )
49565 0 0 if ( optId == TidyDoctype )
49569 0 0 if ( pick != TidyDoctypeUser )
49585 1 0 if ( impl )
49592 0 0 if ( impl )
49601 0 0 if ( impl )
49604 0 0 if ( optId == TidyDoctype )
49615 2 0 if ( impl )
49618 0 2 if ( optId == TidyDoctype )
49630 0 0 if ( impl )
49633 0 0 if ( option )
49644 3 0 if ( impl )
49666 0 0 if ( impl )
49676 0 0 if ( impl )
49679 0 0 if ( optId == TidyInlineTags )
49681 0 0 else if ( optId == TidyBlockTags )
49683 0 0 else if ( optId == TidyEmptyTags )
49685 0 0 else if ( optId == TidyPreTags )
49687 0 0 if ( tagtyp != tagtype_null )
49696 0 0 if ( impl )
49705 0 0 if ( impl )
49707 0 0 else if ( iter )
49715 0 0 if ( impl )
49724 0 0 if ( impl )
49726 0 0 else if ( iter )
49743 0 0 if (docDesc && docDesc->links)
0 0 if (docDesc && docDesc->links)
49754 0 0 if (*curr == TidyUnknownOption)
49762 0 0 (TidyIterator)NULL:(TidyIterator)curr;
49769 0 0 if ( impl )
49777 0 0 if ( impl )
49785 0 0 if ( impl )
49795 0 0 if ( impl )
49805 0 0 if ( impl )
49816 0 0 if ( impl )
49824 0 0 if ( impl )
49831 0 0 if ( impl )
49840 0 0 if ( docTo && docFrom )
0 0 if ( docTo && docFrom )
49877 0 0 if ( impl )
49893 0 0 if ( impl )
49904 0 0 if ( impl )
50068 0 0 if ( impl )
50071 0 0 if ( errout )
50088 3 0 if ( impl )
50094 3 0 return ( impl->errout ? 0 : -ENOMEM );
50102 0 0 if ( impl )
50108 0 0 return ( impl->errout ? 0 : -ENOMEM );
50118 0 0 if ( impl )
50132 0 0 if ( impl )
50157 0 0 if ( impl )
50165 0 0 if ( impl )
50173 0 0 if ( impl )
50181 0 0 if ( impl )
50192 0 0 if ( impl )
50198 0 0 if ( impl )
50252 0 0 if ( stat(filnam,&sbuf) != 0 )
50257 0 0 if (sbuf.st_mode & M_IS_DIR) /* and /NOT/ if a DIRECTORY */
50282 0 0 if ( fin )
50285 0 0 if ( !in )
50312 0 0 if ( inbuf )
50327 3 0 if ( content )
50383 0 0 if ( doc->errors > 0 &&
0 0 if ( doc->errors > 0 &&
50384 0 0 cfgBool(doc, TidyWriteBack) && !cfgBool(doc, TidyForceOutput) )
50389 0 0 if ( fout )
50409 0 0 if ( status < 0 ) /* Error message! */
50452 0 0 if ( 0 == status )
50483 0 0 if ( outbuf.size > *buflen )
50497 3 0 if ( outbuf )
50521 0 12 if ( doc->errors > 0 )
50523 0 12 if ( doc->warnings > 0 || doc->accessErrors > 0 )
0 0 if ( doc->warnings > 0 || doc->accessErrors > 0 )
50533 3 0 if ( impl )
50541 3 0 if ( impl )
50550 0 0 if ( impl ) {
50575 3 0 assert( doc != NULL && in != NULL );
0 3 assert( doc != NULL && in != NULL );
50576 0 3 assert( doc->docIn == NULL );
50587 0 3 if (doc->givenDoctype)
50605 0 3 if (bomEnc != -1)
50612 0 3 if ( xmlIn )
50615 0 0 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
50622 0 3 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
50637 0 3 if ( doc->errors > 0 && !cfgBool( doc, TidyForceOutput ) )
0 0 if ( doc->errors > 0 && !cfgBool( doc, TidyForceOutput ) )
50699 16 192 if (html5Info[i].tag == 0)
50701 0 192 if (html5Info[i].id == tid)
50725 11 29 for ( av = node->attributes; av != NULL; av = av->next ) {
50726 11 0 if (attrIsALIGN(av))
8 3 if (attrIsALIGN(av))
0 8 if (attrIsALIGN(av))
50752 29 19 while (node)
50754 0 29 if ( nodeHasAlignAttr( node ) ) {
50763 0 0 if ( !already_strict )
50766 3 26 if ( node == body ) {
50772 3 0 if ( !already_strict ) {
50773 18 3 while ( BadBody5Attribs[i] != TidyAttr_UNKNOWN ) {
50775 0 18 if ( attr )
50781 26 0 if ( nodeIsACRONYM(node) ) {
16 10 if ( nodeIsACRONYM(node) ) {
0 16 if ( nodeIsACRONYM(node) ) {
50782 0 0 if (clean) {
50788 0 0 if ( !already_strict )
50792 26 0 if ( nodeIsAPPLET(node) ) {
16 10 if ( nodeIsAPPLET(node) ) {
0 16 if ( nodeIsAPPLET(node) ) {
50793 0 0 if (clean) {
50799 0 0 if ( !already_strict )
50803 26 0 if ( nodeIsBASEFONT(node) ) {
16 10 if ( nodeIsBASEFONT(node) ) {
0 16 if ( nodeIsBASEFONT(node) ) {
50812 0 0 if ( !already_strict )
50815 26 0 if ( nodeIsBIG(node) ) {
16 10 if ( nodeIsBIG(node) ) {
0 16 if ( nodeIsBIG(node) ) {
50830 0 0 if (clean) {
50834 0 0 if ( !already_strict )
50838 26 0 if ( nodeIsCENTER(node) ) {
16 10 if ( nodeIsCENTER(node) ) {
0 16 if ( nodeIsCENTER(node) ) {
50845 0 0 if ( !already_strict )
50848 26 0 if ( nodeIsDIR(node) ) {
16 10 if ( nodeIsDIR(node) ) {
0 16 if ( nodeIsDIR(node) ) {
50853 0 0 if ( !already_strict )
50856 26 0 if ( nodeIsFONT(node) ) {
16 10 if ( nodeIsFONT(node) ) {
0 16 if ( nodeIsFONT(node) ) {
50862 0 0 if ( !already_strict )
50865 26 0 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
16 10 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
16 0 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
26 0 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
16 10 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
16 0 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
26 0 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
16 10 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
0 16 if (( nodesIsFRAME(node) ) || ( nodeIsFRAMESET(node) ) || ( nodeIsNOFRAMES(node) )) {
50868 0 0 if ( !already_strict )
50871 26 0 if ( nodeIsSTRIKE(node) ) {
16 10 if ( nodeIsSTRIKE(node) ) {
0 16 if ( nodeIsSTRIKE(node) ) {
50875 0 0 if (clean) {
50879 0 0 if ( !already_strict )
50883 26 0 if ( nodeIsTT(node) ) {
16 10 if ( nodeIsTT(node) ) {
0 16 if ( nodeIsTT(node) ) {
50889 0 0 if (clean) {
50893 0 0 if ( !already_strict )
50897 16 10 if (TY_(nodeIsElement)(node)) {
50898 16 0 if (node->tag) {
50899 0 16 if ( (!(node->tag->versions & VERS_HTML5) && !(node->tag->versions & VERS_PROPRIETARY)) || (inRemovedInfo(node->tag->id)) ) {
0 0 if ( (!(node->tag->versions & VERS_HTML5) && !(node->tag->versions & VERS_PROPRIETARY)) || (inRemovedInfo(node->tag->id)) ) {
0 16 if ( (!(node->tag->versions & VERS_HTML5) && !(node->tag->versions & VERS_PROPRIETARY)) || (inRemovedInfo(node->tag->id)) ) {
50900 0 0 if ( !already_strict )
50906 16 13 if (node->content)
50933 0 19 unsigned int version = versionEmitted == 0 ? declared : versionEmitted;
50934 19 0 int tagReportType = VERS_STRICT & version ? ELEMENT_VERS_MISMATCH_ERROR : ELEMENT_VERS_MISMATCH_WARN;
50935 19 0 int attrReportType = VERS_STRICT & version ? MISMATCHED_ATTRIBUTE_ERROR : MISMATCHED_ATTRIBUTE_WARN;
50943 29 19 while (node)
50946 19 10 if ( TY_(nodeIsElement)(node) && node->tag ) {
19 0 if ( TY_(nodeIsElement)(node) && node->tag ) {
50949 19 0 if ( !cfgBool(doc, TidyXmlTags) )
50952 0 19 if ( check_versions && !(node->tag->versions & version) )
0 0 if ( check_versions && !(node->tag->versions & version) )
50957 0 19 else if ( node->tag->versions & VERS_PROPRIETARY )
50959 0 0 if ( !cfgBool(doc, TidyMakeClean) ||
0 0 if ( !cfgBool(doc, TidyMakeClean) ||
50960 0 0 ( !nodeIsNOBR(node) && !nodeIsWBR(node) ) )
0 0 ( !nodeIsNOBR(node) && !nodeIsWBR(node) ) )
0 0 ( !nodeIsNOBR(node) && !nodeIsWBR(node) ) )
0 0 ( !nodeIsNOBR(node) && !nodeIsWBR(node) ) )
0 0 ( !nodeIsNOBR(node) && !nodeIsWBR(node) ) )
50972 0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
50977 0 0 if ( nodeIsLAYER(node) )
0 0 if ( nodeIsLAYER(node) )
0 0 if ( nodeIsLAYER(node) )
50979 0 0 else if ( nodeIsSPACER(node) )
0 0 else if ( nodeIsSPACER(node) )
0 0 else if ( nodeIsSPACER(node) )
50981 0 0 else if ( nodeIsNOBR(node) )
0 0 else if ( nodeIsNOBR(node) )
0 0 else if ( nodeIsNOBR(node) )
50989 19 10 if (TY_(nodeIsElement)(node))
50993 8 19 while (attval)
50999 0 8 attrIsMismatched = (check_versions | htmlIs5) ? TY_(AttributeIsMismatched)(node, attval, doc) : no;
51001 0 8 if ( attrIsProprietary )
51003 0 0 if ( cfgBool(doc, TidyWarnPropAttrs) )
51006 0 8 else if ( attrIsMismatched )
51008 0 0 if (htmlIs5)
51011 0 0 TY_(ReportAttrError)(doc, node, attval,
51021 8 0 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
0 8 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
0 0 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
51028 16 13 if (node->content)
51179 0 3 if (tidyXmlTags)
51189 3 0 if ( mergeEmphasis )
51197 0 3 if ( logical )
51200 0 3 if ( word2K && TY_(IsWord2000)(doc) )
0 0 if ( word2K && TY_(IsWord2000)(doc) )
51211 0 3 if ( clean )
51215 0 3 if ( gdoc )
51221 0 3 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
51227 0 3 if (node)
51230 0 0 if (AttrHasValue(fpi))
0 0 if (AttrHasValue(fpi))
51232 0 0 if (doc->givenDoctype)
51238 3 0 if ( doc->root.content )
51241 0 3 if ( htmlOut && doc->lexer->isvoyager )
0 0 if ( htmlOut && doc->lexer->isvoyager )
51245 0 0 if (node)
51249 0 3 if (xhtmlOut && !htmlOut)
0 0 if (xhtmlOut && !htmlOut)
51264 3 0 if (tidyMark )
51270 0 3 if ( xmlOut && xmlDecl )
0 0 if ( xmlOut && xmlDecl )
51277 3 0 if (doc->lexer)
51285 3 0 if (doc->lexer->versionEmitted & VERS_HTML5)
51289 3 0 if ( !doc->lexer->isvoyager && doc->xmlDetected )
0 3 if ( !doc->lexer->isvoyager && doc->xmlDetected )
51320 0 0 if (node && node->implicit )
0 0 if (node && node->implicit )
51347 0 3 if (ppWithTabs)
51352 0 3 if (escapeCDATA)
51355 0 3 if (dropComments)
51358 0 3 if (makeClean)
51364 0 3 if ((makeClean && asciiChars) || makeBare)
0 0 if ((makeClean && asciiChars) || makeBare)
0 3 if ((makeClean && asciiChars) || makeBare)
51367 0 3 if (makeBare)
51376 3 0 if ( showMarkup && (doc->errors == 0 || forceOutput) )
0 3 if ( showMarkup && (doc->errors == 0 || forceOutput) )
0 0 if ( showMarkup && (doc->errors == 0 || forceOutput) )
51379 3 0 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
0 3 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
0 0 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
51390 0 3 if ( xmlOut && !xhtmlOut )
0 0 if ( xmlOut && !xhtmlOut )
51392 2 1 else if ( showBodyOnly( doc, bodyOnly ) )
51422 0 0 if ( impl )
51431 0 0 if ( impl )
51440 0 0 if ( impl )
51449 0 0 if ( impl )
51492 0 0 if ( nimp )
51501 0 0 if ( nimp )
51509 0 0 if ( nimp )
51518 0 0 if ( nimp )
51527 0 0 if ( doc )
51537 0 0 if ( doc && nimp && outbuf )
0 0 if ( doc && nimp && outbuf )
0 0 if ( doc && nimp && outbuf )
51546 0 0 if ( xmlOut && !xhtmlOut )
0 0 if ( xmlOut && !xhtmlOut )
51564 0 0 if ( doc == NULL || node == NULL || buf == NULL )
0 0 if ( doc == NULL || node == NULL || buf == NULL )
0 0 if ( doc == NULL || node == NULL || buf == NULL )
51567 0 0 switch( node->type ) {
51594 0 0 if ( nimp )
51620 0 0 : yes );
0 0 : yes );
51632 0 0 if (nimp && nimp->tag)
0 0 if (nimp && nimp->tag)
51644 0 0 if ( nimp )
51652 0 0 if ( attval )
51661 0 0 if ( attval )
51669 0 0 if ( attval )
51686 0 0 if ( attval && attval->dict )
0 0 if ( attval && attval->dict )
51737 0 0 if ( result )
51840 36 0 if ( str )
51844 295 36 while ( 0 != (*cp++ = *str++) )
51854 10 0 if ( str && len > 0 )
10 0 if ( str && len > 0 )
51857 50 10 while ( len-- > 0 && (*cp++ = *str++) )
50 0 while ( len-- > 0 && (*cp++ = *str++) )
51867 0 0 if ( s1 != NULL && s2 != NULL )
0 0 if ( s1 != NULL && s2 != NULL )
51870 0 0 while ( *s2 && --size ) /* Predecrement: reserve byte */
0 0 while ( *s2 && --size ) /* Predecrement: reserve byte */
51882 0 0 while (0 != (*s1++ = *s2++) )
51892 0 0 while ( *s1 )
51895 0 0 while (0 != (*s1++ = *s2++) )
51904 50 337 while ((c = *s1) == *s2)
51906 9 41 if (c == '\0')
51913 336 1 return (*s1 > *s2 ? 1 : -1);
51920 72 0 if ( str )
51922 499 72 while ( *str++ )
51939 273 1771 while (c = (unsigned int)(*s1), TY_(ToLower)(c) == TY_(ToLower)((unsigned int)(*s2)))
51941 18 255 if (c == '\0')
51948 707 1064 return (*s1 > *s2 ? 1 : -1);
51955 10 0 if (s1 == NULL || s2 == NULL)
0 10 if (s1 == NULL || s2 == NULL)
51957 0 0 if (s1 == s2)
51959 0 0 return (s1 == NULL ? -1 : 1);
51962 0 10 while ((c = (byte)*s1) == (byte)*s2)
51964 0 0 if (c == '\0')
51967 0 0 if (n == 0)
51975 0 10 if (n == 0)
51978 5 5 return (*s1 > *s2 ? 1 : -1);
51985 0 0 while (c = (unsigned int)(*s1), TY_(ToLower)(c) == TY_(ToLower)((unsigned int)(*s2)))
51987 0 0 if (c == '\0')
51990 0 0 if (n == 0)
51998 0 0 if (n == 0)
52001 0 0 return (*s1 > *s2 ? 1 : -1);
52009 0 0 for ( ix = 0; ix <= diff; ++ix )
52011 0 0 if ( TY_(tmbstrncmp)(s1+ix, s2, len2) == 0 )
52022 0 0 for ( ix = 0; ix <= diff; ++ix )
52024 0 0 if ( TY_(tmbstrncasecmp)(s1+ix, s2, len2) == 0 )
52034 0 0 for ( cp=s; *cp; ++cp )
52044 0 0 for (cp = s; *cp; ++cp)
52254 25 97 if ( successorBytes )
52258 0 122 if ( firstByte == EndOfStream )
52268 122 0 if (ch <= 0x7F) /* 0XXX XXXX one byte */
52273 0 0 else if ((ch & 0xE0) == 0xC0) /* 110X XXXX two bytes */
52278 0 0 else if ((ch & 0xF0) == 0xE0) /* 1110 XXXX three bytes */
52283 0 0 else if ((ch & 0xF8) == 0xF0) /* 1111 0XXX four bytes */
52288 0 0 else if ((ch & 0xFC) == 0xF8) /* 1111 10XX five bytes */
52294 0 0 else if ((ch & 0xFE) == 0xFC) /* 1111 110X six bytes */
52313 25 97 if ( successorBytes )
52315 0 25 for ( i=0; i < bytes-1; ++i )
52317 0 0 if ( !buf[i] || (buf[i] & 0xC0) != 0x80 )
0 0 if ( !buf[i] || (buf[i] & 0xC0) != 0x80 )
52326 97 0 else if ( inp )
52328 0 97 for ( i=0; i < bytes-1 && !inp->eof(inp->sourceData); ++i )
0 0 for ( i=0; i < bytes-1 && !inp->eof(inp->sourceData); ++i )
52334 0 0 if ( b == EOF || (buf[i] & 0xC0) != 0x80 )
0 0 if ( b == EOF || (buf[i] & 0xC0) != 0x80 )
52338 0 0 if ( b != EOF )
52345 0 0 else if ( bytes > 1 )
52351 122 0 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
122 0 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
0 122 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
52354 122 0 if (!hasError && (n > kMaxUTF8FromUCS4))
0 122 if (!hasError && (n > kMaxUTF8FromUCS4))
52357 122 0 if (!hasError)
52365 122 0 if ((n < validUTF8[lo].lowChar) || (n > validUTF8[hi].highChar))
0 122 if ((n < validUTF8[lo].lowChar) || (n > validUTF8[hi].highChar))
52371 122 122 for (i = lo; i <= hi; i++)
52376 122 122 for (tempCount = 0; tempCount < bytes; tempCount++)
52378 122 0 if (!tempCount)
52383 122 0 if ( theByte >= validUTF8[i].validBytes[(tempCount * 2)] &&
122 0 if ( theByte >= validUTF8[i].validBytes[(tempCount * 2)] &&
52386 0 122 if (hasError)
52407 0 122 if ( hasError )
52420 94 258 if ( encodebuf )
52423 352 0 if (c <= 0x7F) /* 0XXX XXXX one byte */
52428 0 0 else if (c <= 0x7FF) /* 110X XXXX two bytes */
52434 0 0 else if (c <= 0xFFFF) /* 1110 XXXX three bytes */
52440 0 0 if ( c == kUTF8ByteSwapNotAChar || c == kUTF8NotAChar )
0 0 if ( c == kUTF8ByteSwapNotAChar || c == kUTF8NotAChar )
52443 0 0 else if (c <= 0x1FFFFF) /* 1111 0XXX four bytes */
52450 0 0 if (c > kMaxUTF8FromUCS4)
52453 0 0 else if (c <= 0x3FFFFFF) /* 1111 10XX five bytes */
52463 0 0 else if (c <= 0x7FFFFFFF) /* 1111 110X six bytes */
52478 352 0 if ( !hasError && outp != NULL )
258 94 if ( !hasError && outp != NULL )
52481 258 258 for ( ix=0; ix < bytes; ++ix )
52497 0 352 if (hasError)
52518 0 25 if (err)
52536 0 5 if (err)
52559 0 0 return ( ch >= kUTF16HighSurrogateBegin && ch <= kUTF16HighSurrogateEnd );
0 0 return ( ch >= kUTF16HighSurrogateBegin && ch <= kUTF16HighSurrogateEnd );
52563 0 0 return ( ch >= kUTF16LowSurrogateBegin && ch <= kUTF16LowSurrogateEnd );
0 0 return ( ch >= kUTF16LowSurrogateBegin && ch <= kUTF16LowSurrogateEnd );
52568 0 0 assert( TY_(IsHighSurrogate)(high) && TY_(IsLowSurrogate)(low) );
0 0 assert( TY_(IsHighSurrogate)(high) && TY_(IsLowSurrogate)(low) );
52575 0 0 Bool status = ( TY_(IsValidCombinedChar)( utf16 ) && high && low );
0 0 Bool status = ( TY_(IsValidCombinedChar)( utf16 ) && high && low );
0 0 Bool status = ( TY_(IsValidCombinedChar)( utf16 ) && high && low );
52576 0 0 if ( status )
52586 0 0 return ( ch >= kUTF16SurrogatesBegin &&
52587 0 0 (ch & 0x0000FFFE) != 0x0000FFFE &&
0 0 (ch & 0x0000FFFE) != 0x0000FFFE &&
52649 306 2 for (i = 0; i < n_html_tags; i++) {
52668 0 4 if (tag_id >= n_html_tags) {
52677 1384 4 for (i = 0; i < n_attributes; i++) {
52680 604 4 for (i = 0; attrvers[i].attribute != TidyAttr_UNKNOWN; i++) {
52681 461 143 if (version & attrvers[i].versions) {
52688 461 0 if (attribute >= n_attributes || attribute < 0) {
0 461 if (attribute >= n_attributes || attribute < 0) {
52698 401 60 if (! yes_no[attribute]) {
52712 346 1 for (i = 0; i < n_attributes; i++) {