Branch Coverage

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


line true false branch
12590 0 0 while ( ( c = *p++ ) != 0 && state != file_found )
0 0 while ( ( c = *p++ ) != 0 && state != file_found )
12595 0 0 if ( c == ':' )
12600 0 0 if ( c =='/' )
12605 0 0 if ( c =='/' )
12617 0 0 return state == file_found || state == initial;
0 0 return state == file_found || state == initial;
12633 0 0 if ( path[i] == '/' || path[i] == '\\' )
0 0 if ( path[i] == '/' || path[i] == '\\' )
12635 0 0 else if ( path[i] == '.' )
12640 0 0 } while ( --i > 0 );
12655 0 0 if ( !IsFilePath(iType) ) return 0;
12660 0 0 for (i = 0; i < N_IMAGE_EXTS; i++)
12662 0 0 if ( TY_(tmbstrcasecmp)(ext, imageExtensions[i]) == 0 )
12682 0 0 if ( !IsFilePath(sType) ) return 0;
12686 0 0 for (i = 0; i < N_AUDIO_EXTS; i++)
12688 0 0 if ( TY_(tmbstrcasecmp)(ext, soundExtensions[i]) == 0 )
12710 0 0 if ( !IsFilePath(sType) ) return 0;
12714 0 0 for (i = 0; i < N_FRAME_EXTS; i++)
12716 0 0 if ( TY_(tmbstrcasecmp)(ext, frameExtensions[i]) == 0 )
12735 0 0 if ( !IsFilePath(sType) ) return 0;
12739 0 0 for (i = 0; i < N_MEDIA_EXTS; i++)
12741 0 0 if ( TY_(tmbstrcasecmp)(ext, mediaExtensions[i]) == 0 )
12760 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 )
12769 0 0 return ( av && ! IsWhitespace(av->value) );
0 0 return ( av && ! IsWhitespace(av->value) );
12783 0 0 return ( strstr(txt, "image") != NULL ||
0 0 return ( strstr(txt, "image") != NULL ||
12828 0 0 return ( len >= 5 && TY_(tmbstrcmp)(txt+len-5, "bytes") == 0 );
0 0 return ( len >= 5 && TY_(tmbstrcmp)(txt+len-5, "bytes") == 0 );
12845 0 0 if ( node )
12848 0 0 for (i = node->start; i < node->end; ++i, ++x )
12853 0 0 if ( x >= sizeof(doc->access.text)-1 )
12881 0 0 if ( TY_(nodeIsText)(node) )
12886 0 0 for (i = node->start; i < node->end; i++)
12889 0 0 if ( doc->access.counter >= TEXTBUF_SIZE-1 )
12896 0 0 for ( node = node->content; node != NULL; node = node->next )
12927 0 0 return doc->access.PRIORITYCHK == 1 ||
12928 0 0 doc->access.PRIORITYCHK == 2 ||
0 0 doc->access.PRIORITYCHK == 2 ||
12933 0 0 return doc->access.PRIORITYCHK == 2 ||
0 0 return doc->access.PRIORITYCHK == 2 ||
12950 0 0 if (Level1_Enabled( doc ))
12952 0 0 if ( nodeIsIMG(node) )
0 0 if ( nodeIsIMG(node) )
0 0 if ( nodeIsIMG(node) )
12955 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
12958 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
12961 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
12964 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
12989 0 0 if (Level3_Enabled( doc ))
12995 0 0 for ( av = node->attributes; av; av = av->next )
12997 0 0 if ( attrIsBGCOLOR(av) )
0 0 if ( attrIsBGCOLOR(av) )
0 0 if ( attrIsBGCOLOR(av) )
12999 0 0 if ( hasValue(av) )
13008 0 0 for ( av = node->attributes; gotBG && av != NULL; av = av->next )
0 0 for ( av = node->attributes; gotBG && av != NULL; av = av->next )
13011 0 0 if ( attrIsTEXT(av) )
0 0 if ( attrIsTEXT(av) )
0 0 if ( attrIsTEXT(av) )
13013 0 0 else if ( attrIsLINK(av) )
0 0 else if ( attrIsLINK(av) )
0 0 else if ( attrIsLINK(av) )
13015 0 0 else if ( attrIsALINK(av) )
0 0 else if ( attrIsALINK(av) )
0 0 else if ( attrIsALINK(av) )
13017 0 0 else if ( attrIsVLINK(av) )
0 0 else if ( attrIsVLINK(av) )
0 0 else if ( attrIsVLINK(av) )
13020 0 0 if ( errcode && hasValue(av) )
0 0 if ( errcode && hasValue(av) )
13060 0 0 return ( diffBright > 180 &&
0 0 return ( diffBright > 180 &&
13080 0 0 for (x = 0; x < N_COLORS; x++)
13082 0 0 if ( strstr(colorNames[x], color) != NULL )
13097 0 0 if ( TY_(tmbstrlen)(color) == 7 && color[0] == '#' )
0 0 if ( TY_(tmbstrlen)(color) == 7 && color[0] == '#' )
13121 0 0 if ( ch >= '0' && ch <= '9' )
0 0 if ( ch >= '0' && ch <= '9' )
13125 0 0 else if ( ch >= 'a' && ch <= 'f' )
0 0 else if ( ch >= 'a' && ch <= 'f' )
13129 0 0 else if ( ch >= 'A' && ch <= 'F' )
0 0 else if ( ch >= 'A' && ch <= 'F' )
13159 0 0 if (Level1_Enabled( doc ))
13162 0 0 for (av = node->attributes; av != NULL; av = av->next)
13169 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13171 0 0 if (av->value != NULL)
13174 0 0 (IsPlaceholderAlt (av->value) == no) &&
13175 0 0 (IsPlaceHolderObject (av->value) == no) &&
13176 0 0 (EndsWithBytes (av->value) == no) &&
13182 0 0 else if (TY_(tmbstrlen)(av->value) > 150)
13188 0 0 else if (IsImage (av->value) == yes)
13194 0 0 else if (IsPlaceholderAlt (av->value) == yes)
13200 0 0 else if (EndsWithBytes (av->value) == yes)
13215 0 0 else if ( attrIsWIDTH(av) )
0 0 else if ( attrIsWIDTH(av) )
0 0 else if ( attrIsWIDTH(av) )
13218 0 0 if ( hasValue(av) )
13221 0 0 if ( width < 30 )
13224 0 0 if ( width > 150 )
13236 0 0 else if ( attrIsHEIGHT(av) )
0 0 else if ( attrIsHEIGHT(av) )
0 0 else if ( attrIsHEIGHT(av) )
13239 0 0 if ( hasValue(av) && atoi(av->value) < 30 )
0 0 if ( hasValue(av) && atoi(av->value) < 30 )
13247 0 0 else if ( attrIsLONGDESC(av) )
0 0 else if ( attrIsLONGDESC(av) )
0 0 else if ( attrIsLONGDESC(av) )
13249 0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
13257 0 0 else if ( attrIsUSEMAP(av) )
0 0 else if ( attrIsUSEMAP(av) )
0 0 else if ( attrIsUSEMAP(av) )
13259 0 0 if ( hasValue(av) )
13263 0 0 else if ( attrIsISMAP(av) )
0 0 else if ( attrIsISMAP(av) )
0 0 else if ( attrIsISMAP(av) )
13276 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
13285 0 0 if (node->content != NULL && (node->content)->tag == NULL)
0 0 if (node->content != NULL && (node->content)->tag == NULL)
13304 0 0 if ( node->next && !node->next->tag )
0 0 if ( node->next && !node->next->tag )
13308 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
13316 0 0 if (node->content != NULL && node->content->tag == NULL)
0 0 if (node->content != NULL && node->content->tag == NULL)
13342 0 0 if (HasAlt == no)
13347 0 0 if ((HasLongDesc == no)&&
0 0 if ((HasLongDesc == no)&&
13348 0 0 (HasValidHeight ==yes)&&
13349 0 0 ((HasValidWidthHR == yes)||
13355 0 0 if (HasTriggeredMissingLongDesc == no)
13357 0 0 if ((HasDLINK == yes)&&
0 0 if ((HasDLINK == yes)&&
13363 0 0 if ((HasLongDesc == yes)&&
0 0 if ((HasLongDesc == yes)&&
13369 0 0 if ((HasLongDesc == no)&&
0 0 if ((HasLongDesc == no)&&
13376 0 0 if (HasIsMap == yes)
13404 0 0 if (Level1_Enabled( doc ))
13407 0 0 for (av = node->attributes; av != NULL; av = av->next)
13415 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13417 0 0 if (av->value != NULL)
13424 0 0 if (HasAlt == no)
13427 0 0 if (node->content != NULL)
13431 0 0 if ( node->content->tag == NULL )
13434 0 0 if ( node->content->content != NULL &&
0 0 if ( node->content->content != NULL &&
13440 0 0 if ( word != NULL && !IsWhitespace(word) )
0 0 if ( word != NULL && !IsWhitespace(word) )
13445 0 0 if ( !HasDescription && !HasAlt )
0 0 if ( !HasDescription && !HasAlt )
13467 0 0 if (Level1_Enabled( doc ))
13469 0 0 if ( node->content != NULL)
13471 0 0 if ( node->content->type != TextNode )
13476 0 0 for ( av=tnode->attributes; av; av = av->next )
13478 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13487 0 0 if ( !HasAlt )
13491 0 0 if ( TY_(nodeIsText)(node->content) )
13500 0 0 if ( word != NULL && !IsWhitespace(word) )
0 0 if ( word != NULL && !IsWhitespace(word) )
13505 0 0 if ( !HasAlt && !HasDescription )
0 0 if ( !HasAlt && !HasDescription )
13525 0 0 for ( content = node->content;
13526 0 0 !sspresent && content != NULL;
13529 0 0 sspresent = ( nodeIsLINK(content) ||
0 0 sspresent = ( nodeIsLINK(content) ||
0 0 sspresent = ( nodeIsLINK(content) ||
13530 0 0 nodeIsSTYLE(content) ||
0 0 nodeIsSTYLE(content) ||
0 0 nodeIsSTYLE(content) ||
13531 0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
0 0 nodeIsFONT(content) ||
13532 0 0 nodeIsBASEFONT(content) );
0 0 nodeIsBASEFONT(content) );
13534 0 0 for ( av = content->attributes;
13535 0 0 !sspresent && av != NULL;
13538 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) ||
13539 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) ||
13540 0 0 attrIsLINK(av) );
0 0 attrIsLINK(av) );
13542 0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
0 0 if ( !sspresent && attrIsREL(av) )
13544 0 0 sspresent = AttrValueIs(av, "stylesheet");
0 0 sspresent = AttrValueIs(av, "stylesheet");
0 0 sspresent = AttrValueIs(av, "stylesheet");
13548 0 0 if ( ! sspresent )
13571 0 0 if (Level1_Enabled( doc ))
13574 0 0 for (av = node->attributes; av != NULL; av = av->next)
13577 0 0 if ( attrIsLONGDESC(av) )
0 0 if ( attrIsLONGDESC(av) )
0 0 if ( attrIsLONGDESC(av) )
13579 0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
0 0 if ( hasValue(av) && TY_(tmbstrlen)(av->value) > 1 )
13586 0 0 else if ( attrIsSRC(av) )
0 0 else if ( attrIsSRC(av) )
0 0 else if ( attrIsSRC(av) )
13588 0 0 if ( hasValue(av) && !IsValidSrcExtension(av->value) )
0 0 if ( hasValue(av) && !IsValidSrcExtension(av->value) )
13595 0 0 else if ( attrIsTITLE(av) )
0 0 else if ( attrIsTITLE(av) )
0 0 else if ( attrIsTITLE(av) )
13597 0 0 if ( hasValue(av) )
13600 0 0 if ( !HasTitle )
13602 0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
13609 0 0 if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
0 0 if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
13619 0 0 if ( !HasTitle )
13624 0 0 if ( doc->access.numFrames==3 && doc->access.HasCheckedLongDesc<3 )
0 0 if ( doc->access.numFrames==3 && doc->access.HasCheckedLongDesc<3 )
13642 0 0 if (Level1_Enabled( doc ))
13646 0 0 if ( hasValue(av) )
13648 0 0 if ( !IsValidSrcExtension(av->value) )
13671 0 0 for ( av = node->attributes; av != NULL; av = av->next )
13673 0 0 if (Level1_Enabled( doc ))
13676 0 0 if ( attrIsHREF(av) )
0 0 if ( attrIsHREF(av) )
0 0 if ( attrIsHREF(av) )
13678 0 0 if ( hasValue(av) )
13684 0 0 if ( IsValidMediaExtension(av->value) )
13694 0 0 if ( TY_(tmbstrlen)(ext) < 6 && TY_(tmbstrlen)(ext) > 0 )
0 0 if ( TY_(tmbstrlen)(ext) < 6 && TY_(tmbstrlen)(ext) > 0 )
13697 0 0 if ( errcode )
13699 0 0 if (node->next != NULL)
13701 0 0 if (node->next->tag == NULL)
13706 0 0 if (IsWhitespace (word) == no)
13714 0 0 if ( !HasDescription )
13724 0 0 if (Level2_Enabled( doc ))
13727 0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
13729 0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
13733 0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
13741 0 0 if (Level2_Enabled( doc ))
13743 0 0 if ((node->content != NULL)&&
0 0 if ((node->content != NULL)&&
13751 0 0 if (TY_(tmbstrcmp) (word, "more") == 0)
13756 0 0 if (TY_(tmbstrcmp) (word, "click here") == 0)
13761 0 0 if (HasTriggeredLink == no)
13763 0 0 if (TY_(tmbstrlen)(word) < 6)
13769 0 0 if (TY_(tmbstrlen)(word) > 60)
13777 0 0 if (node->content == NULL)
13801 0 0 for (av = node->attributes; av != NULL; av = av->next)
13803 0 0 if (Level1_Enabled( doc ))
13811 0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
0 0 if ( attrIsALT(av) )
13814 0 0 if (av->value != NULL)
13821 0 0 if (Level2_Enabled( doc ))
13823 0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
0 0 if ( attrIsTARGET(av) )
13825 0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
0 0 if (AttrValueIs(av, "_new"))
13829 0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
0 0 else if (AttrValueIs(av, "_blank"))
13837 0 0 if (Level1_Enabled( doc ))
13840 0 0 if (HasAlt == no)
13857 0 0 if (Level1_Enabled( doc ))
13860 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) )
13882 0 0 for (; node != NULL; node = node->next )
13885 0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
13888 0 0 if ( TY_(nodeIsText)(node->content->content) )
13891 0 0 if ( !IsWhitespace(word) )
13897 0 0 if (numTR == numValidTH)
13900 0 0 if ( numTR >= 2 &&
0 0 if ( numTR >= 2 &&
13901 0 0 numTR > numValidTH &&
13902 0 0 numValidTH >= 2 &&
13924 0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
0 0 if ( nodeIsTH(node->content) )
13928 0 0 for ( tnode = node->content; tnode; tnode = tnode->next )
13930 0 0 if ( nodeIsTH(tnode) )
0 0 if ( nodeIsTH(tnode) )
0 0 if ( nodeIsTH(tnode) )
13932 0 0 if ( TY_(nodeIsText)(tnode->content) )
13935 0 0 if ( !IsWhitespace(word) )
13946 0 0 if ( !isMissingHeader && numTH > 0 )
0 0 if ( !isMissingHeader && numTH > 0 )
13949 0 0 if ( isMissingHeader && numTH >= 2 )
0 0 if ( isMissingHeader && numTH >= 2 )
13968 0 0 if (Level3_Enabled( doc ))
13971 0 0 for (av = node->attributes; av != NULL; av = av->next)
13973 0 0 if ( attrIsABBR(av) )
0 0 if ( attrIsABBR(av) )
0 0 if ( attrIsABBR(av) )
14005 0 0 if ((TY_(tmbstrlen)(word) > 15)&&
0 0 if ((TY_(tmbstrlen)(word) > 15)&&
14034 0 0 if (Level1_Enabled( doc ))
14036 0 0 if (node->content != NULL)
14044 0 0 while (TNode != NULL)
14046 0 0 if ( nodeIsTR(TNode) )
0 0 if ( nodeIsTR(TNode) )
0 0 if ( nodeIsTR(TNode) )
14049 0 0 if (TNode->content != NULL)
14054 0 0 if (flag == 0)
14056 0 0 while (temp != NULL)
14062 0 0 if ( nodeIsTH(temp) )
0 0 if ( nodeIsTH(temp) )
0 0 if ( nodeIsTH(temp) )
14065 0 0 for (av = temp->attributes; av != NULL; av = av->next)
14067 0 0 if ( attrIsCOLSPAN(av)
0 0 if ( attrIsCOLSPAN(av)
0 0 if ( attrIsCOLSPAN(av)
14068 0 0 && (atoi(av->value) > 1) )
14071 0 0 if ( attrIsROWSPAN(av)
0 0 if ( attrIsROWSPAN(av)
0 0 if ( attrIsROWSPAN(av)
14072 0 0 && (atoi(av->value) > 1) )
14089 0 0 if (validColSpanRows == no)
14095 0 0 if (validColSpanColumns == no)
14125 0 0 if (Level3_Enabled( doc ))
14129 0 0 for (av = node->attributes; av != NULL; av = av->next)
14131 0 0 if ( attrIsSUMMARY(av) )
0 0 if ( attrIsSUMMARY(av) )
0 0 if ( attrIsSUMMARY(av) )
14133 0 0 if ( hasValue(av) )
14137 0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
0 0 if (AttrContains(av, "summary") &&
14138 0 0 AttrContains(av, "table"))
0 0 AttrContains(av, "table"))
14144 0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
0 0 if ( av->value == NULL || TY_(tmbstrlen)(av->value) == 0 )
14149 0 0 else if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
0 0 else if ( IsWhitespace(av->value) && TY_(tmbstrlen)(av->value) > 0 )
14158 0 0 if (node->content == NULL)
14166 0 0 if (Level1_Enabled( doc ))
14172 0 0 if (Level2_Enabled( doc ))
14175 0 0 if ( nodeIsCAPTION(node->content) )
0 0 if ( nodeIsCAPTION(node->content) )
0 0 if ( nodeIsCAPTION(node->content) )
14179 0 0 if (TNode->content && TNode->content->tag == NULL)
0 0 if (TNode->content && TNode->content->tag == NULL)
14184 0 0 if ( !IsWhitespace(word) )
14190 0 0 if (HasCaption == no)
14197 0 0 if (node->content != NULL)
14199 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) )
14203 0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
14209 0 0 if ( ! doc->access.HasValidColumnHeaders )
14211 0 0 if (node->content != NULL)
14213 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) )
14217 0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
0 0 else if ( nodeIsTR(node->content) )
14225 0 0 if (Level3_Enabled( doc ))
14228 0 0 if (HasSummary == no)
14234 0 0 if (Level2_Enabled( doc ))
14236 0 0 if (node->content != NULL)
14240 0 0 while (temp != NULL)
14242 0 0 if ( nodeIsTR(temp) )
0 0 if ( nodeIsTR(temp) )
0 0 if ( nodeIsTR(temp) )
14250 0 0 if (numTR == 1)
14256 0 0 if ( doc->access.HasTH )
14262 0 0 if (Level1_Enabled( doc ))
14264 0 0 if ( doc->access.CheckedHeaders == 2 )
14266 0 0 if ( !doc->access.HasValidRowHeaders &&
0 0 if ( !doc->access.HasValidRowHeaders &&
14267 0 0 !doc->access.HasValidColumnHeaders &&
14268 0 0 !doc->access.HasInvalidRowHeader &&
14274 0 0 if ( !doc->access.HasValidRowHeaders &&
0 0 if ( !doc->access.HasValidRowHeaders &&
14280 0 0 if ( !doc->access.HasValidColumnHeaders &&
0 0 if ( !doc->access.HasValidColumnHeaders &&
14313 0 0 if (Level1_Enabled( doc ) && node->content)
0 0 if (Level1_Enabled( doc ) && node->content)
14319 0 0 for (i = node->content->start + 1; i < node->content->end; i++)
14324 0 0 if (doc->lexer->lexbuf[i] == '\n')
14332 0 0 for (x = i; x < i + 5; x++)
14334 0 0 if (doc->lexer->lexbuf[x] == compareLetter)
14346 0 0 if (matchingCount >= 5)
14356 0 0 if (newLines >= 6 || matchingCount >= 5)
0 0 if (newLines >= 6 || matchingCount >= 5)
14362 0 0 if (IsAscii == yes)
14364 0 0 if (node->prev != NULL && node->prev->prev != NULL)
0 0 if (node->prev != NULL && node->prev->prev != NULL)
14369 0 0 for (av = temp1->attributes; av != NULL; av = av->next)
14371 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) )
14381 0 0 if (Level2_Enabled( doc ))
14387 0 0 if (HasSkipOverLink == 1)
14389 0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
0 0 if ( nodeIsA(node->next) )
14394 0 0 for (av = temp2->attributes; av != NULL; av = av->next)
14396 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) )
14403 0 0 if ( strstr(skipOver, av->value) != NULL )
14412 0 0 if (IsAscii == yes)
14415 0 0 if (Level3_Enabled( doc ) && (HasSkipOverLink < 2))
0 0 if (Level3_Enabled( doc ) && (HasSkipOverLink < 2))
14432 0 0 if ( !doc->access.HasValidFor &&
0 0 if ( !doc->access.HasValidFor &&
14438 0 0 if ( !doc->access.HasValidId &&
0 0 if ( !doc->access.HasValidId &&
14444 0 0 if ( !doc->access.HasValidId &&
0 0 if ( !doc->access.HasValidId &&
14460 0 0 if (Level2_Enabled( doc ))
14464 0 0 if ( hasValue(av) )
14467 0 0 if ( ++doc->access.ForID == 2 )
14487 0 0 if (Level2_Enabled( doc ))
14492 0 0 for (av = node->attributes; av != NULL; av = av->next)
14495 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) )
14499 0 0 if ( ++doc->access.ForID == 2 )
14522 0 0 for (av = node->attributes; av != NULL; av = av->next)
14525 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) )
14527 0 0 if (Level1_Enabled( doc ))
14529 0 0 if (AttrValueIs(av, "image"))
0 0 if (AttrValueIs(av, "image"))
0 0 if (AttrValueIs(av, "image"))
14537 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) )
14543 0 0 if ( MustHaveAlt && !HasAlt )
0 0 if ( MustHaveAlt && !HasAlt )
14564 0 0 if (Level1_Enabled( doc ))
14566 0 0 if ( doc->badAccess & BA_INVALID_LINK_NOFRAMES )
14571 0 0 for ( temp = node->content; temp != NULL ; temp = temp->next )
14573 0 0 if ( nodeIsNOFRAMES(temp) )
0 0 if ( nodeIsNOFRAMES(temp) )
0 0 if ( nodeIsNOFRAMES(temp) )
14577 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) )
14580 0 0 if ( TY_(nodeIsText)(para->content) )
14583 0 0 if ( word && strstr(word, "browser") != NULL )
0 0 if ( word && strstr(word, "browser") != NULL )
14587 0 0 else if (temp->content == NULL)
14595 0 0 if (HasNoFrames == no)
14619 0 0 if (Level2_Enabled( doc ))
14625 0 0 if (node->content != NULL && node->content->tag == NULL)
0 0 if (node->content != NULL && node->content->tag == NULL)
14629 0 0 for (i = 0; i < TY_(tmbstrlen)(word); i++)
14631 0 0 if (word[i] == ' ')
14637 0 0 if (numWords > 20)
14646 0 0 if ( TY_(nodeIsHeader)(node) )
14651 0 0 for ( temp = node->next; temp != NULL; temp = temp->next )
14654 0 0 if ( nested >= level )
14662 0 0 if ( !IsValidIncrease )
14665 0 0 if ( NeedsDescription )
14684 0 0 if (Level2_Enabled( doc ))
14687 0 0 if (node->content != NULL)
14689 0 0 if (node->content->tag != NULL)
14693 0 0 while (temp != NULL)
14695 0 0 if (temp->tag == NULL)
14705 0 0 if ( !IsNotHeader )
14707 0 0 if ( nodeIsSTRONG(node->content) )
0 0 if ( nodeIsSTRONG(node->content) )
0 0 if ( nodeIsSTRONG(node->content) )
14712 0 0 if ( nodeIsU(node->content) )
0 0 if ( nodeIsU(node->content) )
0 0 if ( nodeIsU(node->content) )
14717 0 0 if ( nodeIsEM(node->content) )
0 0 if ( nodeIsEM(node->content) )
0 0 if ( nodeIsEM(node->content) )
14736 0 0 if (Level1_Enabled( doc ))
14739 0 0 if ( hasValue(av) && IsValidMediaExtension(av->value) )
0 0 if ( hasValue(av) && IsValidMediaExtension(av->value) )
14758 0 0 if (Level3_Enabled( doc ))
14761 0 0 if ( av )
14764 0 0 if ( !hasValue(av) )
14767 0 0 if ( !ValidLang )
14783 0 0 if (Level2_Enabled( doc ))
14786 0 0 if ( TY_(nodeIsText)(node->content) )
14789 0 0 if ( !IsWhitespace(word) )
14808 0 0 if (Level2_Enabled( doc ))
14811 0 0 if ( TY_(nodeIsText)(node) )
14814 0 0 if ( !IsWhitespace(word) )
14836 0 0 if (Level1_Enabled( doc ))
14840 0 0 for (av = node->attributes; av != NULL; av = av->next)
14842 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) )
14844 0 0 if (AttrContains(av, "stylesheet"))
0 0 if (AttrContains(av, "stylesheet"))
0 0 if (AttrContains(av, "stylesheet"))
14848 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) )
14854 0 0 if (HasRel && HasType)
0 0 if (HasRel && HasType)
14869 0 0 if (Level1_Enabled( doc ))
14886 0 0 if (Level1_Enabled( doc ))
14889 0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
14891 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
14893 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14896 0 0 if ( msgcode )
14911 0 0 if (Level1_Enabled( doc ))
14914 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14916 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14918 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14920 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14923 0 0 if ( msgcode )
14937 0 0 if (Level1_Enabled( doc ))
14940 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14942 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14944 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14946 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14949 0 0 if ( msgcode )
14963 0 0 if (Level1_Enabled( doc ))
14966 0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
0 0 if ( nodeIsSCRIPT(node) )
14968 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
14970 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
14972 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
14976 0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
14979 0 0 if ( hasValue(av) )
14983 0 0 if ( TY_(tmbstrcasecmp)(ext, ".gif") == 0 )
14988 0 0 if ( msgcode )
15004 0 0 if (Level2_Enabled( doc ))
15007 0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
0 0 if ( nodeIsAPPLET(node) )
15009 0 0 else if ( nodeIsBASEFONT(node) )
0 0 else if ( nodeIsBASEFONT(node) )
0 0 else if ( nodeIsBASEFONT(node) )
15011 0 0 else if ( nodeIsCENTER(node) )
0 0 else if ( nodeIsCENTER(node) )
0 0 else if ( nodeIsCENTER(node) )
15013 0 0 else if ( nodeIsDIR(node) )
0 0 else if ( nodeIsDIR(node) )
0 0 else if ( nodeIsDIR(node) )
15015 0 0 else if ( nodeIsFONT(node) )
0 0 else if ( nodeIsFONT(node) )
0 0 else if ( nodeIsFONT(node) )
15017 0 0 else if ( nodeIsISINDEX(node) )
0 0 else if ( nodeIsISINDEX(node) )
0 0 else if ( nodeIsISINDEX(node) )
15019 0 0 else if ( nodeIsMENU(node) )
0 0 else if ( nodeIsMENU(node) )
0 0 else if ( nodeIsMENU(node) )
15021 0 0 else if ( nodeIsS(node) )
0 0 else if ( nodeIsS(node) )
0 0 else if ( nodeIsS(node) )
15023 0 0 else if ( nodeIsSTRIKE(node) )
0 0 else if ( nodeIsSTRIKE(node) )
0 0 else if ( nodeIsSTRIKE(node) )
15025 0 0 else if ( nodeIsU(node) )
0 0 else if ( nodeIsU(node) )
0 0 else if ( nodeIsU(node) )
15028 0 0 if ( msgcode )
15052 0 0 if (Level2_Enabled( doc ))
15056 0 0 for (av = node->attributes; av != NULL; av = av->next)
15059 0 0 if ( attrIsOnMOUSEDOWN(av) )
0 0 if ( attrIsOnMOUSEDOWN(av) )
0 0 if ( attrIsOnMOUSEDOWN(av) )
15063 0 0 if ( attrIsOnMOUSEUP(av) )
0 0 if ( attrIsOnMOUSEUP(av) )
0 0 if ( attrIsOnMOUSEUP(av) )
15067 0 0 if ( attrIsOnCLICK(av) )
0 0 if ( attrIsOnCLICK(av) )
0 0 if ( attrIsOnCLICK(av) )
15071 0 0 if ( attrIsOnMOUSEOUT(av) )
0 0 if ( attrIsOnMOUSEOUT(av) )
0 0 if ( attrIsOnMOUSEOUT(av) )
15074 0 0 if ( attrIsOnMOUSEOVER(av) )
0 0 if ( attrIsOnMOUSEOVER(av) )
0 0 if ( attrIsOnMOUSEOVER(av) )
15077 0 0 if ( attrIsOnMOUSEMOVE(av) )
0 0 if ( attrIsOnMOUSEMOVE(av) )
0 0 if ( attrIsOnMOUSEMOVE(av) )
15080 0 0 if ( attrIsOnKEYDOWN(av) )
0 0 if ( attrIsOnKEYDOWN(av) )
0 0 if ( attrIsOnKEYDOWN(av) )
15083 0 0 if ( attrIsOnKEYUP(av) )
0 0 if ( attrIsOnKEYUP(av) )
0 0 if ( attrIsOnKEYUP(av) )
15086 0 0 if ( attrIsOnKEYPRESS(av) )
0 0 if ( attrIsOnKEYPRESS(av) )
0 0 if ( attrIsOnKEYPRESS(av) )
15089 0 0 if ( attrIsOnBLUR(av) )
0 0 if ( attrIsOnBLUR(av) )
0 0 if ( attrIsOnBLUR(av) )
15093 0 0 if ( HasOnMouseDown == 1 )
15096 0 0 if ( HasOnMouseUp == 1 )
15099 0 0 if ( HasOnClick == 1 )
15101 0 0 if ( HasOnMouseOut == 1 )
15104 0 0 if ( HasOnMouseOver == 1 )
15107 0 0 if ( HasOnMouseMove == 1 )
15112 0 0 for ( content = node->content; content != NULL; content = content->next )
15134 0 0 if (Level2_Enabled( doc ))
15136 0 0 if ( nodeIsMETA(node) )
0 0 if ( nodeIsMETA(node) )
0 0 if ( nodeIsMETA(node) )
15139 0 0 for (av = node->attributes; av != NULL; av = av->next)
15141 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) )
15146 0 0 if (AttrValueIs(av, "refresh"))
0 0 if (AttrValueIs(av, "refresh"))
0 0 if (AttrValueIs(av, "refresh"))
15153 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) )
15158 0 0 if ( TY_(tmbstrncmp)(av->value, "http:", 5) == 0)
15164 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))
15170 0 0 if ( HasContent || HasHttpEquiv )
0 0 if ( HasContent || HasHttpEquiv )
15177 0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
0 0 if ( ContainsAttr && !HasContent && !HasHttpEquiv )
15182 0 0 if ( !HasMetaData &&
0 0 if ( !HasMetaData &&
15183 0 0 nodeIsADDRESS(node) &&
0 0 nodeIsADDRESS(node) &&
0 0 nodeIsADDRESS(node) &&
15184 0 0 nodeIsA(node->content) )
0 0 nodeIsA(node->content) )
15189 0 0 if ( !HasMetaData &&
0 0 if ( !HasMetaData &&
15190 0 0 !nodeIsTITLE(node) &&
15194 0 0 if ( !IsWhitespace(word) )
15198 0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
0 0 if( !HasMetaData && nodeIsLINK(node) )
15201 0 0 if( !AttrContains(av, "stylesheet") )
0 0 if( !AttrContains(av, "stylesheet") )
0 0 if( !AttrContains(av, "stylesheet") )
15206 0 0 for ( node = node->content; node; node = node->next )
15223 0 0 if (Level2_Enabled( doc ))
15239 0 0 if (Level2_Enabled( doc ))
15244 0 0 if (DTnode && DTnode->end != 0)
0 0 if (DTnode && DTnode->end != 0)
15247 0 0 if (TY_(IsHTML5Mode)(doc))
15249 0 0 if ((strstr(word, "HTML") == NULL) &&
0 0 if ((strstr(word, "HTML") == NULL) &&
15254 0 0 if ((strstr(word, "HTML PUBLIC") == NULL) &&
0 0 if ((strstr(word, "HTML PUBLIC") == NULL) &&
15259 0 0 if (!DTnode)
15285 0 0 for ( node = node->content; !found && node; node = node->next )
0 0 for ( node = node->content; !found && node; node = node->next )
15287 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
15290 0 0 found = ( hasValue(href) && urlMatch(url, href->value) );
0 0 found = ( hasValue(href) && urlMatch(url, href->value) );
15302 0 0 if (!Level3_Enabled( doc ))
15306 0 0 for ( child = node->content; child != NULL; child = child->next )
15308 0 0 if ( nodeIsAREA(child) )
0 0 if ( nodeIsAREA(child) )
0 0 if ( nodeIsAREA(child) )
15332 0 0 if (Level1_Enabled( doc ))
15336 0 0 if ( hasValue(style) )
15344 0 0 for ( content = node->content; content != NULL; content = content->next )
15357 0 0 if ( nodeIsLI(node) )
0 0 if ( nodeIsLI(node) )
0 0 if ( nodeIsLI(node) )
15361 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) )
15366 0 0 for ( node = node->content; node != NULL; node = node->next )
15385 0 0 if (!Level2_Enabled( doc ))
15388 0 0 if ( nodeIsOL(node) )
0 0 if ( nodeIsOL(node) )
0 0 if ( nodeIsOL(node) )
15390 0 0 else if ( nodeIsUL(node) )
0 0 else if ( nodeIsUL(node) )
0 0 else if ( nodeIsUL(node) )
15393 0 0 if ( msgcode )
15401 0 0 if ( !nodeIsLI(node->content) ) {
0 0 if ( !nodeIsLI(node->content) ) {
0 0 if ( !nodeIsLI(node->content) ) {
15403 0 0 } else if ( node->implicit ) { /* if a tidy added node */
15407 0 0 else if ( nodeIsLI(node) )
0 0 else if ( nodeIsLI(node) )
0 0 else if ( nodeIsLI(node) )
15417 0 0 if ( node->parent == NULL ||
0 0 if ( node->parent == NULL ||
15418 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) ) )
15421 0 0 } else if ( node->implicit && node->parent &&
0 0 } else if ( node->implicit && node->parent &&
0 0 } else if ( node->implicit && node->parent &&
15422 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) ) ) {
15424 0 0 msgcode = nodeIsUL(node->parent) ?
0 0 msgcode = nodeIsUL(node->parent) ?
15425 0 0 LIST_USAGE_INVALID_UL : LIST_USAGE_INVALID_OL;
15483 0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
15489 0 0 else if ( nodeIsHEAD(node) )
0 0 else if ( nodeIsHEAD(node) )
0 0 else if ( nodeIsHEAD(node) )
15491 0 0 if ( !CheckMetaData( doc, node, no ) )
15496 0 0 else if ( nodeIsA(node) )
0 0 else if ( nodeIsA(node) )
0 0 else if ( nodeIsA(node) )
15502 0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
0 0 else if ( nodeIsIMG(node) )
15510 0 0 else if ( nodeIsMAP(node) )
0 0 else if ( nodeIsMAP(node) )
0 0 else if ( nodeIsMAP(node) )
15516 0 0 else if ( nodeIsAREA(node) )
0 0 else if ( nodeIsAREA(node) )
0 0 else if ( nodeIsAREA(node) )
15522 0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
0 0 else if ( nodeIsAPPLET(node) )
15534 0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
0 0 else if ( nodeIsOBJECT(node) )
15545 0 0 else if ( nodeIsFRAME(node) )
0 0 else if ( nodeIsFRAME(node) )
0 0 else if ( nodeIsFRAME(node) )
15551 0 0 else if ( nodeIsIFRAME(node) )
0 0 else if ( nodeIsIFRAME(node) )
0 0 else if ( nodeIsIFRAME(node) )
15557 0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
0 0 else if ( nodeIsSCRIPT(node) )
15568 0 0 else if ( nodeIsTABLE(node) )
0 0 else if ( nodeIsTABLE(node) )
0 0 else if ( nodeIsTABLE(node) )
15575 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) )
15581 0 0 else if ( nodeIsLABEL(node) )
0 0 else if ( nodeIsLABEL(node) )
0 0 else if ( nodeIsLABEL(node) )
15587 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
15595 0 0 else if ( nodeIsFRAMESET(node) )
0 0 else if ( nodeIsFRAMESET(node) )
0 0 else if ( nodeIsFRAMESET(node) )
15601 0 0 else if ( TY_(nodeIsHeader)(node) )
15607 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
15613 0 0 else if ( nodeIsHTML(node) )
0 0 else if ( nodeIsHTML(node) )
0 0 else if ( nodeIsHTML(node) )
15619 0 0 else if ( nodeIsBLINK(node) )
0 0 else if ( nodeIsBLINK(node) )
0 0 else if ( nodeIsBLINK(node) )
15625 0 0 else if ( nodeIsMARQUEE(node) )
0 0 else if ( nodeIsMARQUEE(node) )
0 0 else if ( nodeIsMARQUEE(node) )
15631 0 0 else if ( nodeIsLINK(node) )
0 0 else if ( nodeIsLINK(node) )
0 0 else if ( nodeIsLINK(node) )
15637 0 0 else if ( nodeIsSTYLE(node) )
0 0 else if ( nodeIsSTYLE(node) )
0 0 else if ( nodeIsSTYLE(node) )
15644 0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
0 0 else if ( nodeIsEMBED(node) )
15653 0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
0 0 else if ( nodeIsBASEFONT(node) ||
15654 0 0 nodeIsCENTER(node) ||
0 0 nodeIsCENTER(node) ||
0 0 nodeIsCENTER(node) ||
15655 0 0 nodeIsISINDEX(node) ||
0 0 nodeIsISINDEX(node) ||
0 0 nodeIsISINDEX(node) ||
15656 0 0 nodeIsU(node) ||
0 0 nodeIsU(node) ||
0 0 nodeIsU(node) ||
15657 0 0 nodeIsFONT(node) ||
0 0 nodeIsFONT(node) ||
0 0 nodeIsFONT(node) ||
15658 0 0 nodeIsDIR(node) ||
0 0 nodeIsDIR(node) ||
0 0 nodeIsDIR(node) ||
15659 0 0 nodeIsS(node) ||
0 0 nodeIsS(node) ||
0 0 nodeIsS(node) ||
15660 0 0 nodeIsSTRIKE(node) ||
0 0 nodeIsSTRIKE(node) ||
0 0 nodeIsSTRIKE(node) ||
15661 0 0 nodeIsMENU(node) )
0 0 nodeIsMENU(node) )
15667 0 0 else if ( nodeIsTH(node) )
0 0 else if ( nodeIsTH(node) )
0 0 else if ( nodeIsTH(node) )
15673 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) )
15680 0 0 for ( content = node->content; content != NULL; content = content->next )
15706 0 0 if ( Level2_Enabled( doc )
15707 0 0 && ! CheckMissingStyleSheets( doc, &doc->root ) )
15772 0 0 if ( g_panic )
15787 0 225 void *p = ( g_malloc ? g_malloc(size) : malloc(size) );
15788 0 225 if ( !p )
15803 13 0 if ( mem == NULL )
15806 0 0 p = ( g_realloc ? g_realloc(mem, newsize) : realloc(mem, newsize) );
15807 0 0 if (!p)
15818 225 24 if ( mem )
15824 0 225 if ( g_free )
20001 9 0 if (attval && attval->attribute) {
9 0 if (attval && attval->attribute) {
20003 0 9 if (TY_(tmbstrncmp)(attval->attribute, "data-", 5) == 0)
20007 9 0 if (!attval || !attval->dict)
0 9 if (!attval || !attval->dict)
20010 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))
20011 443 0 for (i = 0; node->tag->attrvers[i].attribute; ++i)
20012 9 434 if (node->tag->attrvers[i].attribute == attval->dict->id)
20024 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)
20027 0 0 for (i = 0; node->tag->attrvers[i].attribute; ++i)
20028 0 0 if (node->tag->attrvers[i].attribute == id)
20041 8 0 if (!node || !attval)
0 8 if (!node || !attval)
20044 0 8 if (!node->tag)
20047 0 8 if (!(node->tag->versions & VERS_ALL))
20050 8 0 if (AttributeVersions(node, attval) & VERS_ALL)
20066 0 0 if (!node || !attval)
0 0 if (!node || !attval)
20069 0 0 if (!node->tag)
20072 0 0 if (!(node->tag->versions & VERS_ALL))
20075 0 0 doctype = doc->lexer->versionEmitted == 0 ? doc->lexer->doctype : doc->lexer->versionEmitted;
20077 0 0 if (AttributeVersions(node, attval) & doctype)
20253 0 0 for (i = 0; colors[i].name; ++i)
20254 0 0 if (TY_(tmbstrcasecmp)(name, colors[i].name) == 0)
20257 0 0 if (use_css_colors)
20258 0 0 for (i = 0; extended_colors[i].name; ++i)
20259 0 0 if (TY_(tmbstrcasecmp)(name, extended_colors[i].name) == 0)
20269 0 0 for (i = 0; colors[i].name; ++i)
20270 0 0 if (TY_(tmbstrcasecmp)(code, colors[i].hex) == 0)
20273 0 0 if (use_css_colors)
20274 0 0 for (i = 0; extended_colors[i].name; ++i)
20275 0 0 if (TY_(tmbstrcasecmp)(code, extended_colors[i].hex) == 0)
20285 113 23 for (hashval = 0; *s != '\0'; s++)
20297 8 0 if (old)
20315 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)
20317 0 0 if (TY_(tmbstrcmp)(s, p->attr->name) == 0)
20320 0 0 if ( prev )
20336 712 4 for (i = 0; i < ATTRIBUTE_HASH_SIZE; ++i)
20340 8 712 while(dict)
20358 0 15 if (!atnam)
20361 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)
20362 4 0 if (TY_(tmbstrcasecmp)(atnam, p->attr->name) == 0)
20365 1569 0 for (np = attribute_defs; np && np->name; ++np)
1566 3 for (np = attribute_defs; np && np->name; ++np)
20366 8 1558 if (TY_(tmbstrcasecmp)(atnam, np->name) == 0)
20377 13 62 for ( av = node->attributes; av; av = av->next )
20379 13 0 if ( AttrIsId(av, id) )
13 0 if ( AttrIsId(av, id) )
1 12 if ( AttrIsId(av, id) )
20388 1 0 if ( attval )
20396 2 4 for (attr = node->attributes; attr != NULL; attr = attr->next)
20398 2 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
1 1 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
20408 0 0 for (attr = node->attributes; attr != NULL; prev = attr, attr = next)
20412 0 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
0 0 if (attr->attribute && TY_(tmbstrcmp)(attr->attribute, name) == 0)
20414 0 0 if (prev)
20432 7 3 if (value)
20447 0 3 if (old)
20449 0 0 if (old->value)
20451 0 0 if (value)
20467 0 4 if ( priorities->list )
20470 0 0 while ( priorities->list[i] != NULL )
20486 0 0 if ( !priorities->list )
20494 0 0 if ( priorities->count >= priorities->capacity )
20520 0 0 assert( iter != NULL );
20523 0 0 if ( index > 0 && index <= priorities->count )
0 0 if ( index > 0 && index <= priorities->count )
20528 0 0 *iter = (TidyIterator) ( index <= priorities->count ? index : (size_t)0 );
20538 4 0 return (Bool)( np && np->attrchk == type );
0 4 return (Bool)( np && np->attrchk == type );
20561 29 0 TidyTagId tid = TagId( node );
19 10 TidyTagId tid = TagId( node );
20562 29 0 if ( tid == TidyTag_A ||
29 0 if ( tid == TidyTag_A ||
20563 29 0 tid == TidyTag_APPLET ||
20564 29 0 tid == TidyTag_FORM ||
20565 29 0 tid == TidyTag_FRAME ||
20566 28 1 tid == TidyTag_IFRAME ||
20567 0 28 tid == TidyTag_IMG ||
20595 0 0 for ( pos=0; valid && (c = *buf++); ++pos )
0 0 for ( pos=0; valid && (c = *buf++); ++pos )
20597 0 0 if ( c == '\\' )
20601 0 0 else if ( isdigit( c ) )
20604 0 0 if ( esclen > 0 )
20606 0 0 if ( valid )
20607 0 0 valid = ( pos>0 || esclen>0 );
0 0 valid = ( pos>0 || esclen>0 );
20613 0 0 || ( pos>0 && c == '-' ) /* Dash cannot be 1st char */
0 0 || ( pos>0 && c == '-' ) /* Dash cannot be 1st char */
20614 0 0 || isalpha(c) /* a-z, A-Z anywhere */
20615 0 0 || ( c >= 161 ) /* Unicode 161-255 anywhere */
0 0 || ( c >= 161 ) /* Unicode 161-255 anywhere */
20626 0 0 if ( a )
20635 0 0 if (s)
20637 0 0 for ( ; *s != '\0'; s++) {
20654 0 0 if (s)
20656 0 0 for ( ; *s != '\0'; s++) {
20675 0 0 if (TY_(HTMLVersion)(doc) == HT50)
20680 0 0 for ( curr=attribs->anchor_hash[h]; curr!=NULL; curr=curr->next )
20682 0 0 if ( curr->node == node )
20684 0 0 if ( prev )
20704 0 0 if (!TY_(IsHTML5Mode)(doc)) /* Is. #726 - if NOT HTML5, to lowercase */
20722 0 0 if (TY_(HTMLVersion)(doc) == HT50)
20727 0 0 if ( attribs->anchor_hash[h] == NULL)
20732 0 0 while (here->next)
20751 0 0 if (TY_(HTMLVersion)(doc) == HT50) {
20760 0 0 for ( found = attribs->anchor_hash[h]; found != NULL; found = found->next )
20762 0 0 if ( TY_(tmbstrcmp)(found->name, lname) == 0 )
20767 0 0 if ( found )
20778 7147 7 for (h = 0; h < ANCHOR_HASH_SIZE; h++) {
20779 0 7147 while (NULL != (a = attribs->anchor_hash[h]) )
20809 0 4 while ( NULL != (dict = attribs->declared_attr_list) )
20831 0 0 if (classattr->value)
20837 0 0 if (classattr->value)
20852 0 0 if (end >0 && styleattr->value[end - 1] == ';')
0 0 if (end >0 && styleattr->value[end - 1] == ';')
20862 0 0 else if (end >0 && styleattr->value[end - 1] == '}')
0 0 else if (end >0 && styleattr->value[end - 1] == '}')
20880 0 0 if (end > 0)
20894 0 0 id1 = AttrId(av1);
0 0 id1 = AttrId(av1);
20895 0 0 id2 = AttrId(av2);
0 0 id2 = AttrId(av2);
20896 0 0 if (id1 != TidyAttr_UNKNOWN && id2 != TidyAttr_UNKNOWN)
0 0 if (id1 != TidyAttr_UNKNOWN && id2 != TidyAttr_UNKNOWN)
20897 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);
20898 0 0 if (id1 != TidyAttr_UNKNOWN || id2 != TidyAttr_UNKNOWN)
0 0 if (id1 != TidyAttr_UNKNOWN || id2 != TidyAttr_UNKNOWN)
20900 0 0 if (av1->attribute && av2->attribute)
0 0 if (av1->attribute && av2->attribute)
20909 1 5 for (first = node->attributes; first != NULL;)
20914 1 0 if (!(first->asp == NULL && first->php == NULL))
0 1 if (!(first->asp == NULL && first->php == NULL))
20920 0 1 for (second = first->next; second != NULL;)
20924 0 0 if (!(second->asp == NULL && second->php == NULL
20934 0 0 if (!isXml
20935 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)
20936 0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
20947 0 0 else if (!isXml
20948 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)
20949 0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
0 0 && AttrHasValue(first) && AttrHasValue(second))
20958 0 0 else if ( cfg(doc, TidyDuplicateAttrs) == TidyKeepLast )
20975 1 0 if (!firstRedefined)
20985 1 0 if ( attribute != NULL )
20987 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))
20990 0 0 if (!cfgBool(doc, TidyHtmlOut))
20999 1 0 if (attribute->attrchk)
21008 0 0 const Attribute *attribute = ( attval ? attval->dict : NULL );
21009 0 0 if ( attribute && attribute->attrchk == CH_BOOL )
0 0 if ( attribute && attribute->attrchk == CH_BOOL )
21016 0 0 TidyAttrId atid = AttrId( attval );
0 0 TidyAttrId atid = AttrId( attval );
21018 0 0 return (atid == TidyAttr_OnAFTERUPDATE ||
21019 0 0 atid == TidyAttr_OnBEFOREUNLOAD ||
21020 0 0 atid == TidyAttr_OnBEFOREUPDATE ||
21021 0 0 atid == TidyAttr_OnBLUR ||
21022 0 0 atid == TidyAttr_OnCHANGE ||
21023 0 0 atid == TidyAttr_OnCLICK ||
21024 0 0 atid == TidyAttr_OnDATAAVAILABLE ||
21025 0 0 atid == TidyAttr_OnDATASETCHANGED ||
21026 0 0 atid == TidyAttr_OnDATASETCOMPLETE ||
21027 0 0 atid == TidyAttr_OnDBLCLICK ||
21028 0 0 atid == TidyAttr_OnERRORUPDATE ||
21029 0 0 atid == TidyAttr_OnFOCUS ||
21030 0 0 atid == TidyAttr_OnKEYDOWN ||
21031 0 0 atid == TidyAttr_OnKEYPRESS ||
21032 0 0 atid == TidyAttr_OnKEYUP ||
21033 0 0 atid == TidyAttr_OnLOAD ||
21034 0 0 atid == TidyAttr_OnMOUSEDOWN ||
21035 0 0 atid == TidyAttr_OnMOUSEMOVE ||
21036 0 0 atid == TidyAttr_OnMOUSEOUT ||
21037 0 0 atid == TidyAttr_OnMOUSEOVER ||
21038 0 0 atid == TidyAttr_OnMOUSEUP ||
21039 0 0 atid == TidyAttr_OnRESET ||
21040 0 0 atid == TidyAttr_OnROWENTER ||
21041 0 0 atid == TidyAttr_OnROWEXIT ||
21042 0 0 atid == TidyAttr_OnSELECT ||
21043 0 0 atid == TidyAttr_OnSUBMIT ||
0 0 atid == TidyAttr_OnSUBMIT ||
21052 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21057 0 0 while (*p)
21059 0 0 if (TY_(IsUpper)(*p)) /* #501230 - fix by Terry Teague - 09 Jan 02 */
21067 0 0 if (hasUpper)
21070 0 0 if (lexer->isvoyager)
21073 0 0 if ( lexer->isvoyager || cfgBool(doc, TidyLowerLiterals) )
0 0 if ( lexer->isvoyager || cfgBool(doc, TidyLowerLiterals) )
21094 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 ) ||
21095 6 0 c == '%' || /* not a valid codepoint, but an escape sequence */
21096 6 0 c == '#' || /* not a valid codepoint, but a delimiter */
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 6 0 c == '+' ||
21105 6 0 c == ',' ||
21106 4 2 c == '-' ||
21107 1 3 c == '.' ||
21108 0 1 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 == '_' ||
21115 0 0 c == '~' ||
21116 0 0 (c >= 0x00A0 && c <= 0xD7FF) ||
0 0 (c >= 0x00A0 && c <= 0xD7FF) ||
21117 0 0 (c >= 0xE000 && c <= 0xFDCF) ||
0 0 (c >= 0xE000 && c <= 0xFDCF) ||
21118 0 0 (c >= 0xFDF0 && c <= 0xFFEF) ||
0 0 (c >= 0xFDF0 && c <= 0xFFEF) ||
21119 0 0 (c >= 0x10000 && c <= 0x1FFFD) ||
0 0 (c >= 0x10000 && c <= 0x1FFFD) ||
21120 0 0 (c >= 0x20000 && c <= 0x2FFFD) ||
0 0 (c >= 0x20000 && c <= 0x2FFFD) ||
21121 0 0 (c >= 0x30000 && c <= 0x3FFFD) ||
0 0 (c >= 0x30000 && c <= 0x3FFFD) ||
21122 0 0 (c >= 0x40000 && c <= 0x4FFFD) ||
0 0 (c >= 0x40000 && c <= 0x4FFFD) ||
21123 0 0 (c >= 0x50000 && c <= 0x5FFFD) ||
0 0 (c >= 0x50000 && c <= 0x5FFFD) ||
21124 0 0 (c >= 0x60000 && c <= 0x6FFFD) ||
0 0 (c >= 0x60000 && c <= 0x6FFFD) ||
21125 0 0 (c >= 0x70000 && c <= 0x7FFFD) ||
0 0 (c >= 0x70000 && c <= 0x7FFFD) ||
21126 0 0 (c >= 0x80000 && c <= 0x8FFFD) ||
0 0 (c >= 0x80000 && c <= 0x8FFFD) ||
21127 0 0 (c >= 0x90000 && c <= 0x9FFFD) ||
0 0 (c >= 0x90000 && c <= 0x9FFFD) ||
21128 0 0 (c >= 0xA0000 && c <= 0xAFFFD) ||
0 0 (c >= 0xA0000 && c <= 0xAFFFD) ||
21129 0 0 (c >= 0xB0000 && c <= 0xBFFFD) ||
0 0 (c >= 0xB0000 && c <= 0xBFFFD) ||
21130 0 0 (c >= 0xC0000 && c <= 0xCFFFD) ||
0 0 (c >= 0xC0000 && c <= 0xCFFFD) ||
21131 0 0 (c >= 0xD0000 && c <= 0xDFFFD) ||
0 0 (c >= 0xD0000 && c <= 0xDFFFD) ||
21132 0 0 (c >= 0xE0000 && c <= 0xEFFFD) ||
0 0 (c >= 0xE0000 && c <= 0xEFFFD) ||
21133 19 6 (c >= 0xF0000 && c <= 0xFFFFD) ||
0 0 (c >= 0xF0000 && c <= 0xFFFFD) ||
0 0 (c >= 0xF0000 && c <= 0xFFFFD) ||
21134 0 0 (c >= 0x100000 && c <= 0x10FFFD);
21147 1 0 if (!AttrHasValue(attval))
0 1 if (!AttrHasValue(attval))
21158 25 1 for (i = 0; '\0' != (c = p[i]); ++i)
21160 0 25 if (c == '\\')
21163 0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript)
0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript)
21166 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)))
21170 25 1 while ( *p != 0 )
21172 0 25 if ( !IsURLCodePoint( p, &increment ) )
21178 1 0 if ( cfgBool(doc, TidyFixUri) && escape_count )
0 1 if ( cfgBool(doc, TidyFixUri) && escape_count )
21184 0 0 for (i = 0; 0 != (c = p[i]); ++i)
21186 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)))
21188 0 0 if (c == 0x20)
21191 0 0 if (hadnonspace)
21211 0 1 if ( backslash_count )
21213 0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript )
0 0 if ( cfgBool(doc, TidyFixBackslash) && !isJavascript )
21218 0 1 if ( escape_count )
21220 0 0 if ( cfgBool(doc, TidyFixUri) )
21222 0 0 else if ( !(TY_(HTMLVersion)(doc) & VERS_HTML5) )
21227 0 1 if ( bad_codepoint_count )
21241 0 0 if (AttrHasValue(attval))
0 0 if (AttrHasValue(attval))
21254 0 0 if (!s)
21257 0 0 while (*s)
21258 0 0 if (TY_(IsHTMLSpace)(*s++))
21270 0 0 if (!s)
21274 0 0 if (c > 0x7F)
21277 0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
0 0 if (!(TY_(IsXMLLetter)(c) || c == '_' || c == ':'))
21280 0 0 while (*s)
21284 0 0 if (c > 0x7F)
21289 0 0 if (!TY_(IsXMLNamechar)(c))
21301 0 0 if (!s)
21304 0 0 while (*s)
21308 0 0 if (c > 0x7F)
21313 0 0 if (!TY_(IsXMLNamechar)(c))
21323 0 0 for (v = list; *v; ++v)
21324 0 0 if (AttrValueIs(attval, *v))
0 0 if (AttrValueIs(attval, *v))
0 0 if (AttrValueIs(attval, *v))
21332 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21340 0 0 if (!AttrValueIsAmong(attval, list))
21348 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21354 0 0 if ( TY_(IsAnchorElement)(doc, node) )
21356 0 0 if (cfgBool(doc, TidyXmlOut) && !IsValidNMTOKEN(attval->value))
0 0 if (cfgBool(doc, TidyXmlOut) && !IsValidNMTOKEN(attval->value))
21359 0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
21361 0 0 if (node->implicit) /* Is #709 - improve warning text */
21376 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21382 0 0 if (!TY_(IsValidHTMLID)(attval->value))
21384 0 0 if (lexer->isvoyager && TY_(IsValidXMLID)(attval->value))
0 0 if (lexer->isvoyager && TY_(IsValidXMLID)(attval->value))
21390 0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
0 0 if ((old = GetNodeByAnchor(doc, attval->value)) && old != node)
21392 0 0 if (node->implicit) /* Is #709 - improve warning text */
21408 0 0 if ( ( ptr && (ptr - node->element > 0) ) )
0 0 if ( ( ptr && (ptr - node->element > 0) ) )
21418 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21426 0 0 go = ( ptr && (ptr - attval->value > 0) );
0 0 go = ( ptr && (ptr - attval->value > 0) );
21429 0 0 if ( !go )
21437 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21448 0 0 if (node->tag && (node->tag->model & CM_IMG))
0 0 if (node->tag && (node->tag->model & CM_IMG))
21454 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21463 0 0 if (nodeIsCAPTION(node))
0 0 if (nodeIsCAPTION(node))
0 0 if (nodeIsCAPTION(node))
21466 0 0 if (!AttrValueIsAmong(attval, values))
21470 0 0 if( !(AttrValueIs(attval, "char")
0 0 if( !(AttrValueIs(attval, "char")
21483 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21491 0 0 if (AttrValueIsAmong(attval, values))
21495 0 0 else if (AttrValueIsAmong(attval, values2))
21497 0 0 if (!(node->tag && (node->tag->model & CM_IMG)))
0 0 if (!(node->tag && (node->tag->model & CM_IMG)))
21500 0 0 else if (AttrValueIsAmong(attval, valuesp))
21513 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21520 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)))
21525 0 0 if (!TY_(IsDigit)(*p++))
21532 0 0 while (*p)
21534 0 0 if (!percentFound && *p == '%')
0 0 if (!percentFound && *p == '%')
21538 0 0 else if (percentFound || !TY_(IsDigit)(*p))
0 0 else if (percentFound || !TY_(IsDigit)(*p))
21553 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21560 0 0 if (TY_(IsLetter)(attval->value[0]))
21564 0 0 if (!AttrValueIsAmong(attval, values))
21578 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21581 0 0 if (attval->value == NULL)
21588 0 0 if (!AttrValueIsAmong(attval, values))
21608 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21615 0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
0 0 if ( nodeIsFRAMESET(node) &&
21616 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)))
21622 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 == '-') )
21625 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 == '-'))
21628 0 0 while (*p)
21630 0 0 if (!TY_(IsDigit)(*p))
21644 0 0 if (TY_(tmbstrlen)(color) != 6)
21648 0 0 for (i = 0; i < 6; i++)
21649 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])))
21661 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21670 0 0 if (given[0] != '#' && (valid = IsValidColorCode(given)))
0 0 if (given[0] != '#' && (valid = IsValidColorCode(given)))
21676 0 0 while ('\0' != (*cp++ = *given++))
21685 0 0 if (!valid && given[0] == '#')
0 0 if (!valid && given[0] == '#')
21688 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))
21692 0 0 if (newName)
21700 0 0 if (!valid)
21703 0 0 if (valid && given[0] == '#')
0 0 if (valid && given[0] == '#')
21705 0 0 else if (valid)
21708 0 0 if (!valid)
21732 0 0 CheckAttrValidity(doc, node, attval,
21740 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))
21742 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
21769 0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
21771 0 0 else if (nodeIsBUTTON(node))
0 0 else if (nodeIsBUTTON(node))
0 0 else if (nodeIsBUTTON(node))
21773 0 0 else if (nodeIsUL(node))
0 0 else if (nodeIsUL(node))
0 0 else if (nodeIsUL(node))
21775 0 0 else if (nodeIsOL(node))
0 0 else if (nodeIsOL(node))
0 0 else if (nodeIsOL(node))
21777 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21782 0 0 if (!AttrValueIsAmong(attval, valuesOL))
21785 0 0 else if (nodeIsLI(node))
0 0 else if (nodeIsLI(node))
0 0 else if (nodeIsLI(node))
21787 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21792 0 0 if (AttrValueIsAmong(attval, valuesUL))
21794 0 0 else if (!AttrValueIsAmong(attval, valuesOL))
21808 0 0 if (*p == '+' || *p == '-')
0 0 if (*p == '+' || *p == '-')
21811 0 0 while (*p)
21814 0 0 if (*p == '.')
21816 0 0 if (!hasPoint)
21823 0 0 if (!TY_(IsDigit)(*p))
21834 0 0 return attrIsCOLOR(attval)
0 0 return attrIsCOLOR(attval)
21835 0 0 || attrIsSVG_FILL(attval)
0 0 || attrIsSVG_FILL(attval)
0 0 || attrIsSVG_FILL(attval)
21836 0 0 || attrIsSVG_FILLRULE(attval)
0 0 || attrIsSVG_FILLRULE(attval)
0 0 || attrIsSVG_FILLRULE(attval)
21837 0 0 || attrIsSVG_STROKE(attval)
0 0 || attrIsSVG_STROKE(attval)
0 0 || attrIsSVG_STROKE(attval)
21838 0 0 || attrIsSVG_STROKEDASHARRAY(attval)
0 0 || attrIsSVG_STROKEDASHARRAY(attval)
0 0 || attrIsSVG_STROKEDASHARRAY(attval)
21839 0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
0 0 || attrIsSVG_STROKEDASHOFFSET(attval)
21840 0 0 || attrIsSVG_STROKELINECAP(attval)
0 0 || attrIsSVG_STROKELINECAP(attval)
0 0 || attrIsSVG_STROKELINECAP(attval)
21841 0 0 || attrIsSVG_STROKELINEJOIN(attval)
0 0 || attrIsSVG_STROKELINEJOIN(attval)
0 0 || attrIsSVG_STROKELINEJOIN(attval)
21842 0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
0 0 || attrIsSVG_STROKEMITERLIMIT(attval)
21843 0 0 || attrIsSVG_STROKEWIDTH(attval)
0 0 || attrIsSVG_STROKEWIDTH(attval)
0 0 || attrIsSVG_STROKEWIDTH(attval)
21844 0 0 || attrIsSVG_COLORINTERPOLATION(attval)
0 0 || attrIsSVG_COLORINTERPOLATION(attval)
0 0 || attrIsSVG_COLORINTERPOLATION(attval)
21845 0 0 || attrIsSVG_COLORRENDERING(attval)
0 0 || attrIsSVG_COLORRENDERING(attval)
0 0 || attrIsSVG_COLORRENDERING(attval)
21846 0 0 || attrIsSVG_OPACITY(attval)
0 0 || attrIsSVG_OPACITY(attval)
0 0 || attrIsSVG_OPACITY(attval)
21847 0 0 || attrIsSVG_STROKEOPACITY(attval)
0 0 || attrIsSVG_STROKEOPACITY(attval)
0 0 || attrIsSVG_STROKEOPACITY(attval)
21848 0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
0 0 || attrIsSVG_FILLOPACITY(attval);
21854 0 0 if (!nodeIsSVG(node))
0 0 if (!nodeIsSVG(node))
0 0 if (!nodeIsSVG(node))
21861 0 0 if (IsSvgPaintAttr(attval))
21864 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
21871 0 0 if (AttrValueIs(attval, "inherit"))
0 0 if (AttrValueIs(attval, "inherit"))
0 0 if (AttrValueIs(attval, "inherit"))
21879 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))
21885 0 0 if (AttrValueIsAmong(attval, values))
21890 0 0 else if (attrIsSVG_FILLRULE(attval))
0 0 else if (attrIsSVG_FILLRULE(attval))
0 0 else if (attrIsSVG_FILLRULE(attval))
21894 0 0 if (AttrValueIsAmong(attval, values))
21899 0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
0 0 else if (attrIsSVG_STROKEDASHARRAY(attval))
21903 0 0 if (AttrValueIsAmong(attval, values))
21910 0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
0 0 else if (attrIsSVG_STROKEDASHOFFSET(attval))
21914 0 0 else if (attrIsSVG_STROKELINECAP(attval))
0 0 else if (attrIsSVG_STROKELINECAP(attval))
0 0 else if (attrIsSVG_STROKELINECAP(attval))
21918 0 0 if (AttrValueIsAmong(attval, values))
21923 0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
0 0 else if (attrIsSVG_STROKELINEJOIN(attval))
21927 0 0 if (AttrValueIsAmong(attval, values))
21932 0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
0 0 else if (attrIsSVG_STROKEMITERLIMIT(attval))
21936 0 0 else if (attrIsSVG_STROKEWIDTH(attval))
0 0 else if (attrIsSVG_STROKEWIDTH(attval))
0 0 else if (attrIsSVG_STROKEWIDTH(attval))
21940 0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
0 0 else if (attrIsSVG_COLORINTERPOLATION(attval))
21944 0 0 if (AttrValueIsAmong(attval, values))
21949 0 0 else if (attrIsSVG_COLORRENDERING(attval))
0 0 else if (attrIsSVG_COLORRENDERING(attval))
0 0 else if (attrIsSVG_COLORRENDERING(attval))
21954 0 0 if (AttrValueIsAmong(attval, values))
21959 0 0 else if(attrIsSVG_OPACITY(attval))
0 0 else if(attrIsSVG_OPACITY(attval))
0 0 else if(attrIsSVG_OPACITY(attval))
21963 0 0 else if(attrIsSVG_STROKEOPACITY(attval))
0 0 else if(attrIsSVG_STROKEOPACITY(attval))
0 0 else if(attrIsSVG_STROKEOPACITY(attval))
21967 0 0 else if(attrIsSVG_FILLOPACITY(attval))
0 0 else if(attrIsSVG_FILLOPACITY(attval))
0 0 else if(attrIsSVG_FILLOPACITY(attval))
21979 29 19 while (node)
21982 16 13 if (node->content)
22026 0 0 if ( list )
22029 0 0 while ( list[i] != NULL ) {
22030 0 0 if ( TY_(tmbstrcasecmp)(item, list[i]) == 0 )
22049 0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
22050 0 0 return oneIndex < twoIndex ? -1 : 1;
22053 0 0 if ( oneIndex >= 0 && twoIndex == -1 )
0 0 if ( oneIndex >= 0 && twoIndex == -1 )
22057 0 0 if ( oneIndex == -1 && twoIndex >= 0 )
0 0 if ( oneIndex == -1 && twoIndex >= 0 )
22075 0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
0 0 if ( oneIndex >= 0 && twoIndex >= 0 )
22076 0 0 return oneIndex < twoIndex ? -1 : 1;
22079 0 0 if ( oneIndex >= 0 && twoIndex == -1 )
0 0 if ( oneIndex >= 0 && twoIndex == -1 )
22083 0 0 if ( oneIndex == -1 && twoIndex >= 0 )
0 0 if ( oneIndex == -1 && twoIndex >= 0 )
22100 0 29 if ( list && list[0] )
0 0 if ( list && list[0] )
22122 22 7 if (!list)
22126 7 0 if (ptComparator == 0)
22138 0 0 while (p) {
22143 0 0 for (i = 0; i < insize; i++) {
22146 0 0 if(!q) break;
22153 0 0 while (psize > 0 || (qsize > 0 && q)) {
0 0 while (psize > 0 || (qsize > 0 && q)) {
0 0 while (psize > 0 || (qsize > 0 && q)) {
22156 0 0 if (psize == 0) {
22159 0 0 } else if (qsize == 0 || !q) {
0 0 } else if (qsize == 0 || !q) {
22162 0 0 } else if (ptComparator(p,q, priorityList) <= 0) {
22172 0 0 if (tail) {
22188 0 0 if (nmerges <= 1) /* allow for nmerges==0, the empty list case */
22210 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22217 0 0 if (attval->value) {
22235 0 0 while ( ( t = strtok(tPtr, " ") ) != NULL ) {
22237 0 0 if (isPrefix) {
22243 0 0 if (i == NULL) {
22246 0 0 } else if (i != ( t + TY_(tmbstrlen)(t) - 1) ) {
22266 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22280 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
22353 0 1 assert( buf != NULL );
22365 0 16 assert( buf != NULL );
22367 15 1 buf->allocator = allocator ? allocator : &TY_(g_default_allocator);
22381 0 7 assert( buf != NULL );
22388 0 1 assert( buf != NULL );
22389 0 1 if ( buf->bp )
22412 0 617 assert( buf != NULL );
22414 0 617 if ( !buf->allocator )
22417 617 0 if ( 0 == chunkSize )
22419 7 610 if ( allocSize+1 > buf->allocated )
22423 0 7 if ( buf->allocated > 0 )
22425 0 7 while ( allocAmt < allocSize+1 )
22429 7 0 if ( bp != NULL )
22441 0 4 assert( buf != NULL );
22445 0 4 if ( !buf->allocator )
22462 0 3 assert( buf != NULL );
22463 3 0 if ( vp != NULL && size > 0 )
3 0 if ( vp != NULL && size > 0 )
22473 0 614 assert( buf != NULL );
22482 0 0 assert( buf != NULL );
22483 0 0 if ( buf->size > 0 )
22495 112 0 if ( ! tidyBufEndOfInput(buf) )
22507 9 0 if ( buf->next > 0 )
22510 0 9 assert( bv == buf->bp[ buf->next ] );
23483 0 0 for (i = 0; charsetInfo[i].id; ++i)
23484 0 0 if (TY_(tmbstrcasecmp)(name, charsetInfo[i].charset) == 0)
23494 0 0 for (i = 0; charsetInfo[i].id; ++i)
23495 0 0 if (cp == charsetInfo[i].codepage)
23505 0 0 for (i = 0; charsetInfo[i].id; ++i)
23506 0 0 if (TY_(tmbstrcasecmp)(name, charsetInfo[i].charset) == 0)
23516 0 0 for (i = 0; charsetInfo[i].id; ++i)
23517 0 0 if (id == charsetInfo[i].id)
23527 0 0 for (i = 0; charsetInfo[i].id; ++i)
23528 0 0 if (id == charsetInfo[i].id)
23538 0 0 for (i = 0; charsetInfo[i].id; ++i)
23539 0 0 if (cp == charsetInfo[i].codepage)
23622 0 0 while (props)
23640 0 0 while (props)
23644 0 0 if (cmp == 0)
23650 0 0 if (cmp > 0)
23659 0 0 if (prev)
23676 0 0 if (prev)
23699 0 0 while (*name)
23701 0 0 while (*name == ' ')
23706 0 0 while (*name_end)
23708 0 0 if (*name_end == ':')
23717 0 0 if (*name_end != ':')
23720 0 0 while ( value && *value == ' ')
0 0 while ( value && *value == ' ')
23726 0 0 while (*value_end)
23728 0 0 if (*value_end == ';')
23743 0 0 if (more)
23765 0 0 for (len = 0, prop = props; prop; prop = prop->next)
23768 0 0 if (prop->value)
23775 0 0 for (p = style, prop = props; prop; prop = prop->next)
23779 0 0 while((*p++ = *s++))
23782 0 0 if (prop->value)
23789 0 0 while((*p++ = *s++))
23792 0 0 if (prop->next == NULL)
23821 3 0 if ( lexer )
23824 0 3 for ( style = lexer->styles; style; style = next )
23839 0 0 if ( pfx == NULL || *pfx == 0 )
0 0 if ( pfx == NULL || *pfx == 0 )
23851 0 0 for (style = lexer->styles; style; style=style->next)
23878 0 0 if (classattr)
23907 0 0 if (styleattr)
23910 0 0 if (!styleattr->value)
23923 0 0 if (classattr)
23940 0 0 if ( selector && color )
0 0 if ( selector && color )
23967 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_BACKGROUND)))
23974 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_BGCOLOR)))
23981 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_TEXT)))
23988 0 0 if ( bgurl || bgcolor || color )
0 0 if ( bgurl || bgcolor || color )
0 0 if ( bgurl || bgcolor || color )
23991 0 0 if (bgurl)
23998 0 0 if (bgcolor)
24005 0 0 if (color)
24016 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_LINK)))
24022 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_VLINK)))
24028 0 0 if (NULL != (attr = TY_(AttrGetById)(body, TidyAttr_ALINK)))
24038 0 0 if (node)
24041 0 0 TY_(AttrGetById)(node, TidyAttr_BGCOLOR) ||
24042 0 0 TY_(AttrGetById)(node, TidyAttr_TEXT) ||
24043 0 0 TY_(AttrGetById)(node, TidyAttr_LINK) ||
24044 0 0 TY_(AttrGetById)(node, TidyAttr_VLINK) ||
24063 0 0 if ( lexer->styles == NULL && NiceBody(doc) )
0 0 if ( lexer->styles == NULL && NiceBody(doc) )
24078 0 0 if ( body )
24081 0 0 for (style = lexer->styles; style; style = style->next)
24104 0 0 if ( NULL != (head = TY_(FindHEAD)( doc )) )
24114 0 0 if (node->prev)
24119 0 0 if (node->next)
24124 0 0 for (child = node->content; child; child = child->next)
24142 0 0 for (child = node->content; child; child = child->next)
24152 0 0 if (element->content)
24158 0 0 if (element->next)
24165 0 0 if (element->prev)
24173 0 0 for (node = element->content; node; node = node->next)
24218 0 0 if ( av )
24220 0 0 if (av->value != NULL)
24243 0 0 for (s2 = NULL, av = child->attributes; av; av = av->next)
24245 0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
24252 0 0 for (s1 = NULL, av = node->attributes; av; av = av->next)
24254 0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
0 0 if (attrIsCLASS(av))
24261 0 0 if (s1)
24263 0 0 if (s2) /* merge class names from both */
24276 0 0 else if (s2) /* copy class names from child */
24295 0 0 for (s2 = NULL, av = child->attributes; av; av = av->next)
24297 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24304 0 0 for (s1 = NULL, av = node->attributes; av; av = av->next)
24306 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24313 0 0 if (s1)
24315 0 0 if (s2) /* merge styles from both */
24322 0 0 else if (s2) /* copy style of child */
24351 0 0 if (size[0] == '\0')
24354 0 0 if ('0' <= size[0] && size[0] <= '6')
0 0 if ('0' <= size[0] && size[0] <= '6')
24360 0 0 if (size[0] == '-')
24362 0 0 if ('0' <= size[1] && size[1] <= '6')
0 0 if ('0' <= size[1] && size[1] <= '6')
24370 0 0 if ('0' <= size[1] && size[1] <= '6')
0 0 if ('0' <= size[1] && size[1] <= '6')
24390 0 0 if (nodeIsP(node))
0 0 if (nodeIsP(node))
0 0 if (nodeIsP(node))
24392 0 0 if (TY_(tmbstrcmp)(size, "6") == 0)
24394 0 0 else if (TY_(tmbstrcmp)(size, "5") == 0)
24396 0 0 else if (TY_(tmbstrcmp)(size, "4") == 0)
24399 0 0 if (value)
24410 0 0 if (value)
24432 0 0 for ( i = 12; i < sizeof(buf)/sizeof(buf[0])-1; ++i )
24434 0 0 if ( (buf[i] = (tmbchar)TY_(ToLower)(*align++)) == '\0' )
24447 0 0 while (av)
24449 0 0 if (AttrHasValue(av))
0 0 if (AttrHasValue(av))
24451 0 0 if (attrIsFACE(av))
0 0 if (attrIsFACE(av))
0 0 if (attrIsFACE(av))
24453 0 0 else if (attrIsSIZE(av))
0 0 else if (attrIsSIZE(av))
0 0 else if (attrIsSIZE(av))
24455 0 0 else if (attrIsCOLOR(av))
0 0 else if (attrIsCOLOR(av))
0 0 else if (attrIsCOLOR(av))
24472 0 0 for (av = node->attributes; av; av = av->next)
24474 0 0 if (attrIsALIGN(av))
0 0 if (attrIsALIGN(av))
0 0 if (attrIsALIGN(av))
24476 0 0 if (prev)
24481 0 0 if (av->value)
24501 0 0 if (NULL != (attr = TY_(AttrGetById)(node, TidyAttr_BGCOLOR)))
24523 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) )
24527 0 0 if (child == NULL)
24532 0 0 if (child->next)
24535 0 0 if ( !nodeIsLI(child) )
0 0 if ( !nodeIsLI(child) )
0 0 if ( !nodeIsLI(child) )
24538 0 0 if ( !child->implicit )
24560 0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
24581 0 0 if (TY_(AttrGetById)(child, TidyAttr_ID) != NULL
24582 0 0 && TY_(AttrGetById)(node, TidyAttr_ID) != NULL)
24587 0 0 for (av2 = child->attributes; av2; )
24590 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))
24596 0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
0 0 if ((id=AttrId(av2)) != TidyAttr_UNKNOWN
24597 0 0 && (av1=TY_(AttrGetById)(node, id))!= NULL)
24630 0 0 if ( state == TidyNoState
24631 0 0 || !TagIsId(node, Id) )
0 0 || !TagIsId(node, Id) )
0 0 || !TagIsId(node, Id) )
24636 0 0 if ( child == NULL
24637 0 0 || child->next != NULL
24638 0 0 || !TagIsId(child, Id) )
0 0 || !TagIsId(child, Id) )
0 0 || !TagIsId(child, Id) )
24641 0 0 if ( state == TidyAutoState
24642 0 0 && CopyAttrs(doc, node, child) == no )
24659 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) )
24663 0 0 if (child == NULL)
24668 0 0 if (child->next)
24673 0 0 if (!list)
24676 0 0 if (list->tag != node->tag)
24680 0 0 if (list->next)
24706 0 0 if (list->prev)
24708 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))
24709 0 0 && list->prev->last )
24754 0 0 for (i=0; CSS_SpanEq[i].CSSeq; ++i)
24755 0 0 if ( (!deprecatedOnly || CSS_SpanEq[i].deprecated)
0 0 if ( (!deprecatedOnly || CSS_SpanEq[i].deprecated)
24756 0 0 && TagIsId(node, CSS_SpanEq[i].id) )
0 0 && TagIsId(node, CSS_SpanEq[i].id) )
0 0 && TagIsId(node, CSS_SpanEq[i].id) )
24767 0 0 if (TY_(nodeHasCM)(node,CM_BLOCK | CM_LIST | CM_DEFLIST | CM_TABLE)
24768 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)
24769 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) )
24805 0 0 if ( nodeIsTABLE(node)
0 0 if ( nodeIsTABLE(node)
0 0 if ( nodeIsTABLE(node)
24806 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 ))
24809 0 0 if (CanApplyBlockStyle(node))
24812 0 0 if ( !nodeIsCAPTION(node) )
0 0 if ( !nodeIsCAPTION(node) )
0 0 if ( !nodeIsCAPTION(node) )
24816 0 0 if (child == NULL)
24820 0 0 if (child->next)
24823 0 0 if ( FindCSSSpanEq(child, &CSSeq, no) )
24830 0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
24845 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);
24854 0 0 if ( CanApplyInlineStyle(node) )
24858 0 0 if (child == NULL)
24863 0 0 if (child->next)
24866 0 0 if ( FindCSSSpanEq(child, &CSSeq, no) )
24873 0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
0 0 else if ( nodeIsFONT(child) )
24895 0 0 if ( node->parent->content == node && node->next == NULL &&
24897 0 0 || CanApplyInlineStyle(node->parent)) )
24900 0 0 if ( FindCSSSpanEq(node, &CSSeq, yes) )
24918 0 0 if ( nodeIsFONT(node) )
0 0 if ( nodeIsFONT(node) )
0 0 if ( nodeIsFONT(node) )
24922 0 0 if ( node->parent->content == node && node->next == NULL &&
24932 0 0 while (av)
24936 0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
0 0 if (attrIsSTYLE(av))
24965 0 0 for (next = node; TY_(nodeIsElement)(node); node = next)
24967 0 0 if ( Dir2Div(doc, node, &next) )
24975 0 0 if ( NestedList(doc, node, &next) )
24978 0 0 if ( Center2Div(doc, node, &next) )
24981 0 0 if ( MergeNestedElements(doc, TidyTag_DIV, mergeDivs, node, &next) )
24984 0 0 if ( MergeNestedElements(doc, TidyTag_SPAN, mergeSpans, node, &next) )
24987 0 0 if ( BlockStyle(doc, node, &next) )
24990 0 0 if ( InlineStyle(doc, node, &next) )
24993 0 0 if ( InlineElementToCSS(doc, node, &next) )
24996 0 0 if ( Font2Span(doc, node, &next) )
25013 0 0 if (node->content)
25016 0 0 for (child = node->content; child != NULL; child = child->next)
25019 0 0 if ( !child )
25031 0 0 if (node->content)
25033 0 0 for (child = node->content;
25050 0 0 if ( cfgBool(doc, TidyMakeClean) )
25062 23 19 while (node)
25066 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))
25067 0 0 && node->parent && node->parent->tag == node->tag)
0 0 && node->parent && node->parent->tag == node->tag)
25075 16 7 if ( node->content )
25087 0 0 while (node)
25089 0 0 if ( nodeIsI(node) )
0 0 if ( nodeIsI(node) )
0 0 if ( nodeIsI(node) )
25091 0 0 else if ( nodeIsB(node) )
0 0 else if ( nodeIsB(node) )
0 0 else if ( nodeIsB(node) )
25094 0 0 if ( node->content )
25103 0 0 return (node->content && node->content->next == NULL);
0 0 return (node->content && node->content->next == NULL);
25115 23 19 while (node)
25117 16 7 if (node->content)
25120 16 7 if ( node->tag && node->tag->parser == TY_(ParseList) &&
25121 0 0 HasOneChild(node) && node->content->implicit )
25143 23 19 while (node)
25145 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 )
25149 0 0 while( HasOneChild(node) &&
0 0 while( HasOneChild(node) &&
25150 0 0 nodeIsBLOCKQUOTE(node->content) &&
0 0 nodeIsBLOCKQUOTE(node->content) &&
0 0 nodeIsBLOCKQUOTE(node->content) &&
25157 0 0 if (node->content)
25166 16 7 else if (node->content)
25178 0 0 for ( check=node; check; check = check->parent )
25180 0 0 if ( nodeIsTD(check) )
0 0 if ( nodeIsTD(check) )
0 0 if ( nodeIsTD(check) )
25193 0 0 if (node == NULL)
25197 0 0 if ( TY_(tmbstrncmp)(lexbuf, "if !supportEmptyParas", 21) == 0 )
25200 0 0 if ( cell )
25211 0 0 if ( node->type == TextNode )
25216 0 0 if (node == NULL)
25219 0 0 if (node->type == SectionTag)
25221 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + node->start, "if", 2) == 0)
25227 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + node->start, "endif", 5) == 0)
25241 0 0 while (node)
25243 0 0 if (node->type == SectionTag)
25258 0 0 if (node->content)
25269 0 0 for ( attr = node->attributes; attr; attr = next )
25275 0 0 if (attrIsCLASS(attr))
0 0 if (attrIsCLASS(attr))
0 0 if (attrIsCLASS(attr))
25277 0 0 if (AttrValueIs(attr, "Code") ||
0 0 if (AttrValueIs(attr, "Code") ||
25285 0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
0 0 if (attrIsCLASS(attr) ||
25286 0 0 attrIsSTYLE(attr) ||
0 0 attrIsSTYLE(attr) ||
0 0 attrIsSTYLE(attr) ||
25287 0 0 attrIsLANG(attr) ||
0 0 attrIsLANG(attr) ||
0 0 attrIsLANG(attr) ||
25288 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)) &&
25289 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)) ) ||
25290 0 0 (attr->attribute && TY_(tmbstrncmp)(attr->attribute, "x:", 2) == 0) )
25292 0 0 if (prev)
25318 0 0 if (span->prev)
25320 0 0 else if (content)
25329 0 0 while (content)
25338 0 0 if (span->next == NULL)
25350 1 1 while ( node )
25352 0 1 if ( node->content )
25355 1 0 if (TY_(nodeIsText)(node))
25360 5 1 for (i = node->start; i < node->end; ++i)
25365 0 5 if ( c > 0x7F )
25368 0 5 if ( c == 160 )
25385 0 0 if ( !AttrHasValue(attval) )
0 0 if ( !AttrHasValue(attval) )
25389 0 0 if (!TY_(tmbsubstr)(attval->value, "margin-top: 0"))
25393 0 0 if (!TY_(tmbsubstr)(attval->value, "margin-bottom: 0"))
25402 0 0 if ( node->content )
25406 0 0 if ( node->next != NULL )
25409 0 0 if ( node->type != TextNode )
25412 0 0 if ( (node->end - node->start) == 1 &&
0 0 if ( (node->end - node->start) == 1 &&
25416 0 0 if ( (node->end - node->start) == 2 )
25420 0 0 if ( c == 160 )
25442 0 0 while ( node )
25445 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
25448 0 0 if ( !TY_(IsWord2000) (doc) ) /* Is. #896 */
25457 0 0 while ( attval ) {
25461 0 0 if ( !attval->attribute || ( strcmp(attval->attribute, "xmlns") != 0 ))
0 0 if ( !attval->attribute || ( strcmp(attval->attribute, "xmlns") != 0 ))
25472 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
25474 0 0 if (NoMargins(node))
25481 0 0 if (node->content)
25489 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) )
25499 0 0 if (node == NULL)
25504 0 0 if (node->tag && (node->tag->model & CM_BLOCK)
0 0 if (node->tag && (node->tag->model & CM_BLOCK)
25505 0 0 && SingleSpace(lexer, node))
25511 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) ||
25519 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) )
25525 0 0 if ( nodeIsLINK(node) )
0 0 if ( nodeIsLINK(node) )
0 0 if ( nodeIsLINK(node) )
25529 0 0 if (AttrValueIs(attr, "File-List"))
0 0 if (AttrValueIs(attr, "File-List"))
0 0 if (AttrValueIs(attr, "File-List"))
25537 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)
25553 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) )
25561 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
25574 0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
0 0 if ( AttrValueIs(attr, "MsoListBullet") ||
25575 0 0 AttrValueIs(attr, "MsoListNumber") ||
0 0 AttrValueIs(attr, "MsoListNumber") ||
0 0 AttrValueIs(attr, "MsoListNumber") ||
25576 0 0 AttrContains(atrStyle, "mso-list:") )
0 0 AttrContains(atrStyle, "mso-list:") )
25579 0 0 if (AttrValueIs(attr, "MsoListNumber"))
0 0 if (AttrValueIs(attr, "MsoListNumber"))
0 0 if (AttrValueIs(attr, "MsoListNumber"))
25584 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 )
25593 0 0 if ( node->content )
25602 0 0 else if (AttrValueIs(attr, "Code"))
0 0 else if (AttrValueIs(attr, "Code"))
0 0 else if (AttrValueIs(attr, "Code"))
25607 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 )
25626 0 0 if (!node)
25630 0 0 if (TY_(nodeIsElement)(node))
25633 0 0 if (node->content)
25646 0 0 if (html && TY_(GetAttrByName)(html, "xmlns:o"))
0 0 if (html && TY_(GetAttrByName)(html, "xmlns:o"))
25652 0 0 if (head)
25654 0 0 for (node = head->content; node; node = node->next)
25656 0 0 if ( !nodeIsMETA(node) )
0 0 if ( !nodeIsMETA(node) )
0 0 if ( !nodeIsMETA(node) )
25661 0 0 if ( !AttrValueIs(attval, "generator") )
0 0 if ( !AttrValueIs(attval, "generator") )
0 0 if ( !AttrValueIs(attval, "generator") )
25666 0 0 if ( AttrContains(attval, "Microsoft") )
0 0 if ( AttrContains(attval, "Microsoft") )
0 0 if ( AttrContains(attval, "Microsoft") )
25679 0 3 if (!html)
25682 6 3 for ( node = html->content; node != NULL; node = node->next )
25684 6 0 if ( nodeIsHEAD(node) )
6 0 if ( nodeIsHEAD(node) )
3 3 if ( nodeIsHEAD(node) )
25687 6 0 if ( nodeIsBODY(node) )
6 0 if ( nodeIsBODY(node) )
3 3 if ( nodeIsBODY(node) )
25691 3 0 if ( head != NULL && body != NULL )
3 0 if ( head != NULL && body != NULL )
25693 1 3 for (node = head->content; node != NULL; node = next)
25697 1 0 if ( nodeIsOBJECT(node) )
1 0 if ( nodeIsOBJECT(node) )
0 1 if ( nodeIsOBJECT(node) )
25702 0 0 for (child = node->content; child != NULL; child = child->next)
25705 0 0 if ( (TY_(nodeIsText)(child) && !TY_(IsBlank)(doc->lexer, node))
0 0 if ( (TY_(nodeIsText)(child) && !TY_(IsBlank)(doc->lexer, node))
25706 0 0 || !nodeIsPARAM(child) )
0 0 || !nodeIsPARAM(child) )
0 0 || !nodeIsPARAM(child) )
25713 0 0 if ( bump )
25751 3 0 if (!head || !enc || !TY_(tmbstrlen)(enc))
3 0 if (!head || !enc || !TY_(tmbstrlen)(enc))
0 3 if (!head || !enc || !TY_(tmbstrlen)(enc))
25753 0 3 if (outenc == RAW)
25756 0 3 if (outenc == ISO2022)
25759 2 1 if (cfgAutoBool(doc, TidyBodyOnly) == TidyYesState)
25770 1 1 for (currentNode = head->content; currentNode;
25771 1 0 currentNode = (currentNode ? currentNode->next : NULL))
25773 1 0 if (!nodeIsMETA(currentNode))
1 0 if (!nodeIsMETA(currentNode))
1 0 if (!nodeIsMETA(currentNode))
25777 0 0 if (!charsetAttr && !httpEquivAttr)
0 0 if (!charsetAttr && !httpEquivAttr)
25783 0 0 if (charsetAttr && !httpEquivAttr)
0 0 if (charsetAttr && !httpEquivAttr)
25786 0 0 if (charsetFound || !charsetAttr->value)
0 0 if (charsetFound || !charsetAttr->value)
25796 0 0 if (TY_(tmbstrcasecmp)(charsetAttr->value, enc) != 0)
25808 0 0 if (currentNode != head->content->next) {
25818 0 0 if (httpEquivAttr && !charsetAttr)
0 0 if (httpEquivAttr && !charsetAttr)
25821 0 0 if (!contentAttr)
25823 0 0 if (!httpEquivAttr->value)
25832 0 0 if (TY_(tmbstrcasecmp)(httpEquivAttr->value, (tmbstr) "content-type") != 0)
25834 0 0 if (!contentAttr->value)
25843 0 0 if (TY_(tmbstrcasecmp)(contentAttr->value, (ctmbstr)charsetString.bp) == 0)
25846 0 0 if (charsetFound)
25859 0 0 if (charsetFound)
25872 0 0 if (cfgBool(doc, TidyShowMetaChange)) /* Issue #456 - backward compatibility only */
25885 0 0 if (httpEquivAttr && charsetAttr)
0 0 if (httpEquivAttr && charsetAttr)
25896 0 1 if (add_meta && !charsetFound)
0 0 if (add_meta && !charsetFound)
25900 0 0 switch (TY_(HTMLVersion)(doc))
25927 0 0 while (node)
25931 0 0 if (node->type == CommentTag)
25939 0 0 if (node->content)
25950 0 0 while (node)
25954 0 0 if (nodeIsFONT(node))
0 0 if (nodeIsFONT(node))
0 0 if (nodeIsFONT(node))
25961 0 0 if (node->content)
25972 0 0 while (node)
25976 0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
25987 0 0 if (node->content)
26034 0 0 while (node)
26038 0 0 if (TY_(nodeIsText)(node))
26043 0 0 for (i = node->start; i < node->end; ++i)
26047 0 0 if (c > 0x7F)
26050 0 0 if (c >= 0x2013 && c <= 0x201E)
0 0 if (c >= 0x2013 && c <= 0x201E)
26077 0 0 if (node->content)
26088 28 18 while (node)
26092 19 9 if (node->tag && node->tag->parser == TY_(ParsePre))
1 18 if (node->tag && node->tag->parser == TY_(ParsePre))
26099 15 12 if (node->content)
26110 0 0 while (node)
26114 0 0 if (node->type == CDATATag)
26117 0 0 if (node->content)
26135 26 19 while (node)
26141 16 10 if (TY_(nodeIsElement)(node))
26146 0 16 if (lang && xmlLang)
0 0 if (lang && xmlLang)
26155 0 16 else if (lang && wantXmlLang)
0 0 else if (lang && wantXmlLang)
26157 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_XML_LANG )
26161 0 16 else if (xmlLang && wantLang)
0 0 else if (xmlLang && wantLang)
26163 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_LANG )
26168 0 16 if (lang && !wantLang)
0 0 if (lang && !wantLang)
26171 0 16 if (xmlLang && !wantXmlLang)
0 0 if (xmlLang && !wantXmlLang)
26175 16 10 if (node->content)
26190 0 3 if (!html)
26195 0 3 if (wantXmlns)
26197 0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (!AttrValueIs(xmlns, XHTML_NAMESPACE))
26200 0 3 else if (xmlns)
26213 26 19 while (node)
26217 1 25 if (TY_(IsAnchorElement)(doc, node))
26228 0 1 if (name && id)
0 0 if (name && id)
26230 0 0 Bool NameHasValue = AttrHasValue(name);
0 0 Bool NameHasValue = AttrHasValue(name);
26231 0 0 Bool IdHasValue = AttrHasValue(id);
0 0 Bool IdHasValue = AttrHasValue(id);
26232 0 0 if ( (NameHasValue != IdHasValue) ||
0 0 if ( (NameHasValue != IdHasValue) ||
26237 0 1 else if (name && wantId)
0 0 else if (name && wantId)
26239 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_ID )
26242 0 0 if (TY_(IsValidHTMLID)(name->value))
26251 0 1 else if (id && wantName)
0 0 else if (id && wantName)
26253 0 0 if (TY_(NodeAttributeVersions)( node, TidyAttr_NAME )
26262 0 1 if (id && !wantId
0 0 if (id && !wantId
26264 0 0 && (hadName || !wantName || NameEmitted) ) {
0 0 && (hadName || !wantName || NameEmitted) ) {
0 0 && (hadName || !wantName || NameEmitted) ) {
26265 0 0 if (!wantId && !wantName)
0 0 if (!wantId && !wantName)
26270 0 1 if (name && !wantName
0 0 if (name && !wantName
26272 0 0 && (hadId || !wantId || IdEmitted) ) {
0 0 && (hadId || !wantId || IdEmitted) ) {
0 0 && (hadId || !wantId || IdEmitted) ) {
26273 0 0 if (!wantId && !wantName)
0 0 if (!wantId && !wantName)
26279 16 10 if (node->content)
26292 10 9 while (node)
26296 10 0 if (nodeIsSTYLE(node))
7 3 if (nodeIsSTYLE(node))
0 7 if (nodeIsSTYLE(node))
26298 0 0 if (fix)
26309 6 4 else if (node->content)
26323 0 3 if (!html)
26329 3 0 if ((head != NULL) && (body != NULL))
3 0 if ((head != NULL) && (body != NULL))
26346 2 1 if (cfgAutoBool(doc, TidyBodyOnly) == TidyYesState)
26349 0 1 if (!head)
26352 2 1 while (node)
26355 2 0 if (nodeIsTITLE(node))
2 0 if (nodeIsTITLE(node))
1 1 if (nodeIsTITLE(node))
26358 0 1 if (titles > 1)
26707 215 0 for ( /**/; np < option_defs + N_TIDY_OPTIONS; ++np )
26709 6 209 if ( TY_(tmbstrcasecmp)(s, np->name) == 0 )
26718 0 0 if ( optId < N_TIDY_OPTIONS )
26731 0 0 if ( a != b )
26733 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. */
26744 0 0 if ( doc->pConfigChangeCallback )
26754 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 )
26763 0 1560 assert( oldval != NULL );
26766 0 1560 if ( doc->pConfigChangeCallback )
26768 0 0 if ( option->type == TidyString )
26776 195 1365 if ( option->type == TidyString )
26778 16 179 if ( newval->p && newval->p != option->pdflt )
1 15 if ( newval->p && newval->p != option->pdflt )
26786 0 1560 if ( fire_callback )
26797 1 0 if ( status )
26799 1 0 assert( option->id == optId && option->type == TidyString );
0 1 assert( option->id == optId && option->type == TidyString );
26802 0 1 if ( doc->pConfigChangeCallback )
26809 1 0 if ( TY_(tmbstrlen)(val)) /* Issue #218 - ONLY if it has LENGTH! */
26815 0 1 if ( fire_callback )
26826 0 0 if ( option && option->pickList )
0 0 if ( option && option->pickList )
26832 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
26836 0 0 if ( ix==pick && item->label )
0 0 if ( ix==pick && item->label )
26848 0 11 Bool fire_callback = doc->pConfigChangeCallback && *optVal != val;
0 0 Bool fire_callback = doc->pConfigChangeCallback && *optVal != val;
26852 0 11 if ( fire_callback )
26859 5 0 if ( status )
26861 0 5 assert( option_defs[ optId ].type == TidyInteger );
26871 6 0 if ( status )
26873 0 6 assert( option_defs[ optId ].type == TidyBoolean );
26883 104 728 if ( option->type == TidyString )
26893 0 0 return ( option->type == TidyString ) ?
26901 0 0 Bool status = ( optId > 0 && optId < N_TIDY_OPTIONS );
0 0 Bool status = ( optId > 0 && optId < N_TIDY_OPTIONS );
26902 0 0 if ( status )
26907 0 0 assert( optId == option->id );
26928 0 0 if ( option->type == TidyString )
26930 0 0 if ( val1->p == val2->p )
26932 0 0 if ( !val1->p || !val2->p )
0 0 if ( !val1->p || !val2->p )
26951 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
26953 0 0 assert( ixVal == (unsigned int) option->id );
26964 0 0 TEST_USERTAGS(TidyInlineTags,tagtype_inline);
26965 0 0 TEST_USERTAGS(TidyBlockTags,tagtype_block);
26966 0 0 TEST_USERTAGS(TidyEmptyTags,tagtype_empty);
26967 0 0 TEST_USERTAGS(TidyPreTags,tagtype_pre);
26984 0 0 REPARSE_USERTAGS(TidyInlineTags,tagtype_inline);
26985 0 0 REPARSE_USERTAGS(TidyBlockTags,tagtype_block);
26986 0 0 REPARSE_USERTAGS(TidyEmptyTags,tagtype_empty);
26987 0 0 REPARSE_USERTAGS(TidyPreTags,tagtype_pre);
27000 0 0 while ( (testName = deprecatedOptions[i].name) )
27002 0 0 if ( TY_(tmbstrcasecmp)( optName, testName ) == 0 )
27025 0 0 assert( isOptionDeprecated(oldName));
27027 0 0 if ( newOptId == TidyUnknownOption )
27036 0 0 if ( TY_(tmbstrcasecmp)( oldName, "show-body-only" ) == 0 )
27041 0 0 if ( GetPickListValue( oldValue, &autoBoolPicks, &value ) )
27043 0 0 if ( value == TidyNoState )
27072 832 8 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27075 0 832 assert( ixVal == (unsigned int) option->id );
27095 728 7 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27097 0 728 assert( ixVal == (unsigned int) option->id );
27113 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27115 0 0 assert( ixVal == (unsigned int) option->id );
27118 0 0 if ( needReparseTagsDecls )
27125 0 0 if ( docTo != docFrom )
27136 0 0 for ( ixVal=0; ixVal < N_TIDY_OPTIONS; ++option, ++ixVal )
27138 0 0 assert( ixVal == (unsigned int) option->id );
27141 0 0 if ( needReparseTagsDecls )
27193 6 0 if ( config->cfgIn )
27208 5 0 if ( config->c != EndOfStream )
27216 0 1 while ( TY_(IsWhite)(config->c) && !TY_(IsNewline)(config->c) )
0 0 while ( TY_(IsWhite)(config->c) && !TY_(IsNewline)(config->c) )
27228 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 )
27232 0 0 if ( config->c == '\r' )
27235 0 0 if ( config->c == '\n' )
27238 0 0 while ( TY_(IsWhite)(config->c) ); /* line continuation? */
27254 0 0 if ( !filename )
27257 0 0 if ( filename[0] != '~' )
27260 0 0 if (filename[1] == '/')
27263 0 0 if (home_dir) {
27312 0 0 if ( home_dir )
27338 0 0 if ( fname != filename )
27360 0 0 if ( fin == NULL || enc < 0 )
0 0 if ( fin == NULL || enc < 0 )
27371 0 0 for ( c = SkipWhite(cfg); c != EndOfStream; c = NextProperty(cfg) )
27377 0 0 if ( c == '/' || c == '#' )
0 0 if ( c == '/' || c == '#' )
27380 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 != ':' )
27386 0 0 if ( c == ':' )
27391 0 0 if ( option && !isDeprecated )
0 0 if ( option && !isDeprecated )
27395 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 )
27406 0 0 if ( c == '"' || c == '\'' )
0 0 if ( c == '"' || c == '\'' )
27412 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' )
27414 0 0 if ( delim && c == delim )
0 0 if ( delim && c == delim )
27417 0 0 if ( TY_(IsWhite)(c) )
27419 0 0 if ( waswhite )
27434 0 0 if ( doc->pOptCallback )
27437 0 0 if ( doc->pConfigCallback )
27438 0 0 response = response || (*doc->pConfigCallback)( tidyImplToDoc(doc), name, buf );
0 0 response = response || (*doc->pConfigCallback)( tidyImplToDoc(doc), name, buf );
27440 0 0 if ( !response && isDeprecated )
0 0 if ( !response && isDeprecated )
27443 0 0 if ( response == no )
27457 0 0 if ( fname != (tmbstr) file )
27478 0 0 Bool status = ( option != NULL ) && !isDeprecated;
0 0 Bool status = ( option != NULL ) && !isDeprecated;
27479 0 0 if ( !status )
27483 0 0 if (NULL != doc->pOptCallback)
27485 0 0 if (NULL != doc->pConfigCallback )
27486 0 0 status = status || (*doc->pConfigCallback)( tidyImplToDoc(doc), optnam, optval );
0 0 status = status || (*doc->pConfigCallback)( tidyImplToDoc(doc), optnam, optval );
27487 0 0 if (!status && isDeprecated)
0 0 if (!status && isDeprecated)
27489 0 0 if (!status)
27507 1 0 && (option = option_defs + optId)->parser
27508 1 0 && optval != NULL );
1 0 && optval != NULL );
27510 0 1 if ( !status )
27511 0 0 if ( option )
27527 0 1 if (optId == TidyOutFile)
27592 0 0 if ( inenc >= 0 )
27606 0 3 if ( cfgBool(doc, TidyEncloseBlockText) )
27609 3 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState )
27613 0 3 if ( cfg(doc, TidyWrapLen) == 0 )
27617 0 3 if ( cfgBool(doc, TidyWord2000) )
27624 0 3 if ( cfgBool(doc, TidyXmlTags) )
27628 0 3 if ( cfgBool(doc, TidyXhtmlOut) )
27637 0 3 if ( cfgBool(doc, TidyXmlTags) )
27647 3 0 if ( cfg(doc, TidyOutCharEncoding) != ASCII &&
0 3 if ( cfg(doc, TidyOutCharEncoding) != ASCII &&
27648 0 0 cfg(doc, TidyOutCharEncoding) != UTF8 &&
27649 0 0 cfg(doc, TidyOutCharEncoding) != UTF16 &&
27650 0 0 cfg(doc, TidyOutCharEncoding) != UTF16BE &&
27651 0 0 cfg(doc, TidyOutCharEncoding) != UTF16LE &&
27652 0 0 cfg(doc, TidyOutCharEncoding) != RAW &&
27659 0 3 if ( cfgBool(doc, TidyXmlOut) )
27663 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 )
27682 0 0 if ( prvval )
27714 0 0 if ( catval )
27733 0 0 if ( callback )
27742 0 0 if ( cfg->c == EndOfStream )
27749 0 0 if (c == ' ' || c == '\t' || c == ',')
0 0 if (c == ' ' || c == '\t' || c == ',')
0 0 if (c == ' ' || c == '\t' || c == ',')
27755 0 0 if ( c == '\r' || c == '\n' )
0 0 if ( c == '\r' || c == '\n' )
27758 0 0 if ( c == '\r' && c2 == '\n' )
0 0 if ( c == '\r' && c2 == '\n' )
27763 0 0 if ( !TY_(IsWhite)(c) )
27772 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 != ',' )
27779 0 0 if (i == 0) /* Skip empty attribute definition. Possible when */
27788 0 0 while ( c != EndOfStream );
27790 0 0 if ( i > 0 )
27795 0 0 if ( callback )
27802 0 0 if ( oldbuff )
27805 0 0 if ( fire_callback )
27821 0 0 while ( TY_(IsDigit)(c) )
27828 0 0 if ( !digits )
27843 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) )
27850 0 0 if ( i == 0 )
27867 0 0 if ( cfg->c == EndOfStream )
27875 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) )
27882 0 0 if ( i == 0 ) {
27885 0 0 else if ( !TY_(IsCSS1Selector)(buf) ) {
27908 0 0 while ( (item = &(*pickList)[ ix ]) && item->label )
0 0 while ( (item = &(*pickList)[ ix ]) && item->label )
27912 0 0 while ( ( input = &(*item->inputs[i]) ) )
27914 0 0 if (TY_(tmbstrcasecmp)(value, input) == 0 )
27939 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' )
27945 0 0 if ( GetPickListValue( work, entry->pickList, result ) != yes )
27962 0 0 if ( GetParsePickListValue( doc, entry, &value ) )
27964 0 0 if ( entry->type == TidyBoolean )
27966 0 0 else if ( entry->type == TidyInteger )
27986 0 0 if ( status ) {
27989 0 0 if (tabs) {
28011 1 0 if ( c == '"' || c == '\'' )
0 1 if ( c == '"' || c == '\'' )
28017 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' )
28019 0 5 if ( delim && c == delim )
0 0 if ( delim && c == delim )
28022 0 5 if ( TY_(IsWhite)(c) )
28024 0 0 if ( waswhite )
28052 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) )
28061 0 0 if ( enc < 0 )
28069 0 0 if ( validEncoding && option->id == TidyCharEncoding )
0 0 if ( validEncoding && option->id == TidyCharEncoding )
28086 0 0 if (!encodingName)
28097 0 0 if (!encodingName)
28119 0 0 if ( cfg->c == EndOfStream )
28130 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 == '+' )
28133 0 0 if (status)
28140 0 0 if ( (status = GetParsePickListValue( doc, option, &value ) ) )
28170 0 0 assert( iter != NULL );
28172 0 0 if ( optId > TidyUnknownOption && optId < N_TIDY_OPTIONS )
0 0 if ( optId > TidyUnknownOption && optId < N_TIDY_OPTIONS )
28177 0 0 *iter = (TidyIterator) ( optId < N_TIDY_OPTIONS ? optId : (size_t)0 );
28187 0 0 if ( option && option->pickList )
0 0 if ( option && option->pickList )
28199 0 0 assert( option!=NULL && iter != NULL );
0 0 assert( option!=NULL && iter != NULL );
28203 0 0 if ( option->pickList )
28205 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 )
28211 0 0 *iter = (TidyIterator) ( val && item->label ? ix + 1 : (size_t)0 );
0 0 *iter = (TidyIterator) ( val && item->label ? ix + 1 : (size_t)0 );
28222 0 0 while ( *cp )
28227 0 0 while ( *cp )
28244 0 0 ctmbstr sval = bval ? "yes" : "no";
28254 0 0 if ( option-> pickList )
28256 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
28260 0 0 if ( ix==ival && item->label )
0 0 if ( ix==ival && item->label )
28281 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 )
28293 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 )
28296 0 0 if ( option->parser == NULL )
28298 0 0 if ( OptionValueEqDefault( option, val ) && option->id != TidyDoctype)
0 0 if ( OptionValueEqDefault( option, val ) && option->id != TidyDoctype)
28301 0 0 if ( option->id == TidyDoctype ) /* Special case */
28304 0 0 if ( dtmode == TidyDoctypeUser )
28309 0 0 if (( t = (tmbstr)TidyDocAlloc( doc, TY_(tmbstrlen)( val->p ) + 2 ) ))
28320 0 0 else if ( dtmode == option_defs[TidyDoctypeMode].dflt )
28325 0 0 else if ( option->pickList)
28354 0 0 if ( fout )
30467 0 0 tmbchar ch = (tmbchar)( s ? *s : 0 );
30469 0 0 if (ch == 0)
30471 0 0 while (np->name)
30473 0 0 if (ch == *np->name)
30477 0 0 while (np->name)
30479 0 0 if (ch != *np->name)
30481 0 0 if (TY_(tmbstrcmp)(s, np->name) == 0)
30492 0 0 assert( name && name[0] == '&' );
0 0 assert( name && name[0] == '&' );
30493 0 0 assert( code != NULL );
30494 0 0 assert( versions != NULL );
30497 0 0 if ( name[1] == '#' )
30502 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') )
30508 0 0 if ( res == 1 )
30517 0 0 *versions = ( isXml ? VERS_XML : VERS_PROPRIETARY );
30523 0 0 if ( NULL != (np = entitiesLookup(name+1)) )
30531 0 0 *versions = ( isXml ? VERS_XML : VERS_PROPRIETARY );
30548 0 0 for ( ep = entities; ep->name != NULL; ++ep )
30550 0 0 if ( ep->code == ch )
30552 0 0 if (ep->versions & versions)
30597 0 0 if ( fin->unget.size > 0 )
30608 0 0 if ( isEOF )
30628 0 0 if ( !fin )
30645 0 0 if ( closeIt && fin && fin->fp )
0 0 if ( closeIt && fin && fin->fp )
0 0 if ( closeIt && fin && fin->fp )
30745 0 0 if (element->content)
30751 0 0 if (element->next)
30758 0 0 if (element->prev)
30766 0 0 for (node = element->content; node; node = node->next)
30784 0 0 if (node->content)
30786 0 0 for (child = node->content; child != NULL; child = next)
30790 0 0 if (TY_(nodeIsElement)(child))
30792 0 0 if (nodeIsSTYLE(child))
0 0 if (nodeIsSTYLE(child))
0 0 if (nodeIsSTYLE(child))
30794 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)
30796 0 0 else if (nodeIsSPAN(child))
0 0 else if (nodeIsSPAN(child))
0 0 else if (nodeIsSPAN(child))
30798 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)
30804 0 0 if (!id)
30807 0 0 if (id)
30814 0 0 if (child->attributes)
30829 0 0 if (head)
30881 0 0 if (attrs == NULL)
30890 0 0 newattrs->asp = attrs->asp ? TY_(CloneNode)(doc, attrs->asp) : NULL;
30891 0 0 newattrs->php = attrs->php ? TY_(CloneNode)(doc, attrs->php) : NULL;
30897 0 0 if (node->tag == NULL)
30900 0 0 if (!(node->tag->model & CM_INLINE))
30903 0 0 if (node->tag->model & CM_OBJECT)
30909 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))
30936 0 0 if (node->implicit)
30939 0 0 if ( !IsNodePushable(node) )
30942 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) )
30946 0 0 if (lexer->istacksize + 1 > lexer->istacklength)
30948 0 0 if (lexer->istacklength == 0)
30973 0 0 while (istack->attributes)
30988 0 0 while (lexer->istacksize > 0)
30992 0 0 if ( istack->tag->id == tid )
31002 0 0 if (node)
31004 0 0 if ( !IsNodePushable(node) )
31008 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
31015 0 0 if (lexer->istacksize > 0)
31020 0 0 if (lexer->insert >= lexer->istack + lexer->istacksize)
31030 0 3 for (i = lexer->istacksize - 1; i >= 0; --i)
31032 0 0 if (lexer->istack[i].tag == node->tag)
31046 0 0 if ( element && !IsNodePushable(element) )
0 0 if ( element && !IsNodePushable(element) )
31049 0 0 if (lexer->istacksize > 0) {
31050 0 0 if (lexer->istack[lexer->istacksize - 1].tag == node->tag) {
31080 0 4 if ((n = lexer->istacksize - lexer->istackbase) > 0)
31107 0 0 if (lexer->insert == NULL)
31119 0 0 if (lexer->inode == NULL)
31149 0 0 if (++n < lexer->istacksize)
31168 0 0 if ( lexer
31169 0 0 && element && element->tag
0 0 && element && element->tag
31170 0 0 && node && node->tag
0 0 && node && node->tag
31171 0 0 && TY_(IsPushed)( doc, element )
31172 0 0 && TY_(IsPushed)( doc, node )
31173 0 0 && ((lexer->istacksize - lexer->istackbase) >= 2) )
31177 0 0 for (i = (lexer->istacksize - lexer->istackbase - 1); i >= 0; --i)
31179 0 0 if (lexer->istack[i].tag == element->tag) {
31184 0 0 for ( ; i >= 0; --i)
31186 0 0 if (lexer->istack[i].tag == node->tag)
31193 0 0 if ( istack2 )
31216 0 0 if ( element
31217 0 0 && (element->tag != NULL)
31218 0 0 && ((n = lexer->istacksize - lexer->istackbase) > 0) )
31220 0 0 for ( i = n - 1; i >=0; --i ) {
31221 0 0 if (lexer->istack[i].tag == element->tag) {
31481 11365 0 for (i = 0; (*dictionary)[i].value; ++i)
31483 88 11277 if ( (*dictionary)[i].key == messageType && (*dictionary)[i].pluralForm == pluralForm )
83 5 if ( (*dictionary)[i].key == messageType && (*dictionary)[i].pluralForm == pluralForm )
31507 0 39 if (!result && tidyLanguages.fallbackLanguage )
0 0 if (!result && tidyLanguages.fallbackLanguage )
31512 0 39 if (!result)
31518 0 39 if (!result)
31559 0 0 for (i = 0; localeMappings[i].winName; ++i)
31561 0 0 if ( strcmp( localeMappings[i].winName, search ) == 0 )
31577 0 0 for ( i = 0; i < len; i++ )
31579 0 0 if ( i == 2 )
31582 0 0 if (len == 5) {
31612 0 0 for (i = 0; tidyLanguages.languages[i]; ++i)
31618 0 0 if ( strcmp(testCode, languageCode) == 0 )
31644 0 8 if ( !languageCode || !(wantCode = TY_(tidyNormalizedLocaleName)( languageCode )) )
0 0 if ( !languageCode || !(wantCode = TY_(tidyNormalizedLocaleName)( languageCode )) )
31656 0 0 if ( strlen( wantCode ) > 2 )
31663 0 0 if ( dict1 && dict2 )
0 0 if ( dict1 && dict2 )
31668 0 0 if ( dict1 && !dict2 )
0 0 if ( dict1 && !dict2 )
31673 0 0 if ( !dict1 && dict2 )
0 0 if ( !dict1 && dict2 )
31683 0 0 return dict1 || dict2;
0 0 return dict1 || dict2;
31736 0 0 if ( array_size == 0 )
31738 0 0 while ( language_en.messages[array_size].value != NULL ) {
31768 0 0 assert( iter != NULL );
31772 0 0 if ( itemIndex > 0 && itemIndex <= tidyStringKeyListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyStringKeyListSize() )
31778 0 0 *iter = (TidyIterator)( itemIndex <= tidyStringKeyListSize() ? itemIndex : (size_t)0 );
31791 0 0 if ( array_size == 0 )
31793 0 0 while ( localeMappings[array_size].winName ) {
31819 0 0 assert( iter != NULL );
31823 0 0 if ( itemIndex > 0 && itemIndex <= tidyLanguageListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyLanguageListSize() )
31829 0 0 *iter = (TidyIterator)( itemIndex <= tidyLanguageListSize() ? itemIndex : (size_t)0 );
31859 0 0 if ( array_size == 0 )
31861 0 0 while ( tidyLanguages.languages[array_size] ) {
31886 0 0 assert( iter != NULL );
31890 0 0 if ( itemIndex > 0 && itemIndex <= tidyInstalledLanguageListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyInstalledLanguageListSize() )
31896 0 0 *iter = (TidyIterator)( itemIndex <= tidyInstalledLanguageListSize() ? itemIndex : (size_t)0 );
32167 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) &&
32169 23 0 Bool html4 = ((dtmode == TidyDoctypeStrict) || (dtmode == TidyDoctypeLoose) ||
32170 23 0 (VERS_HMTL40PX & dtver) ? yes : no);
0 23 (VERS_HMTL40PX & dtver) ? yes : no);
32171 0 0 Bool html5 = (!html4 && ((dtmode == TidyDoctypeAuto) ||
32172 23 0 (dtmode == TidyDoctypeHtml5)) ? yes : no);
0 23 (dtmode == TidyDoctypeHtml5)) ? yes : no);
32174 0 23 if (xhtml && dtver == VERS_UNKNOWN) return XH50;
0 0 if (xhtml && dtver == VERS_UNKNOWN) return XH50;
32175 23 0 if (dtver == VERS_UNKNOWN) return HT50;
32177 0 0 if (!xhtml && (dtver == VERS_HTML5)) return HT50;
0 0 if (!xhtml && (dtver == VERS_HTML5)) return HT50;
32180 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;
32182 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32184 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)) ||
32185 0 0 (html4 && !(VERS_HMTL40PX & W3C_Doctypes[i].vers)))
32188 0 0 if (vers & W3C_Doctypes[i].vers &&
0 0 if (vers & W3C_Doctypes[i].vers &&
32189 0 0 (W3C_Doctypes[i].score < score || !score))
32196 0 0 if (score)
32206 54 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32207 3 51 if (W3C_Doctypes[i].vers == vers)
32217 54 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32218 3 51 if (W3C_Doctypes[i].vers == vers)
32228 108 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32229 6 102 if (W3C_Doctypes[i].vers == vers)
32239 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
32240 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)
32352 91 0 unsigned int map = MAP(c);
32359 0 0 unsigned int map = MAP(c);
32367 0 0 map = MAP(c);
32376 0 0 map = MAP(c);
32385 9 0 map = MAP(c);
32392 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;
32397 24 0 unsigned int map = MAP(c);
32403 0 0 return ((c >= 0x41 && c <= 0x5a) ||
0 0 return ((c >= 0x41 && c <= 0x5a) ||
32404 0 0 (c >= 0x61 && c <= 0x7a) ||
0 0 (c >= 0x61 && c <= 0x7a) ||
32405 0 0 (c >= 0xc0 && c <= 0xd6) ||
0 0 (c >= 0xc0 && c <= 0xd6) ||
32406 0 0 (c >= 0xd8 && c <= 0xf6) ||
0 0 (c >= 0xd8 && c <= 0xf6) ||
32407 0 0 (c >= 0xf8 && c <= 0xff) ||
0 0 (c >= 0xf8 && c <= 0xff) ||
32408 0 0 (c >= 0x100 && c <= 0x131) ||
0 0 (c >= 0x100 && c <= 0x131) ||
32409 0 0 (c >= 0x134 && c <= 0x13e) ||
0 0 (c >= 0x134 && c <= 0x13e) ||
32410 0 0 (c >= 0x141 && c <= 0x148) ||
0 0 (c >= 0x141 && c <= 0x148) ||
32411 0 0 (c >= 0x14a && c <= 0x17e) ||
0 0 (c >= 0x14a && c <= 0x17e) ||
32412 0 0 (c >= 0x180 && c <= 0x1c3) ||
0 0 (c >= 0x180 && c <= 0x1c3) ||
32413 0 0 (c >= 0x1cd && c <= 0x1f0) ||
0 0 (c >= 0x1cd && c <= 0x1f0) ||
32414 0 0 (c >= 0x1f4 && c <= 0x1f5) ||
0 0 (c >= 0x1f4 && c <= 0x1f5) ||
32415 0 0 (c >= 0x1fa && c <= 0x217) ||
0 0 (c >= 0x1fa && c <= 0x217) ||
32416 0 0 (c >= 0x250 && c <= 0x2a8) ||
0 0 (c >= 0x250 && c <= 0x2a8) ||
32417 0 0 (c >= 0x2bb && c <= 0x2c1) ||
0 0 (c >= 0x2bb && c <= 0x2c1) ||
32418 0 0 c == 0x386 ||
32419 0 0 (c >= 0x388 && c <= 0x38a) ||
0 0 (c >= 0x388 && c <= 0x38a) ||
32420 0 0 c == 0x38c ||
32421 0 0 (c >= 0x38e && c <= 0x3a1) ||
0 0 (c >= 0x38e && c <= 0x3a1) ||
32422 0 0 (c >= 0x3a3 && c <= 0x3ce) ||
0 0 (c >= 0x3a3 && c <= 0x3ce) ||
32423 0 0 (c >= 0x3d0 && c <= 0x3d6) ||
0 0 (c >= 0x3d0 && c <= 0x3d6) ||
32424 0 0 c == 0x3da ||
32425 0 0 c == 0x3dc ||
32426 0 0 c == 0x3de ||
32427 0 0 c == 0x3e0 ||
32428 0 0 (c >= 0x3e2 && c <= 0x3f3) ||
0 0 (c >= 0x3e2 && c <= 0x3f3) ||
32429 0 0 (c >= 0x401 && c <= 0x40c) ||
0 0 (c >= 0x401 && c <= 0x40c) ||
32430 0 0 (c >= 0x40e && c <= 0x44f) ||
0 0 (c >= 0x40e && c <= 0x44f) ||
32431 0 0 (c >= 0x451 && c <= 0x45c) ||
0 0 (c >= 0x451 && c <= 0x45c) ||
32432 0 0 (c >= 0x45e && c <= 0x481) ||
0 0 (c >= 0x45e && c <= 0x481) ||
32433 0 0 (c >= 0x490 && c <= 0x4c4) ||
0 0 (c >= 0x490 && c <= 0x4c4) ||
32434 0 0 (c >= 0x4c7 && c <= 0x4c8) ||
0 0 (c >= 0x4c7 && c <= 0x4c8) ||
32435 0 0 (c >= 0x4cb && c <= 0x4cc) ||
0 0 (c >= 0x4cb && c <= 0x4cc) ||
32436 0 0 (c >= 0x4d0 && c <= 0x4eb) ||
0 0 (c >= 0x4d0 && c <= 0x4eb) ||
32437 0 0 (c >= 0x4ee && c <= 0x4f5) ||
0 0 (c >= 0x4ee && c <= 0x4f5) ||
32438 0 0 (c >= 0x4f8 && c <= 0x4f9) ||
0 0 (c >= 0x4f8 && c <= 0x4f9) ||
32439 0 0 (c >= 0x531 && c <= 0x556) ||
0 0 (c >= 0x531 && c <= 0x556) ||
32440 0 0 c == 0x559 ||
32441 0 0 (c >= 0x561 && c <= 0x586) ||
0 0 (c >= 0x561 && c <= 0x586) ||
32442 0 0 (c >= 0x5d0 && c <= 0x5ea) ||
0 0 (c >= 0x5d0 && c <= 0x5ea) ||
32443 0 0 (c >= 0x5f0 && c <= 0x5f2) ||
0 0 (c >= 0x5f0 && c <= 0x5f2) ||
32444 0 0 (c >= 0x621 && c <= 0x63a) ||
0 0 (c >= 0x621 && c <= 0x63a) ||
32445 0 0 (c >= 0x641 && c <= 0x64a) ||
0 0 (c >= 0x641 && c <= 0x64a) ||
32446 0 0 (c >= 0x671 && c <= 0x6b7) ||
0 0 (c >= 0x671 && c <= 0x6b7) ||
32447 0 0 (c >= 0x6ba && c <= 0x6be) ||
0 0 (c >= 0x6ba && c <= 0x6be) ||
32448 0 0 (c >= 0x6c0 && c <= 0x6ce) ||
0 0 (c >= 0x6c0 && c <= 0x6ce) ||
32449 0 0 (c >= 0x6d0 && c <= 0x6d3) ||
0 0 (c >= 0x6d0 && c <= 0x6d3) ||
32450 0 0 c == 0x6d5 ||
32451 0 0 (c >= 0x6e5 && c <= 0x6e6) ||
0 0 (c >= 0x6e5 && c <= 0x6e6) ||
32452 0 0 (c >= 0x905 && c <= 0x939) ||
0 0 (c >= 0x905 && c <= 0x939) ||
32453 0 0 c == 0x93d ||
32454 0 0 (c >= 0x958 && c <= 0x961) ||
0 0 (c >= 0x958 && c <= 0x961) ||
32455 0 0 (c >= 0x985 && c <= 0x98c) ||
0 0 (c >= 0x985 && c <= 0x98c) ||
32456 0 0 (c >= 0x98f && c <= 0x990) ||
0 0 (c >= 0x98f && c <= 0x990) ||
32457 0 0 (c >= 0x993 && c <= 0x9a8) ||
0 0 (c >= 0x993 && c <= 0x9a8) ||
32458 0 0 (c >= 0x9aa && c <= 0x9b0) ||
0 0 (c >= 0x9aa && c <= 0x9b0) ||
32459 0 0 c == 0x9b2 ||
32460 0 0 (c >= 0x9b6 && c <= 0x9b9) ||
0 0 (c >= 0x9b6 && c <= 0x9b9) ||
32461 0 0 (c >= 0x9dc && c <= 0x9dd) ||
0 0 (c >= 0x9dc && c <= 0x9dd) ||
32462 0 0 (c >= 0x9df && c <= 0x9e1) ||
0 0 (c >= 0x9df && c <= 0x9e1) ||
32463 0 0 (c >= 0x9f0 && c <= 0x9f1) ||
0 0 (c >= 0x9f0 && c <= 0x9f1) ||
32464 0 0 (c >= 0xa05 && c <= 0xa0a) ||
0 0 (c >= 0xa05 && c <= 0xa0a) ||
32465 0 0 (c >= 0xa0f && c <= 0xa10) ||
0 0 (c >= 0xa0f && c <= 0xa10) ||
32466 0 0 (c >= 0xa13 && c <= 0xa28) ||
0 0 (c >= 0xa13 && c <= 0xa28) ||
32467 0 0 (c >= 0xa2a && c <= 0xa30) ||
0 0 (c >= 0xa2a && c <= 0xa30) ||
32468 0 0 (c >= 0xa32 && c <= 0xa33) ||
0 0 (c >= 0xa32 && c <= 0xa33) ||
32469 0 0 (c >= 0xa35 && c <= 0xa36) ||
0 0 (c >= 0xa35 && c <= 0xa36) ||
32470 0 0 (c >= 0xa38 && c <= 0xa39) ||
0 0 (c >= 0xa38 && c <= 0xa39) ||
32471 0 0 (c >= 0xa59 && c <= 0xa5c) ||
0 0 (c >= 0xa59 && c <= 0xa5c) ||
32472 0 0 c == 0xa5e ||
32473 0 0 (c >= 0xa72 && c <= 0xa74) ||
0 0 (c >= 0xa72 && c <= 0xa74) ||
32474 0 0 (c >= 0xa85 && c <= 0xa8b) ||
0 0 (c >= 0xa85 && c <= 0xa8b) ||
32475 0 0 c == 0xa8d ||
32476 0 0 (c >= 0xa8f && c <= 0xa91) ||
0 0 (c >= 0xa8f && c <= 0xa91) ||
32477 0 0 (c >= 0xa93 && c <= 0xaa8) ||
0 0 (c >= 0xa93 && c <= 0xaa8) ||
32478 0 0 (c >= 0xaaa && c <= 0xab0) ||
0 0 (c >= 0xaaa && c <= 0xab0) ||
32479 0 0 (c >= 0xab2 && c <= 0xab3) ||
0 0 (c >= 0xab2 && c <= 0xab3) ||
32480 0 0 (c >= 0xab5 && c <= 0xab9) ||
0 0 (c >= 0xab5 && c <= 0xab9) ||
32481 0 0 c == 0xabd ||
32482 0 0 c == 0xae0 ||
32483 0 0 (c >= 0xb05 && c <= 0xb0c) ||
0 0 (c >= 0xb05 && c <= 0xb0c) ||
32484 0 0 (c >= 0xb0f && c <= 0xb10) ||
0 0 (c >= 0xb0f && c <= 0xb10) ||
32485 0 0 (c >= 0xb13 && c <= 0xb28) ||
0 0 (c >= 0xb13 && c <= 0xb28) ||
32486 0 0 (c >= 0xb2a && c <= 0xb30) ||
0 0 (c >= 0xb2a && c <= 0xb30) ||
32487 0 0 (c >= 0xb32 && c <= 0xb33) ||
0 0 (c >= 0xb32 && c <= 0xb33) ||
32488 0 0 (c >= 0xb36 && c <= 0xb39) ||
0 0 (c >= 0xb36 && c <= 0xb39) ||
32489 0 0 c == 0xb3d ||
32490 0 0 (c >= 0xb5c && c <= 0xb5d) ||
0 0 (c >= 0xb5c && c <= 0xb5d) ||
32491 0 0 (c >= 0xb5f && c <= 0xb61) ||
0 0 (c >= 0xb5f && c <= 0xb61) ||
32492 0 0 (c >= 0xb85 && c <= 0xb8a) ||
0 0 (c >= 0xb85 && c <= 0xb8a) ||
32493 0 0 (c >= 0xb8e && c <= 0xb90) ||
0 0 (c >= 0xb8e && c <= 0xb90) ||
32494 0 0 (c >= 0xb92 && c <= 0xb95) ||
0 0 (c >= 0xb92 && c <= 0xb95) ||
32495 0 0 (c >= 0xb99 && c <= 0xb9a) ||
0 0 (c >= 0xb99 && c <= 0xb9a) ||
32496 0 0 c == 0xb9c ||
32497 0 0 (c >= 0xb9e && c <= 0xb9f) ||
0 0 (c >= 0xb9e && c <= 0xb9f) ||
32498 0 0 (c >= 0xba3 && c <= 0xba4) ||
0 0 (c >= 0xba3 && c <= 0xba4) ||
32499 0 0 (c >= 0xba8 && c <= 0xbaa) ||
0 0 (c >= 0xba8 && c <= 0xbaa) ||
32500 0 0 (c >= 0xbae && c <= 0xbb5) ||
0 0 (c >= 0xbae && c <= 0xbb5) ||
32501 0 0 (c >= 0xbb7 && c <= 0xbb9) ||
0 0 (c >= 0xbb7 && c <= 0xbb9) ||
32502 0 0 (c >= 0xc05 && c <= 0xc0c) ||
0 0 (c >= 0xc05 && c <= 0xc0c) ||
32503 0 0 (c >= 0xc0e && c <= 0xc10) ||
0 0 (c >= 0xc0e && c <= 0xc10) ||
32504 0 0 (c >= 0xc12 && c <= 0xc28) ||
0 0 (c >= 0xc12 && c <= 0xc28) ||
32505 0 0 (c >= 0xc2a && c <= 0xc33) ||
0 0 (c >= 0xc2a && c <= 0xc33) ||
32506 0 0 (c >= 0xc35 && c <= 0xc39) ||
0 0 (c >= 0xc35 && c <= 0xc39) ||
32507 0 0 (c >= 0xc60 && c <= 0xc61) ||
0 0 (c >= 0xc60 && c <= 0xc61) ||
32508 0 0 (c >= 0xc85 && c <= 0xc8c) ||
0 0 (c >= 0xc85 && c <= 0xc8c) ||
32509 0 0 (c >= 0xc8e && c <= 0xc90) ||
0 0 (c >= 0xc8e && c <= 0xc90) ||
32510 0 0 (c >= 0xc92 && c <= 0xca8) ||
0 0 (c >= 0xc92 && c <= 0xca8) ||
32511 0 0 (c >= 0xcaa && c <= 0xcb3) ||
0 0 (c >= 0xcaa && c <= 0xcb3) ||
32512 0 0 (c >= 0xcb5 && c <= 0xcb9) ||
0 0 (c >= 0xcb5 && c <= 0xcb9) ||
32513 0 0 c == 0xcde ||
32514 0 0 (c >= 0xce0 && c <= 0xce1) ||
0 0 (c >= 0xce0 && c <= 0xce1) ||
32515 0 0 (c >= 0xd05 && c <= 0xd0c) ||
0 0 (c >= 0xd05 && c <= 0xd0c) ||
32516 0 0 (c >= 0xd0e && c <= 0xd10) ||
0 0 (c >= 0xd0e && c <= 0xd10) ||
32517 0 0 (c >= 0xd12 && c <= 0xd28) ||
0 0 (c >= 0xd12 && c <= 0xd28) ||
32518 0 0 (c >= 0xd2a && c <= 0xd39) ||
0 0 (c >= 0xd2a && c <= 0xd39) ||
32519 0 0 (c >= 0xd60 && c <= 0xd61) ||
0 0 (c >= 0xd60 && c <= 0xd61) ||
32520 0 0 (c >= 0xe01 && c <= 0xe2e) ||
0 0 (c >= 0xe01 && c <= 0xe2e) ||
32521 0 0 c == 0xe30 ||
32522 0 0 (c >= 0xe32 && c <= 0xe33) ||
0 0 (c >= 0xe32 && c <= 0xe33) ||
32523 0 0 (c >= 0xe40 && c <= 0xe45) ||
0 0 (c >= 0xe40 && c <= 0xe45) ||
32524 0 0 (c >= 0xe81 && c <= 0xe82) ||
0 0 (c >= 0xe81 && c <= 0xe82) ||
32525 0 0 c == 0xe84 ||
32526 0 0 (c >= 0xe87 && c <= 0xe88) ||
0 0 (c >= 0xe87 && c <= 0xe88) ||
32527 0 0 c == 0xe8a ||
32528 0 0 c == 0xe8d ||
32529 0 0 (c >= 0xe94 && c <= 0xe97) ||
0 0 (c >= 0xe94 && c <= 0xe97) ||
32530 0 0 (c >= 0xe99 && c <= 0xe9f) ||
0 0 (c >= 0xe99 && c <= 0xe9f) ||
32531 0 0 (c >= 0xea1 && c <= 0xea3) ||
0 0 (c >= 0xea1 && c <= 0xea3) ||
32532 0 0 c == 0xea5 ||
32533 0 0 c == 0xea7 ||
32534 0 0 (c >= 0xeaa && c <= 0xeab) ||
0 0 (c >= 0xeaa && c <= 0xeab) ||
32535 0 0 (c >= 0xead && c <= 0xeae) ||
0 0 (c >= 0xead && c <= 0xeae) ||
32536 0 0 c == 0xeb0 ||
32537 0 0 (c >= 0xeb2 && c <= 0xeb3) ||
0 0 (c >= 0xeb2 && c <= 0xeb3) ||
32538 0 0 c == 0xebd ||
32539 0 0 (c >= 0xec0 && c <= 0xec4) ||
0 0 (c >= 0xec0 && c <= 0xec4) ||
32540 0 0 (c >= 0xf40 && c <= 0xf47) ||
0 0 (c >= 0xf40 && c <= 0xf47) ||
32541 0 0 (c >= 0xf49 && c <= 0xf69) ||
0 0 (c >= 0xf49 && c <= 0xf69) ||
32542 0 0 (c >= 0x10a0 && c <= 0x10c5) ||
0 0 (c >= 0x10a0 && c <= 0x10c5) ||
32543 0 0 (c >= 0x10d0 && c <= 0x10f6) ||
0 0 (c >= 0x10d0 && c <= 0x10f6) ||
32544 0 0 c == 0x1100 ||
32545 0 0 (c >= 0x1102 && c <= 0x1103) ||
0 0 (c >= 0x1102 && c <= 0x1103) ||
32546 0 0 (c >= 0x1105 && c <= 0x1107) ||
0 0 (c >= 0x1105 && c <= 0x1107) ||
32547 0 0 c == 0x1109 ||
32548 0 0 (c >= 0x110b && c <= 0x110c) ||
0 0 (c >= 0x110b && c <= 0x110c) ||
32549 0 0 (c >= 0x110e && c <= 0x1112) ||
0 0 (c >= 0x110e && c <= 0x1112) ||
32550 0 0 c == 0x113c ||
32551 0 0 c == 0x113e ||
32552 0 0 c == 0x1140 ||
32553 0 0 c == 0x114c ||
32554 0 0 c == 0x114e ||
32555 0 0 c == 0x1150 ||
32556 0 0 (c >= 0x1154 && c <= 0x1155) ||
0 0 (c >= 0x1154 && c <= 0x1155) ||
32557 0 0 c == 0x1159 ||
32558 0 0 (c >= 0x115f && c <= 0x1161) ||
0 0 (c >= 0x115f && c <= 0x1161) ||
32559 0 0 c == 0x1163 ||
32560 0 0 c == 0x1165 ||
32561 0 0 c == 0x1167 ||
32562 0 0 c == 0x1169 ||
32563 0 0 (c >= 0x116d && c <= 0x116e) ||
0 0 (c >= 0x116d && c <= 0x116e) ||
32564 0 0 (c >= 0x1172 && c <= 0x1173) ||
0 0 (c >= 0x1172 && c <= 0x1173) ||
32565 0 0 c == 0x1175 ||
32566 0 0 c == 0x119e ||
32567 0 0 c == 0x11a8 ||
32568 0 0 c == 0x11ab ||
32569 0 0 (c >= 0x11ae && c <= 0x11af) ||
0 0 (c >= 0x11ae && c <= 0x11af) ||
32570 0 0 (c >= 0x11b7 && c <= 0x11b8) ||
0 0 (c >= 0x11b7 && c <= 0x11b8) ||
32571 0 0 c == 0x11ba ||
32572 0 0 (c >= 0x11bc && c <= 0x11c2) ||
0 0 (c >= 0x11bc && c <= 0x11c2) ||
32573 0 0 c == 0x11eb ||
32574 0 0 c == 0x11f0 ||
32575 0 0 c == 0x11f9 ||
32576 0 0 (c >= 0x1e00 && c <= 0x1e9b) ||
0 0 (c >= 0x1e00 && c <= 0x1e9b) ||
32577 0 0 (c >= 0x1ea0 && c <= 0x1ef9) ||
0 0 (c >= 0x1ea0 && c <= 0x1ef9) ||
32578 0 0 (c >= 0x1f00 && c <= 0x1f15) ||
0 0 (c >= 0x1f00 && c <= 0x1f15) ||
32579 0 0 (c >= 0x1f18 && c <= 0x1f1d) ||
0 0 (c >= 0x1f18 && c <= 0x1f1d) ||
32580 0 0 (c >= 0x1f20 && c <= 0x1f45) ||
0 0 (c >= 0x1f20 && c <= 0x1f45) ||
32581 0 0 (c >= 0x1f48 && c <= 0x1f4d) ||
0 0 (c >= 0x1f48 && c <= 0x1f4d) ||
32582 0 0 (c >= 0x1f50 && c <= 0x1f57) ||
0 0 (c >= 0x1f50 && c <= 0x1f57) ||
32583 0 0 c == 0x1f59 ||
32584 0 0 c == 0x1f5b ||
32585 0 0 c == 0x1f5d ||
32586 0 0 (c >= 0x1f5f && c <= 0x1f7d) ||
0 0 (c >= 0x1f5f && c <= 0x1f7d) ||
32587 0 0 (c >= 0x1f80 && c <= 0x1fb4) ||
0 0 (c >= 0x1f80 && c <= 0x1fb4) ||
32588 0 0 (c >= 0x1fb6 && c <= 0x1fbc) ||
0 0 (c >= 0x1fb6 && c <= 0x1fbc) ||
32589 0 0 c == 0x1fbe ||
32590 0 0 (c >= 0x1fc2 && c <= 0x1fc4) ||
0 0 (c >= 0x1fc2 && c <= 0x1fc4) ||
32591 0 0 (c >= 0x1fc6 && c <= 0x1fcc) ||
0 0 (c >= 0x1fc6 && c <= 0x1fcc) ||
32592 0 0 (c >= 0x1fd0 && c <= 0x1fd3) ||
0 0 (c >= 0x1fd0 && c <= 0x1fd3) ||
32593 0 0 (c >= 0x1fd6 && c <= 0x1fdb) ||
0 0 (c >= 0x1fd6 && c <= 0x1fdb) ||
32594 0 0 (c >= 0x1fe0 && c <= 0x1fec) ||
0 0 (c >= 0x1fe0 && c <= 0x1fec) ||
32595 0 0 (c >= 0x1ff2 && c <= 0x1ff4) ||
0 0 (c >= 0x1ff2 && c <= 0x1ff4) ||
32596 0 0 (c >= 0x1ff6 && c <= 0x1ffc) ||
0 0 (c >= 0x1ff6 && c <= 0x1ffc) ||
32597 0 0 c == 0x2126 ||
32598 0 0 (c >= 0x212a && c <= 0x212b) ||
0 0 (c >= 0x212a && c <= 0x212b) ||
32599 0 0 c == 0x212e ||
32600 0 0 (c >= 0x2180 && c <= 0x2182) ||
0 0 (c >= 0x2180 && c <= 0x2182) ||
32601 0 0 (c >= 0x3041 && c <= 0x3094) ||
0 0 (c >= 0x3041 && c <= 0x3094) ||
32602 0 0 (c >= 0x30a1 && c <= 0x30fa) ||
0 0 (c >= 0x30a1 && c <= 0x30fa) ||
32603 0 0 (c >= 0x3105 && c <= 0x312c) ||
0 0 (c >= 0x3105 && c <= 0x312c) ||
32604 0 0 (c >= 0xac00 && c <= 0xd7a3) ||
0 0 (c >= 0xac00 && c <= 0xd7a3) ||
32605 0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
32606 0 0 c == 0x3007 ||
32607 0 0 (c >= 0x3021 && c <= 0x3029) ||
0 0 (c >= 0x3021 && c <= 0x3029) ||
32608 0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
0 0 (c >= 0x4e00 && c <= 0x9fa5) ||
32609 0 0 c == 0x3007 ||
0 0 c == 0x3007 ||
32610 0 0 (c >= 0x3021 && c <= 0x3029));
32615 0 0 return (TY_(IsXMLLetter)(c) ||
32616 0 0 c == '.' || c == '_' ||
0 0 c == '.' || c == '_' ||
32617 0 0 c == ':' || c == '-' ||
0 0 c == ':' || c == '-' ||
32618 0 0 (c >= 0x300 && c <= 0x345) ||
0 0 (c >= 0x300 && c <= 0x345) ||
32619 0 0 (c >= 0x360 && c <= 0x361) ||
0 0 (c >= 0x360 && c <= 0x361) ||
32620 0 0 (c >= 0x483 && c <= 0x486) ||
0 0 (c >= 0x483 && c <= 0x486) ||
32621 0 0 (c >= 0x591 && c <= 0x5a1) ||
0 0 (c >= 0x591 && c <= 0x5a1) ||
32622 0 0 (c >= 0x5a3 && c <= 0x5b9) ||
0 0 (c >= 0x5a3 && c <= 0x5b9) ||
32623 0 0 (c >= 0x5bb && c <= 0x5bd) ||
0 0 (c >= 0x5bb && c <= 0x5bd) ||
32624 0 0 c == 0x5bf ||
32625 0 0 (c >= 0x5c1 && c <= 0x5c2) ||
0 0 (c >= 0x5c1 && c <= 0x5c2) ||
32626 0 0 c == 0x5c4 ||
32627 0 0 (c >= 0x64b && c <= 0x652) ||
0 0 (c >= 0x64b && c <= 0x652) ||
32628 0 0 c == 0x670 ||
32629 0 0 (c >= 0x6d6 && c <= 0x6dc) ||
0 0 (c >= 0x6d6 && c <= 0x6dc) ||
32630 0 0 (c >= 0x6dd && c <= 0x6df) ||
0 0 (c >= 0x6dd && c <= 0x6df) ||
32631 0 0 (c >= 0x6e0 && c <= 0x6e4) ||
0 0 (c >= 0x6e0 && c <= 0x6e4) ||
32632 0 0 (c >= 0x6e7 && c <= 0x6e8) ||
0 0 (c >= 0x6e7 && c <= 0x6e8) ||
32633 0 0 (c >= 0x6ea && c <= 0x6ed) ||
0 0 (c >= 0x6ea && c <= 0x6ed) ||
32634 0 0 (c >= 0x901 && c <= 0x903) ||
0 0 (c >= 0x901 && c <= 0x903) ||
32635 0 0 c == 0x93c ||
32636 0 0 (c >= 0x93e && c <= 0x94c) ||
0 0 (c >= 0x93e && c <= 0x94c) ||
32637 0 0 c == 0x94d ||
32638 0 0 (c >= 0x951 && c <= 0x954) ||
0 0 (c >= 0x951 && c <= 0x954) ||
32639 0 0 (c >= 0x962 && c <= 0x963) ||
0 0 (c >= 0x962 && c <= 0x963) ||
32640 0 0 (c >= 0x981 && c <= 0x983) ||
0 0 (c >= 0x981 && c <= 0x983) ||
32641 0 0 c == 0x9bc ||
32642 0 0 c == 0x9be ||
32643 0 0 c == 0x9bf ||
32644 0 0 (c >= 0x9c0 && c <= 0x9c4) ||
0 0 (c >= 0x9c0 && c <= 0x9c4) ||
32645 0 0 (c >= 0x9c7 && c <= 0x9c8) ||
0 0 (c >= 0x9c7 && c <= 0x9c8) ||
32646 0 0 (c >= 0x9cb && c <= 0x9cd) ||
0 0 (c >= 0x9cb && c <= 0x9cd) ||
32647 0 0 c == 0x9d7 ||
32648 0 0 (c >= 0x9e2 && c <= 0x9e3) ||
0 0 (c >= 0x9e2 && c <= 0x9e3) ||
32649 0 0 c == 0xa02 ||
32650 0 0 c == 0xa3c ||
32651 0 0 c == 0xa3e ||
32652 0 0 c == 0xa3f ||
32653 0 0 (c >= 0xa40 && c <= 0xa42) ||
0 0 (c >= 0xa40 && c <= 0xa42) ||
32654 0 0 (c >= 0xa47 && c <= 0xa48) ||
0 0 (c >= 0xa47 && c <= 0xa48) ||
32655 0 0 (c >= 0xa4b && c <= 0xa4d) ||
0 0 (c >= 0xa4b && c <= 0xa4d) ||
32656 0 0 (c >= 0xa70 && c <= 0xa71) ||
0 0 (c >= 0xa70 && c <= 0xa71) ||
32657 0 0 (c >= 0xa81 && c <= 0xa83) ||
0 0 (c >= 0xa81 && c <= 0xa83) ||
32658 0 0 c == 0xabc ||
32659 0 0 (c >= 0xabe && c <= 0xac5) ||
0 0 (c >= 0xabe && c <= 0xac5) ||
32660 0 0 (c >= 0xac7 && c <= 0xac9) ||
0 0 (c >= 0xac7 && c <= 0xac9) ||
32661 0 0 (c >= 0xacb && c <= 0xacd) ||
0 0 (c >= 0xacb && c <= 0xacd) ||
32662 0 0 (c >= 0xb01 && c <= 0xb03) ||
0 0 (c >= 0xb01 && c <= 0xb03) ||
32663 0 0 c == 0xb3c ||
32664 0 0 (c >= 0xb3e && c <= 0xb43) ||
0 0 (c >= 0xb3e && c <= 0xb43) ||
32665 0 0 (c >= 0xb47 && c <= 0xb48) ||
0 0 (c >= 0xb47 && c <= 0xb48) ||
32666 0 0 (c >= 0xb4b && c <= 0xb4d) ||
0 0 (c >= 0xb4b && c <= 0xb4d) ||
32667 0 0 (c >= 0xb56 && c <= 0xb57) ||
0 0 (c >= 0xb56 && c <= 0xb57) ||
32668 0 0 (c >= 0xb82 && c <= 0xb83) ||
0 0 (c >= 0xb82 && c <= 0xb83) ||
32669 0 0 (c >= 0xbbe && c <= 0xbc2) ||
0 0 (c >= 0xbbe && c <= 0xbc2) ||
32670 0 0 (c >= 0xbc6 && c <= 0xbc8) ||
0 0 (c >= 0xbc6 && c <= 0xbc8) ||
32671 0 0 (c >= 0xbca && c <= 0xbcd) ||
0 0 (c >= 0xbca && c <= 0xbcd) ||
32672 0 0 c == 0xbd7 ||
32673 0 0 (c >= 0xc01 && c <= 0xc03) ||
0 0 (c >= 0xc01 && c <= 0xc03) ||
32674 0 0 (c >= 0xc3e && c <= 0xc44) ||
0 0 (c >= 0xc3e && c <= 0xc44) ||
32675 0 0 (c >= 0xc46 && c <= 0xc48) ||
0 0 (c >= 0xc46 && c <= 0xc48) ||
32676 0 0 (c >= 0xc4a && c <= 0xc4d) ||
0 0 (c >= 0xc4a && c <= 0xc4d) ||
32677 0 0 (c >= 0xc55 && c <= 0xc56) ||
0 0 (c >= 0xc55 && c <= 0xc56) ||
32678 0 0 (c >= 0xc82 && c <= 0xc83) ||
0 0 (c >= 0xc82 && c <= 0xc83) ||
32679 0 0 (c >= 0xcbe && c <= 0xcc4) ||
0 0 (c >= 0xcbe && c <= 0xcc4) ||
32680 0 0 (c >= 0xcc6 && c <= 0xcc8) ||
0 0 (c >= 0xcc6 && c <= 0xcc8) ||
32681 0 0 (c >= 0xcca && c <= 0xccd) ||
0 0 (c >= 0xcca && c <= 0xccd) ||
32682 0 0 (c >= 0xcd5 && c <= 0xcd6) ||
0 0 (c >= 0xcd5 && c <= 0xcd6) ||
32683 0 0 (c >= 0xd02 && c <= 0xd03) ||
0 0 (c >= 0xd02 && c <= 0xd03) ||
32684 0 0 (c >= 0xd3e && c <= 0xd43) ||
0 0 (c >= 0xd3e && c <= 0xd43) ||
32685 0 0 (c >= 0xd46 && c <= 0xd48) ||
0 0 (c >= 0xd46 && c <= 0xd48) ||
32686 0 0 (c >= 0xd4a && c <= 0xd4d) ||
0 0 (c >= 0xd4a && c <= 0xd4d) ||
32687 0 0 c == 0xd57 ||
32688 0 0 c == 0xe31 ||
32689 0 0 (c >= 0xe34 && c <= 0xe3a) ||
0 0 (c >= 0xe34 && c <= 0xe3a) ||
32690 0 0 (c >= 0xe47 && c <= 0xe4e) ||
0 0 (c >= 0xe47 && c <= 0xe4e) ||
32691 0 0 c == 0xeb1 ||
32692 0 0 (c >= 0xeb4 && c <= 0xeb9) ||
0 0 (c >= 0xeb4 && c <= 0xeb9) ||
32693 0 0 (c >= 0xebb && c <= 0xebc) ||
0 0 (c >= 0xebb && c <= 0xebc) ||
32694 0 0 (c >= 0xec8 && c <= 0xecd) ||
0 0 (c >= 0xec8 && c <= 0xecd) ||
32695 0 0 (c >= 0xf18 && c <= 0xf19) ||
0 0 (c >= 0xf18 && c <= 0xf19) ||
32696 0 0 c == 0xf35 ||
32697 0 0 c == 0xf37 ||
32698 0 0 c == 0xf39 ||
32699 0 0 c == 0xf3e ||
32700 0 0 c == 0xf3f ||
32701 0 0 (c >= 0xf71 && c <= 0xf84) ||
0 0 (c >= 0xf71 && c <= 0xf84) ||
32702 0 0 (c >= 0xf86 && c <= 0xf8b) ||
0 0 (c >= 0xf86 && c <= 0xf8b) ||
32703 0 0 (c >= 0xf90 && c <= 0xf95) ||
0 0 (c >= 0xf90 && c <= 0xf95) ||
32704 0 0 c == 0xf97 ||
32705 0 0 (c >= 0xf99 && c <= 0xfad) ||
0 0 (c >= 0xf99 && c <= 0xfad) ||
32706 0 0 (c >= 0xfb1 && c <= 0xfb7) ||
0 0 (c >= 0xfb1 && c <= 0xfb7) ||
32707 0 0 c == 0xfb9 ||
32708 0 0 (c >= 0x20d0 && c <= 0x20dc) ||
0 0 (c >= 0x20d0 && c <= 0x20dc) ||
32709 0 0 c == 0x20e1 ||
32710 0 0 (c >= 0x302a && c <= 0x302f) ||
0 0 (c >= 0x302a && c <= 0x302f) ||
32711 0 0 c == 0x3099 ||
32712 0 0 c == 0x309a ||
32713 0 0 (c >= 0x30 && c <= 0x39) ||
0 0 (c >= 0x30 && c <= 0x39) ||
32714 0 0 (c >= 0x660 && c <= 0x669) ||
0 0 (c >= 0x660 && c <= 0x669) ||
32715 0 0 (c >= 0x6f0 && c <= 0x6f9) ||
0 0 (c >= 0x6f0 && c <= 0x6f9) ||
32716 0 0 (c >= 0x966 && c <= 0x96f) ||
0 0 (c >= 0x966 && c <= 0x96f) ||
32717 0 0 (c >= 0x9e6 && c <= 0x9ef) ||
0 0 (c >= 0x9e6 && c <= 0x9ef) ||
32718 0 0 (c >= 0xa66 && c <= 0xa6f) ||
0 0 (c >= 0xa66 && c <= 0xa6f) ||
32719 0 0 (c >= 0xae6 && c <= 0xaef) ||
0 0 (c >= 0xae6 && c <= 0xaef) ||
32720 0 0 (c >= 0xb66 && c <= 0xb6f) ||
0 0 (c >= 0xb66 && c <= 0xb6f) ||
32721 0 0 (c >= 0xbe7 && c <= 0xbef) ||
0 0 (c >= 0xbe7 && c <= 0xbef) ||
32722 0 0 (c >= 0xc66 && c <= 0xc6f) ||
0 0 (c >= 0xc66 && c <= 0xc6f) ||
32723 0 0 (c >= 0xce6 && c <= 0xcef) ||
0 0 (c >= 0xce6 && c <= 0xcef) ||
32724 0 0 (c >= 0xd66 && c <= 0xd6f) ||
0 0 (c >= 0xd66 && c <= 0xd6f) ||
32725 0 0 (c >= 0xe50 && c <= 0xe59) ||
0 0 (c >= 0xe50 && c <= 0xe59) ||
32726 0 0 (c >= 0xed0 && c <= 0xed9) ||
0 0 (c >= 0xed0 && c <= 0xed9) ||
32727 0 0 (c >= 0xf20 && c <= 0xf29) ||
0 0 (c >= 0xf20 && c <= 0xf29) ||
32728 0 0 c == 0xb7 ||
32729 0 0 c == 0x2d0 ||
32730 0 0 c == 0x2d1 ||
32731 0 0 c == 0x387 ||
32732 0 0 c == 0x640 ||
32733 0 0 c == 0xe46 ||
32734 0 0 c == 0xec6 ||
32735 0 0 c == 0x3005 ||
32736 0 0 (c >= 0x3031 && c <= 0x3035) ||
0 0 (c >= 0x3031 && c <= 0x3035) ||
32737 0 0 (c >= 0x309d && c <= 0x309e) ||
0 0 (c >= 0x309d && c <= 0x309e) ||
0 0 (c >= 0x309d && c <= 0x309e) ||
32738 0 0 (c >= 0x30fc && c <= 0x30fe));
32743 25 0 unsigned int map = MAP(c);
32750 4088 0 unsigned int map = MAP(c);
32752 1077 3011 if (map & uppercase)
32760 0 0 unsigned int map = MAP(c);
32762 0 0 if (map & lowercase)
32775 0 0 if ( str && *str )
0 0 if ( str && *str )
32796 3 0 if ( lexer != NULL )
32814 0 2 assert( doc->docIn != NULL );
32815 2 0 return ( !doc->docIn->pushed && TY_(IsEOF)(doc->docIn) );
0 2 return ( !doc->docIn->pushed && TY_(IsEOF)(doc->docIn) );
32821 3 4 if ( lexer )
32826 3 0 if ( lexer->pushed || lexer->itoken )
0 3 if ( lexer->pushed || lexer->itoken )
32828 0 0 if (lexer->pushed)
32833 0 3 while ( lexer->istacksize > 0 )
32849 3 86 if ( lexer->lexsize + 2 >= lexer->lexlength )
32854 3 3 while ( lexer->lexsize + 2 >= allocAmt )
32856 3 0 if ( allocAmt == 0 )
32860 0 3 if (allocAmt < prev) /* Is. #761 - watch for wrap - and */
32864 3 0 if ( buf )
32879 7 0 if ( lexer->lexsize > 0 )
32892 0 89 if (err)
32901 89 89 for ( i = 0; i < count; ++i )
32913 0 0 while( 0 != (c = (unsigned char) *str++ ))
32947 0 0 if (!lexer)
32950 0 0 if (!buf)
32952 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream )
32954 0 0 if (c == ';')
32958 0 0 if ((offset + 2) > bufSize)
32962 0 0 if (!buf)
32968 0 0 if (offset == 1)
32970 0 0 if (c != '#') /* is a numeric entity */
32973 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')))
32979 0 0 if (type) /* if hex digits */
32981 0 0 if (!IsDigitHex(c))
32986 0 0 if (!TY_(IsDigit)(c))
32992 0 0 if (c == ';')
32997 0 0 if (type)
33002 0 0 if (scanned == 1 && TY_(IsHighSurrogate)(ch))
0 0 if (scanned == 1 && TY_(IsHighSurrogate)(ch))
33005 0 0 if (TY_(IsValidCombinedChar)(ch))
33019 0 0 if (status == SP_error)
33022 0 0 if (c == ';') /* if last, not added to buffer */
33024 0 0 if (buf && offset)
0 0 if (buf && offset)
33027 0 0 for (i = offset - 1; i >= 0; i--)
33035 0 0 if (buf)
33095 0 0 while ( (c = TY_(ReadChar)(doc->docIn)) != EndOfStream )
33097 0 0 if ( c == ';' )
33104 0 0 if (charRead == 1 && c == '#')
0 0 if (charRead == 1 && c == '#')
33106 0 0 if ( !cfgBool(doc, TidyNCR) ||
0 0 if ( !cfgBool(doc, TidyNCR) ||
33107 0 0 cfg(doc, TidyInCharEncoding) == BIG5 ||
33118 0 0 else if (charRead == 2 && entState == ENT_numdec
0 0 else if (charRead == 2 && entState == ENT_numdec
33119 0 0 && (c == 'x' || (!isXml && c == 'X')) )
0 0 && (c == 'x' || (!isXml && c == 'X')) )
0 0 && (c == 'x' || (!isXml && c == 'X')) )
33126 0 0 if ( entFn[entState](c) )
33144 0 0 if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0
33145 0 0 && !cfgBool(doc, TidyXmlOut)
33146 0 0 && !lexer->isvoyager
33147 0 0 && !cfgBool(doc, TidyXhtmlOut)
33148 0 0 && !(TY_(HTMLVersion)(doc) == HT50) ) /* Issue #239 - no warning if in HTML5++ mode */
33151 0 0 if (( mode == OtherNamespace ) && ( c == ';' ))
0 0 if (( mode == OtherNamespace ) && ( c == ';' ))
33170 0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
0 0 if (!preserveEntities && found && TY_(IsLowSurrogate)(ch))
33173 0 0 if ((c1 = TY_(ReadChar)(doc->docIn)) == '&')
33180 0 0 if (status == SP_error)
33195 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))
33205 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 != ';') )
33211 0 0 if (lexer->lexsize > start + 1)
33213 0 0 if (ch >= 128 && ch <= 159)
0 0 if (ch >= 128 && ch <= 159)
33223 0 0 if ( c1 )
33226 0 0 if ( c != ';' ) /* issue warning if not terminated by ';' */
33232 0 0 if ( c1 )
33251 0 0 if (semicolon)
33259 0 0 if (TY_(HTMLVersion)(doc) != HT50)
33268 0 0 if ( c != ';' ) /* issue warning if not terminated by ';' */
33276 0 0 if (preserveEntities)
33281 0 0 if ( ch == 160 && (mode == Preformatted) )
0 0 if ( ch == 160 && (mode == Preformatted) )
33285 0 0 if ( ch == '&' && !cfgBool(doc, TidyQuoteAmpersand) )
0 0 if ( ch == '&' && !cfgBool(doc, TidyQuoteAmpersand) )
33301 8 0 if (!xml && TY_(IsUpper)(c))
0 8 if (!xml && TY_(IsUpper)(c))
33304 22 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
33306 22 0 if ((!xml && !TY_(IsNamechar)(c)) ||
14 8 if ((!xml && !TY_(IsNamechar)(c)) ||
0 14 if ((!xml && !TY_(IsNamechar)(c)) ||
33307 0 0 (xml && !TY_(IsXMLNamechar)(c)))
33311 14 0 if (!xml && TY_(IsUpper)(c))
0 14 if (!xml && TY_(IsUpper)(c))
33340 27 3 if ( lexer )
33361 0 0 if ( element )
33377 11 37 while ( node->attributes )
33381 11 0 if ( av->attribute )
33383 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)) &&
33411 0 0 for ( av = node->attributes; av; av = av->next )
33413 0 0 if ( av == attr )
33415 0 0 if ( prev )
33458 37 70 while ( node )
33465 30 7 if (RootNode != node->type)
33513 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 )
33542 0 0 while(0 != (c = *str++) ) {
33569 9 0 for ( node = (doc ? doc->root.content : NULL);
6 9 for ( node = (doc ? doc->root.content : NULL);
33570 6 0 node && node->type != DocTypeTag;
33579 0 0 for ( node = (node ? node->parent : NULL);
0 0 for ( node = (node ? node->parent : NULL);
33580 0 0 node && TY_(nodeHasCM)(node, CM_INLINE);
33592 24 0 for ( node = (doc ? doc->root.content : NULL);
31 0 for ( node = (doc ? doc->root.content : NULL);
33593 0 31 node && !nodeIsHTML(node);
7 24 node && !nodeIsHTML(node);
0 24 node && !nodeIsHTML(node);
33604 0 0 for ( node = (doc ? doc->root.content : NULL);
0 0 for ( node = (doc ? doc->root.content : NULL);
33605 0 0 node && !(node->type == XmlDecl);
33617 15 0 if ( node )
33619 15 0 for ( node = node->content;
33620 0 15 node && !nodeIsHEAD(node);
0 15 node && !nodeIsHEAD(node);
0 15 node && !nodeIsHEAD(node);
33632 3 0 if (node)
33633 1 2 for (node = node->content;
33634 0 1 node && !nodeIsTITLE(node);
0 1 node && !nodeIsTITLE(node);
0 1 node && !nodeIsTITLE(node);
33642 24 0 Node *node = ( doc ? doc->root.content : NULL );
33644 45 0 while ( node && !nodeIsHTML(node) )
0 45 while ( node && !nodeIsHTML(node) )
21 24 while ( node && !nodeIsHTML(node) )
0 24 while ( node && !nodeIsHTML(node) )
33647 0 24 if (node == NULL)
33651 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) )
33654 24 0 if ( node && nodeIsFRAMESET(node) )
24 0 if ( node && nodeIsFRAMESET(node) )
24 0 if ( node && nodeIsFRAMESET(node) )
0 24 if ( node && nodeIsFRAMESET(node) )
33657 0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
0 0 while ( node && !nodeIsNOFRAMES(node) )
33660 0 0 if ( node )
33663 0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
0 0 while ( node && !nodeIsBODY(node) )
33679 3 0 if (head)
33688 3 3 for ( node = head->content; node; node = node->next )
33690 3 0 if ( nodeIsMETA(node) )
3 0 if ( nodeIsMETA(node) )
0 3 if ( nodeIsMETA(node) )
33694 0 0 if (AttrValueIs(attval, "generator"))
0 0 if (AttrValueIs(attval, "generator"))
0 0 if (AttrValueIs(attval, "generator"))
33698 0 0 if (AttrHasValue(attval) &&
33712 3 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
33737 0 0 if (!fpi || !fpi->value)
0 0 if (!fpi || !fpi->value)
33743 0 0 if (doctype->element && (TY_(tmbstrcasecmp)(doctype->element,"html") == 0))
0 0 if (doctype->element && (TY_(tmbstrcasecmp)(doctype->element,"html") == 0))
33752 0 0 if (VERS_XHTML & vers)
33769 3 0 if ((doc->lexer->doctype == XH11 ||
0 3 if ((doc->lexer->doctype == XH11 ||
33770 0 0 doc->lexer->doctype == XB10) &&
33787 0 0 for (i = 0; W3C_Doctypes[i].name; ++i)
33788 0 0 if (W3C_Doctypes[i].vers == vers)
33800 0 3 if ( isXhtml )
33804 0 3 if ( TY_(HTMLVersionNameFromCode)(doc->lexer->versionEmitted, isXhtml ) == NULL )
33808 3 0 if ( GetSIFromVers(doc->lexer->versionEmitted) == NULL )
33811 0 0 if ( (doctype = TY_(FindDocType)( doc )) != NULL
33812 0 0 && TY_(GetAttrByName)(doctype, "SYSTEM") == NULL )
33830 0 3 if ( !html )
33849 0 0 if (dtmode == TidyDoctypeOmit)
33851 0 0 if (doctype)
33856 0 0 if (dtmode == TidyDoctypeUser && !cfgStr(doc, TidyDoctype))
0 0 if (dtmode == TidyDoctypeUser && !cfgStr(doc, TidyDoctype))
33859 0 0 if (!doctype)
33895 0 0 if (lexer->doctype == VERS_UNKNOWN || lexer->doctype == VERS_HTML5) {
0 0 if (lexer->doctype == VERS_UNKNOWN || lexer->doctype == VERS_HTML5) {
33899 0 0 else if (lexer->versions & XH11 && lexer->doctype == XH11)
0 0 else if (lexer->versions & XH11 && lexer->doctype == XH11)
33901 0 0 if (!TY_(GetAttrByName)(doctype, sys))
33906 0 0 else if (lexer->versions & XH11 && !(lexer->versions & VERS_HTML40))
0 0 else if (lexer->versions & XH11 && !(lexer->versions & VERS_HTML40))
33912 0 0 else if (lexer->versions & XB10 && lexer->doctype == XB10)
0 0 else if (lexer->versions & XB10 && lexer->doctype == XB10)
33914 0 0 if (!TY_(GetAttrByName)(doctype, sys))
33919 0 0 else if (lexer->versions & VERS_HTML40_STRICT)
33925 0 0 else if (lexer->versions & VERS_FRAMESET)
33931 0 0 else if (lexer->versions & VERS_LOOSE)
33937 0 0 else if (lexer->versions & VERS_HTML5)
33949 0 0 if (doctype)
33972 0 3 if (doctype && (dtmode == TidyDoctypeAuto) &&
0 0 if (doctype && (dtmode == TidyDoctypeAuto) &&
0 0 if (doctype && (dtmode == TidyDoctypeAuto) &&
33979 3 0 if (dtmode == TidyDoctypeAuto &&
0 3 if (dtmode == TidyDoctypeAuto &&
33980 0 0 lexer->versions & lexer->doctype &&
33981 0 0 !(VERS_XHTML & lexer->doctype && !lexer->isvoyager)
33982 0 0 && TY_(FindDocType)(doc))
33988 0 3 if (dtmode == TidyDoctypeOmit)
33990 0 0 if (doctype)
33996 0 3 if (cfgBool(doc, TidyXmlOut))
33999 0 3 if (doctype)
34002 3 0 if ((dtmode == TidyDoctypeStrict ||
0 3 if ((dtmode == TidyDoctypeStrict ||
34003 0 0 dtmode == TidyDoctypeLoose) && doctype)
34026 0 3 if (guessed == VERS_UNKNOWN)
34029 0 3 if (doctype)
34041 0 3 if (hadSI)
34056 0 0 if ( root->content && root->content->type == XmlDecl )
0 0 if ( root->content && root->content->type == XmlDecl )
34064 0 0 if ( root->content )
34079 0 0 if ( encoding == NULL && cfg(doc, TidyOutCharEncoding) != UTF8 )
0 0 if ( encoding == NULL && cfg(doc, TidyOutCharEncoding) != UTF8 )
34082 0 0 if ( enc )
34086 0 0 if ( version == NULL )
34097 0 14 assert( dict != NULL );
34111 0 4 if (node->type != StartTag)
34115 0 4 if (node->tag == NULL)
34118 1 3 if (node->tag->model & CM_EMPTY)
34151 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))) &&
34152 0 0 cfgBool(doc, TidySkipNested)) ? yes : no;
0 0 cfgBool(doc, TidySkipNested)) ? yes : no;
34159 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
34164 0 0 if (state == CDATA_INTERMEDIATE)
34166 0 0 if (c != '<')
34168 0 0 if (isEmpty && !TY_(IsWhite)(c))
0 0 if (isEmpty && !TY_(IsWhite)(c))
34175 0 0 if (TY_(IsLetter)(c))
34178 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))
34190 0 0 else if (c == '/')
34196 0 0 if (!TY_(IsLetter)(c))
34206 0 0 else if (c == '\\')
34213 0 0 if (c != '/')
34221 0 0 if (nonested) {
34233 0 0 if (!TY_(IsLetter)(c))
34249 0 0 else if (state == CDATA_STARTTAG)
34251 0 0 if (TY_(IsLetter)(c))
34256 0 0 if (matches && !nonested)
0 0 if (matches && !nonested)
34262 0 0 else if (state == CDATA_ENDTAG)
34264 0 0 if (TY_(IsLetter)(c))
34270 0 0 if (isEmpty && !matches)
0 0 if (isEmpty && !matches)
34274 0 0 for (i = lexer->lexsize - 1; i >= start; --i)
34281 0 0 if (matches && nested-- <= 0)
0 0 if (matches && nested-- <= 0)
34283 0 0 for (i = lexer->lexsize - 1; i >= start; --i)
34290 0 0 else if (lexer->lexbuf[start - 2] != '\\')
34299 0 0 if ((TY_(IsJavaScript)(container)) && cfgBool(doc, TidyEscapeScripts) &&
34305 0 0 for (i = lexer->lexsize; i > start-1; --i)
34315 0 0 if (isEmpty)
34320 0 0 if (c == EndOfStream)
34363 17 13 if (lexer->pushed || lexer->itoken)
0 17 if (lexer->pushed || lexer->itoken)
34366 0 13 if (lexer->itoken)
34369 0 0 if (lexer->pushed)
34382 0 13 if (lexer->token->type != TextNode
34383 0 0 || !(lexer->insert || lexer->inode)) {
0 0 || !(lexer->insert || lexer->inode)) {
34394 17 0 assert( !(lexer->pushed || lexer->itoken) );
0 17 assert( !(lexer->pushed || lexer->itoken) );
34400 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)
34411 0 17 if (mode == CdataContent)
34413 0 0 assert( lexer->parent != NULL );
34461 44 6 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
34463 0 44 if (lexer->insertspace)
34470 0 44 if (c == 160 && (mode == Preformatted))
0 0 if (c == 160 && (mode == Preformatted))
34484 6 22 if (TY_(IsWhite)(c) && (mode == IgnoreWhitespace)
2 4 if (TY_(IsWhite)(c) && (mode == IgnoreWhitespace)
34485 2 0 && lexer->lexsize == lexer->txtstart + 1)
34493 8 18 if (c == '<')
34499 4 14 if (TY_(IsWhite)(c))
34502 0 4 if (lexer->waswhite)
34504 0 0 if (mode != Preformatted && mode != IgnoreMarkup)
0 0 if (mode != Preformatted && mode != IgnoreMarkup)
34514 2 2 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
2 0 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
2 0 if (mode != Preformatted && mode != IgnoreMarkup && c != ' ')
34520 0 14 else if (c == '&' && mode != IgnoreMarkup)
0 0 else if (c == '&' && mode != IgnoreMarkup)
34524 0 14 if (mode == IgnoreWhitespace)
34533 3 5 if (c == '/')
34535 0 3 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
34543 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)))
34553 2 1 if (lexer->txtend > lexer->txtstart)
34556 0 2 if (mode == IgnoreWhitespace && lexer->lexbuf[lexer->lexsize - 1] == ' ')
0 0 if (mode == IgnoreWhitespace && lexer->lexbuf[lexer->lexsize - 1] == ' ')
34576 0 5 if (mode == IgnoreMarkup)
34588 0 5 if (c == '!')
34592 0 0 if (c == '-')
34596 0 0 if (c == '-')
34602 0 0 CondReturnTextNode(doc, 4)
34613 0 0 else if (c == 'd' || c == 'D')
0 0 else if (c == 'd' || c == 'D')
34631 0 0 if (c == EndOfStream || c == '>')
0 0 if (c == EndOfStream || c == '>')
34638 0 0 if (!TY_(IsWhite)(c))
34648 0 0 if (c == EndOfStream || c == '>')
0 0 if (c == EndOfStream || c == '>')
34655 0 0 if (TY_(IsWhite)(c))
34665 0 0 CondReturnTextNode(doc, (skip + 3))
34670 0 0 else if (c == '[')
34677 0 0 CondReturnTextNode(doc, 2)
34691 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != '>')
34693 0 0 if (c == EndOfStream)
34710 0 5 if (c == '?')
34716 0 0 CondReturnTextNode(doc, 2)
34723 0 5 if (c == '%')
34729 0 0 CondReturnTextNode(doc, 2)
34736 0 5 if (c == '#')
34742 0 0 CondReturnTextNode(doc, 2)
34749 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)))
34757 1 4 CondReturnTextNode(doc, 2)
34780 0 3 while ( c != '>' && c != EndOfStream )
0 0 while ( c != '>' && c != EndOfStream )
34785 0 3 if (c == EndOfStream)
34807 1 4 if (c != '>')
34809 0 1 if (c == '/')
34815 0 5 if (isempty)
34831 5 0 if ( nodeIsPRE(lexer->token) )
5 0 if ( nodeIsPRE(lexer->token) )
1 4 if ( nodeIsPRE(lexer->token) )
34836 4 1 if ((mode != Preformatted && ExpectsContent(lexer->token))
1 3 if ((mode != Preformatted && ExpectsContent(lexer->token))
34837 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))
34841 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 */
34843 2 1 else if (c != '\n' && c != '\f')
2 0 else if (c != '\n' && c != '\f')
34852 0 5 if (lexer->token->tag == NULL)
34854 0 0 if (mode != OtherNamespace) /* [i_a]2 only issue warning if NOT 'OtherNamespace', and tag null */
34861 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 ) )
34867 5 0 else if ( !cfgBool(doc, TidyXmlTags) )
34879 0 0 if (c != '-')
34885 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 )
34892 0 0 if (c != '-')
34898 0 0 if (c == '>')
34900 0 0 if (badcomment)
34907 0 0 if ( (TY_(HTMLVersion)(doc) & HT50) )
34909 0 0 if ( fixComments )
34915 0 0 if ( fixComments )
34934 0 0 if (c == '\n')
34945 0 0 if (!badcomment)
34954 0 0 if ( fixComments )
34958 0 0 if (c == '-')
34965 0 0 if ( fixComments )
34986 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))
34989 0 0 if (lexer->doctype != VERS_HTML5)
35007 0 0 if (lexer->lexsize - lexer->txtstart == 3)
35009 0 0 if (TY_(tmbstrncmp)(lexer->lexbuf + lexer->txtstart, "php", 3) == 0)
35016 0 0 if (lexer->lexsize - lexer->txtstart == 4)
35027 0 0 if (cfgBool(doc, TidyXmlPIs) || lexer->isvoyager) /* insist on ?> as terminator */
0 0 if (cfgBool(doc, TidyXmlPIs) || lexer->isvoyager) /* insist on ?> as terminator */
35029 0 0 if (c != '?')
35035 0 0 if (c == EndOfStream)
35046 0 0 if (c != '>')
35051 0 0 if (lexer->lexsize)
35062 0 0 if (closed)
35089 0 0 if (c != '%')
35096 0 0 if (c != '>')
35115 0 0 if (c != '#')
35122 0 0 if (c != '>')
35140 0 0 if (c != '?')
35146 0 0 if (c != '>')
35164 0 0 if (TY_(IsWhite)(c) && c != '?')
0 0 if (TY_(IsWhite)(c) && c != '?')
35168 0 0 if (c != '?')
35180 0 0 if (!name)
35183 0 0 if (asp)
35191 0 0 if (php)
35224 0 0 if (c != '>')
35241 0 0 if (c == '[')
35252 0 0 if (c == '>')
35256 0 0 } else if (c != ']')
35263 0 0 if (c != '>')
35266 0 0 if (c == '-')
35269 0 0 if (c == '-')
35272 0 0 if (c != '>')
35309 0 0 if (c != ']')
35315 0 0 if (c != ']')
35324 0 0 if (c != '>')
35343 6 0 if (lexer->state == LEX_CONTENT) /* text string */
35347 2 4 if (lexer->txtend > lexer->txtstart)
35351 1 1 if (lexer->lexbuf[lexer->lexsize - 1] == ' ')
35362 0 0 else if (lexer->state == LEX_COMMENT) /* comment */
35364 0 0 if (c == EndOfStream)
35381 0 4 if (attributes)
35390 332 28 while ( *str )
35435 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35441 0 0 if (c != '%')
35444 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35449 0 0 if (c == '>')
35457 0 0 if (lexer->txtend > lexer->txtstart)
35479 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35485 0 0 if (c != '?')
35488 0 0 if ((c = TY_(ReadChar)(doc->docIn)) == EndOfStream)
35493 0 0 if (c == '>')
35501 0 0 if (lexer->txtend > lexer->txtstart)
35528 0 2 if (c == '/')
35532 0 0 if (c == '>')
35543 1 1 if (c == '>')
35546 0 1 if (c =='<')
35550 0 0 if (c == '%')
35555 0 0 else if (c == '?')
35567 0 1 if (c == '=')
35573 1 0 if (c == '"' || c == '\'')
0 1 if (c == '"' || c == '\'')
35579 0 1 if (c == EndOfStream)
35587 1 0 if (!TY_(IsWhite)(c))
35597 3 1 if (c == '=' || c == '>')
0 3 if (c == '=' || c == '>')
35603 3 0 if (c == '<' || c == EndOfStream)
0 3 if (c == '<' || c == EndOfStream)
35609 0 3 if (lastc == '-' && (c == '"' || c == '\''))
0 0 if (lastc == '-' && (c == '"' || c == '\''))
0 0 if (lastc == '-' && (c == '"' || c == '\''))
35617 0 3 if (TY_(IsWhite)(c))
35620 0 3 if (c == '/') /* Issue #395 - potential self closing tag */
35623 0 0 if (c == '>')
35640 3 0 if ( cfg(doc, TidyUpperCaseAttrs) != TidyUppercasePreserve )
35642 3 0 if ( !cfgBool(doc, TidyXmlTags) && TY_(IsUpper)(c) )
0 3 if ( !cfgBool(doc, TidyXmlTags) && TY_(IsUpper)(c) )
35654 1 0 lexer->lexbuf+start, len) : NULL);
35675 0 0 if (c == '%' || c == '?' || c == '@')
0 0 if (c == '%' || c == '?' || c == '@')
0 0 if (c == '%' || c == '?' || c == '@')
35682 0 0 if (c == EndOfStream)
35685 0 0 if (c == '>')
35687 0 0 if (isrule)
35697 0 0 if (!isrule)
35699 0 0 if (TY_(IsWhite)(c))
35705 0 0 if (c == '"')
35710 0 0 if (c == EndOfStream) /* #427840 - fix by Terry Teague 30 Jun 01 */
35716 0 0 if (c == '>') /* #427840 - fix by Terry Teague 30 Jun 01 */
35724 0 0 while (c != '"');
35729 0 0 if (c == '\'')
35734 0 0 if (c == EndOfStream) /* #427840 - fix by Terry Teague 30 Jun 01 */
35740 0 0 if (c == '>') /* #427840 - fix by Terry Teague 30 Jun 01 */
35748 0 0 while (c != '\'');
35776 0 1 if ( cfgBool(doc, TidyLiteralAttribs) )
35785 0 1 if (c == EndOfStream)
35791 1 0 if (!TY_(IsWhite)(c))
35801 0 1 if (c != '=' && c != '"' && c != '\'')
0 0 if (c != '=' && c != '"' && c != '\'')
0 0 if (c != '=' && c != '"' && c != '\'')
35813 0 1 if (c == EndOfStream)
35819 1 0 if (!TY_(IsWhite)(c))
35825 1 0 if (c == '"' || c == '\'')
1 0 if (c == '"' || c == '\'')
35827 0 0 else if (c == '<')
35835 0 0 lexer->lexbuf+start, len) : NULL);
35854 0 26 if (c == EndOfStream)
35861 0 26 if (delim == (tmbchar)0)
35863 0 0 if (c == '>')
35869 0 0 if (c == '"' || c == '\'')
0 0 if (c == '"' || c == '\'')
35878 0 0 if (c == '>')
35891 0 0 if (c == '<')
35906 0 0 if (c == '/')
35911 0 0 if ( c == '>' && !TY_(IsUrl)(doc, name) )
0 0 if ( c == '>' && !TY_(IsUrl)(doc, name) )
35925 1 25 if (c == delim)
35928 25 0 if (c == '\n' || c == '<' || c == '>')
25 0 if (c == '\n' || c == '<' || c == '>')
0 25 if (c == '\n' || c == '<' || c == '>')
35931 0 25 if (c == '>')
35935 0 25 if (c == '&')
35939 0 0 if (lexer->lexbuf[lexer->lexsize - 1] == '\n' && munge)
0 0 if (lexer->lexbuf[lexer->lexsize - 1] == '\n' && munge)
35948 0 25 if (c == '\\')
35952 0 0 if (c != '\n')
35959 0 25 if (TY_(IsWhite)(c))
35961 0 0 if ( delim == 0 )
35964 0 0 if (munge)
35968 0 0 if ( c == '\n' && TY_(IsUrl)(doc, name) )
0 0 if ( c == '\n' && TY_(IsUrl)(doc, name) )
35977 0 0 if (lastc == ' ')
35979 0 0 if (TY_(IsUrl)(doc, name) )
35985 0 25 else if (foldCase && TY_(IsUpper)(c))
0 0 else if (foldCase && TY_(IsUpper)(c))
35991 0 1 if (quotewarning > 10 && seen_gt && munge)
0 0 if (quotewarning > 10 && seen_gt && munge)
0 0 if (quotewarning > 10 && seen_gt && munge)
36013 0 1 if (len > 0 || delim)
0 0 if (len > 0 || delim)
36020 1 0 if ((len > 0) && munge &&
36021 1 0 TY_(tmbstrcasecmp)(name, "alt") &&
36022 1 0 TY_(tmbstrcasecmp)(name, "title") &&
36023 1 0 TY_(tmbstrcasecmp)(name, "value") &&
36026 0 1 while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
0 0 while (TY_(IsWhite)(lexer->lexbuf[start+len-1]) && (len > 0))
36030 0 1 while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
0 0 while (TY_(IsWhite)(lexer->lexbuf[start]) && (len > 0))
36054 0 1 if (!TY_(IsLetter)(c))
36058 2 1 for( i = 1; i < TY_(tmbstrlen)(attr); i++)
36062 2 0 if (TY_(IsNamechar)(c))
36093 7 4 if ( *list == NULL )
36098 0 4 while ( here->next )
36127 2 0 while ( !EndOfInput(doc) )
36131 1 1 if (attribute == NULL)
36134 0 1 if (asp)
36143 0 1 if (php)
36156 1 0 if (attribute && (IsValidAttrName(attribute) ||
0 1 if (attribute && (IsValidAttrName(attribute) ||
0 0 if (attribute && (IsValidAttrName(attribute) ||
36157 0 0 (cfgBool(doc, TidyXmlTags) && IsValidXMLAttrName(attribute))))
36160 1 0 av->delim = delim ? delim : '"';
36165 0 1 if ( !delim && value )
0 0 if ( !delim && value )
36174 0 0 if (LastChar(attribute) == '"')
36176 0 0 else if (value == NULL)
36219 0 0 while ((c = TY_(ReadChar)(doc->docIn)) != EndOfStream)
36222 0 0 if (state != DT_INTSUBSET)
36223 0 0 c = c == '\n' ? ' ' : c;
36226 0 0 if (TY_(IsWhite)(c) && state != DT_INTSUBSET)
0 0 if (TY_(IsWhite)(c) && state != DT_INTSUBSET)
36228 0 0 if (!lexer->waswhite)
36249 0 0 if (TY_(ToUpper)(c) == 'P' || TY_(ToUpper)(c) == 'S')
0 0 if (TY_(ToUpper)(c) == 'P' || TY_(ToUpper)(c) == 'S')
36255 0 0 else if (c == '[')
36261 0 0 else if (c == '\'' || c == '"')
0 0 else if (c == '\'' || c == '"')
36268 0 0 else if (c == '>')
36275 0 0 if (si)
36278 0 0 if (!node->element || !IsValidXMLElemName(node->element))
0 0 if (!node->element || !IsValidXMLElemName(node->element))
36293 0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
0 0 if (TY_(IsWhite)(c) || c == '>' || c == '[')
36298 0 0 if (c == '>' || c == '[')
0 0 if (c == '>' || c == '[')
36310 0 0 if (TY_(IsWhite)(c) || c == '>')
0 0 if (TY_(IsWhite)(c) || c == '>')
36321 0 0 if (c == '>')
36333 0 0 if (c == delim)
36338 0 0 AttVal* att = TY_(AddAttribute)(doc, node, hasfpi ? "PUBLIC" : "SYSTEM", value);
36349 0 0 if (c == ']')
36433 0 0 if ( !fin )
36437 0 0 if ( fstat(fd, &sbuf) == -1
36438 0 0 || sbuf.st_size == 0
36439 0 0 || (fin->base = mmap(0, fin->size = sbuf.st_size, PROT_READ,
36461 0 0 if ( inp->getByte == mapped_getByte )
36752 6 5 if (tag)
36754 6 0 if (TY_(nodeIsElement)(tag))
36756 0 0 else if (tag->type == EndTag)
36758 0 0 else if (tag->type == DocTypeTag)
36760 0 0 else if (tag->type == TextNode)
36762 0 0 else if (tag->type == XmlDecl)
36764 0 0 else if (tag->element)
36783 0 0 if (n == 0)
36789 0 0 while (i >= 0)
36804 0 0 unsigned int version = versionEmitted == 0 ? declared : versionEmitted;
36806 0 0 if (!result)
36828 0 11 if ( !message )
36868 8 3 if ( message->level <= TidyFatal )
36874 7 4 if ( cfgBool( doc, TidyQuiet ) == yes )
36876 7 0 go = go && message->code != STRING_DOCTYPE_GIVEN;
7 0 go = go && message->code != STRING_DOCTYPE_GIVEN;
36877 7 0 go = go && message->code != STRING_CONTENT_LOOKS;
5 2 go = go && message->code != STRING_CONTENT_LOOKS;
36878 5 2 go = go && message->code != STRING_NO_SYSID;
5 0 go = go && message->code != STRING_NO_SYSID;
36879 5 2 go = go && message->level != TidyDialogueInfo;
5 0 go = go && message->level != TidyDialogueInfo;
36880 5 2 go = go && message->level != TidyConfig;
5 0 go = go && message->level != TidyConfig;
36881 5 2 go = go && message->level != TidyInfo;
5 0 go = go && message->level != TidyInfo;
36882 5 2 go = go && !(message->level >= TidyDialogueSummary &&
2 3 go = go && !(message->level >= TidyDialogueSummary &&
0 2 go = go && !(message->level >= TidyDialogueSummary &&
36887 0 11 if ( cfgBool( doc, TidyShowInfo ) == no )
36889 0 0 go = go && message->level != TidyInfo;
0 0 go = go && message->level != TidyInfo;
36894 0 0 go = go && message->level != TidyDialogueInfo;
0 0 go = go && message->level != TidyDialogueInfo;
36898 0 11 if ( cfgBool( doc, TidyShowWarnings ) == no )
36900 0 0 go = go && message->level != TidyWarning;
0 0 go = go && message->level != TidyWarning;
36904 7 4 if ( go )
36909 357 7 for ( cp = message->messageOutput; *cp; ++cp )
36912 1 356 if (b == (byte)'\n')
37249 1 0 if ( ( av = va_arg(args, AttVal*) ) )
1 0 if ( ( av = va_arg(args, AttVal*) ) )
37251 1 0 if (av->attribute)
37253 1 0 if (av->value)
37326 0 0 unsigned int c = va_arg( args, unsigned int );
37327 0 0 Bool discarded = va_arg( args, Bool );
37328 0 0 ctmbstr action = tidyLocalizedString(discarded ? STRING_DISCARDING : STRING_REPLACING);
37384 3 4 Node* rpt = ( element ? element : node );
37388 3 4 if ( element )
37427 3 0 if ( (str = va_arg( args, ctmbstr)) )
3 0 if ( (str = va_arg( args, ctmbstr)) )
37439 0 0 if ( !(entityname = va_arg( args, ctmbstr)) )
0 0 if ( !(entityname = va_arg( args, ctmbstr)) )
37449 0 0 if ( (name = va_arg( args, ctmbstr)) )
0 0 if ( (name = va_arg( args, ctmbstr)) )
37457 0 0 if ( (str = va_arg( args, ctmbstr)) )
0 0 if ( (str = va_arg( args, ctmbstr)) )
37464 0 0 ctmbstr s1 = va_arg( args, ctmbstr );
37465 0 0 ctmbstr s2 = va_arg( args, ctmbstr );
37471 0 0 ctmbstr s1 = va_arg( args, ctmbstr );
37472 0 0 ctmbstr s2 = va_arg( args, ctmbstr );
37473 0 0 ctmbstr s3 = va_arg( args, ctmbstr );
37482 0 0 unsigned int c1 = va_arg( args, unsigned int );
37483 0 0 unsigned int c2 = va_arg( args, unsigned int );
37585 0 0 switch (code)
37590 0 0 return TY_(tidyMessageCreateWithNode)(doc, node, code, doc->badForm ? TidyError : TidyWarning, nodedesc );
37615 522 0 while ( dispatchTable[i].code != 0 )
37617 8 514 if ( dispatchTable[i].code == code )
37629 0 8 if ( dispatchTable[i].next )
37680 0 0 assert( option != NULL );
37791 0 0 ctmbstr str = va_arg(args, ctmbstr);
37842 15 0 while ( dialogueDispatchTable[i].code != 0 )
37844 3 12 if ( dialogueDispatchTable[i].code == code )
37879 0 0 if ( charenc == WIN1252 )
37881 0 0 else if ( charenc == MACROMAN )
37883 0 0 else if ( charenc == IBM858 )
37885 0 0 else if ( charenc == LATIN0 )
37889 0 0 if ( doc->badAccess & (BA_USING_FRAMES | BA_USING_NOFRAMES) )
37891 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)))
37897 0 0 if (doc->badChars)
37899 0 0 if (doc->badChars & BC_VENDOR_SPECIFIC_CHARS)
37902 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))
37905 0 0 if (doc->badChars & BC_INVALID_UTF8)
37908 0 0 if (doc->badChars & BC_INVALID_UTF16)
37911 0 0 if (doc->badChars & BC_INVALID_URI)
37915 0 0 if (doc->badForm)
37917 0 0 if (doc->badForm & flg_BadForm) /* Issue #166 - changed to BIT flag to support other errors */
37920 0 0 if (doc->badForm & flg_BadMain) /* Issue #166 - repeated
element */
37924 0 0 if (doc->badAccess)
37927 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
37929 0 0 if (doc->badAccess & BA_MISSING_SUMMARY)
37932 0 0 if (doc->badAccess & BA_MISSING_IMAGE_ALT)
37935 0 0 if (doc->badAccess & BA_MISSING_IMAGE_MAP)
37938 0 0 if (doc->badAccess & BA_MISSING_LINK_ALT)
37941 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))
37945 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) > 0 )
37951 0 0 if (doc->badLayout)
37953 0 0 if (doc->badLayout & USING_LAYER)
37956 0 0 if (doc->badLayout & USING_SPACER)
37959 0 0 if (doc->badLayout & USING_FONT)
37962 0 0 if (doc->badLayout & USING_NOBR)
37965 0 0 if (doc->badLayout & USING_BODY)
37969 0 0 if (doc->footnotes)
37971 0 0 if (doc->footnotes & FN_TRIM_EMPTY_ELEMENT)
37983 0 3 if ( doc->givenDoctype )
37986 3 0 if ( ! cfgBool(doc, TidyXmlTags) )
37992 0 3 if ( !vers )
37998 0 3 if ( TY_(WarnMissingSIInEmittedDocType)( doc ) )
38009 0 3 if ( doc->warnings > 0 || doc->errors > 0 )
0 0 if ( doc->warnings > 0 || doc->errors > 0 )
38011 3 0 if ( doc->errors > cfg(doc, TidyShowErrors) || !cfgBool(doc, TidyShowWarnings) )
0 3 if ( doc->errors > cfg(doc, TidyShowErrors) || !cfgBool(doc, TidyShowWarnings) )
38037 0 4 if ( list->list )
38048 0 0 if ( message <= REPORT_MESSAGE_FIRST || message >= REPORT_MESSAGE_LAST)
0 0 if ( message <= REPORT_MESSAGE_FIRST || message >= REPORT_MESSAGE_LAST)
38054 0 0 if ( !list->list )
38062 0 0 if ( list->count >= list->capacity )
38091 0 0 assert( iter != NULL );
38094 0 0 if ( index > 0 && index <= list->count )
0 0 if ( index > 0 && index <= list->count )
38099 0 0 *iter = (TidyIterator) ( index <= list->count ? index : (size_t)0 );
38146 1120 0 while (tidyStringsKeys[i].key) {
38147 11 1109 if ( tidyStringsKeys[i].value == code )
38161 0 0 while (tidyStringsKeys[i].key) {
38162 0 0 if ( strcmp(tidyStringsKeys[i].key, code) == 0 )
38177 0 0 if ( array_size == 0 )
38179 0 0 while ( tidyStringsKeys[array_size].key ) {
38204 0 0 assert( iter != NULL );
38208 0 0 if ( itemIndex > 0 && itemIndex <= tidyErrorCodeListSize() )
0 0 if ( itemIndex > 0 && itemIndex <= tidyErrorCodeListSize() )
38214 0 0 *iter = (TidyIterator)( itemIndex <= tidyErrorCodeListSize() ? itemIndex : (size_t)0 );
38299 0 0 while( docs_xrefs[i].opt != N_TIDY_OPTIONS )
38301 0 0 if ( docs_xrefs[i].opt == optId )
38420 0 11 while ((doc->muted.list) && (doc->muted.list[i] != 0))
0 0 while ((doc->muted.list) && (doc->muted.list[i] != 0))
38422 0 0 if (doc->muted.list[i] == code)
38454 0 11 if ( cfgBool(doc, TidyEmacs) && cfgStr(doc, TidyEmacsFile) )
0 0 if ( cfgBool(doc, TidyEmacs) && cfgStr(doc, TidyEmacsFile) )
38460 0 11 else if ( cfgBool(doc, TidyShowFilename) && cfgStr(doc, TidyEmacsFile) )
0 0 else if ( cfgBool(doc, TidyShowFilename) && cfgStr(doc, TidyEmacsFile) )
38479 5 6 if ( line > 0 && column > 0 )
5 0 if ( line > 0 && column > 0 )
38484 3 8 if ( level > TidyFatal )
38497 0 11 if ( ( cfgBool(doc, TidyMuteShow) == yes ) && level <= TidyFatal )
0 0 if ( ( cfgBool(doc, TidyMuteShow) == yes ) && level <= TidyFatal )
38504 0 0 if (i < sizeMessageBuf)
38507 0 0 if (i < sizeMessageBuf)
38518 8 3 if ( (result->level <= TidyFatal) && doc->reportFilter )
0 8 if ( (result->level <= TidyFatal) && doc->reportFilter )
38526 8 3 if ( (result->level <= TidyFatal) && doc->reportCallback )
0 8 if ( (result->level <= TidyFatal) && doc->reportCallback )
38536 0 11 if ( doc->messageCallback )
38568 4 1 int line = ( node ? node->line :
1 0 int line = ( node ? node->line :
38570 4 1 int col = ( node ? node->column :
1 0 int col = ( node ? node->column :
38588 0 0 int line = ( doc->lexer ? doc->lexer->lines : 0 );
38589 0 0 int col = ( doc->lexer ? doc->lexer->columns : 0 );
38601 0 11 if ( !message )
38713 0 0 if (message.argcount > 0)
38723 0 0 assert( iter != NULL );
38727 0 0 if ( itemIndex >= 1 && itemIndex <= (size_t)message.argcount )
0 0 if ( itemIndex >= 1 && itemIndex <= (size_t)message.argcount )
38737 0 0 *iter = (TidyIterator)( itemIndex <= (size_t)message.argcount ? itemIndex : (size_t)0 );
38745 0 0 assert( argNum <= message.argcount );
38754 0 0 assert( argNum <= message.argcount );
38763 0 0 assert( argNum <= message.argcount );
38764 0 0 assert( message.arguments[argNum].type == tidyFormatType_STRING);
38773 0 0 assert( argNum <= message.argcount );
38774 0 0 assert( message.arguments[argNum].type == tidyFormatType_UINT);
38783 0 0 assert( argNum <= message.argcount );
38784 0 0 assert( message.arguments[argNum].type == tidyFormatType_INT);
38793 0 0 assert( argNum <= message.argcount );
38794 0 0 assert( message.arguments[argNum].type == tidyFormatType_DOUBLE);
38835 290 11 while( ( c = *p++ ) != 0 )
38837 269 21 if( c != '%' )
38840 0 21 if( ( c = *p++ ) == '%' ) /* skip %% case */
38847 1 10 if( number == 0 )
38852 0 10 if( !nas )
38859 21 10 for( i = 0; i < number; i++ )
38868 260 10 while( ( c = *p++ ) != 0 )
38870 239 21 if( c != '%' )
38873 0 21 if( ( c = *p++ ) == '%' )
38879 0 21 if (c == '*')
38887 21 0 while ((c >= '0') && (c <= '9'))
0 21 while ((c >= '0') && (c <= '9'))
38893 0 21 if (c == '.')
38896 0 0 if (c == '*') {
38902 0 0 while ((c >= '0') && (c <= '9'))
0 0 while ((c >= '0') && (c <= '9'))
38920 6 0 nas[cn].u.ui = va_arg( ap, unsigned int );
38926 0 0 nas[cn].u.i = va_arg( ap, int );
38932 11 4 nas[cn].u.s = va_arg( ap, char* );
38942 0 0 nas[cn].u.d = va_arg( ap, double );
38956 0 21 if ( nas[cn].formatLength >= FORMAT_LENGTH )
38969 0 21 if( nas[cn].type == tidyFormatType_UNKNOWN )
38979 0 10 if( *rv < 0 )
39017 8 38 if (node->prev)
39019 0 8 if (node->prev->next != node)
39023 8 38 if (node->next)
39025 8 0 if (node->next == node || node->next->prev != node)
0 8 if (node->next == node || node->next->prev != node)
39029 40 6 if (node->parent)
39031 32 8 if (node->prev == NULL && node->parent->content != node)
0 32 if (node->prev == NULL && node->parent->content != node)
39034 32 8 if (node->next == NULL && node->parent->last != node)
0 32 if (node->next == NULL && node->parent->last != node)
39038 40 46 for (child = node->content; child; child = child->next)
39039 40 0 if ( child->parent != node || !TY_(CheckNodeIntegrity)(child) )
0 40 if ( child->parent != node || !TY_(CheckNodeIntegrity)(child) )
39054 0 0 if (node && node->tag)
0 0 if (node && node->tag)
39066 0 0 if (obsolete)
39068 0 0 else if (unexpected)
39087 2 0 if (node->prev)
39090 0 2 if (node->next)
39093 2 0 if (node->parent)
39095 0 2 if (node->parent->content == node)
39098 2 0 if (node->parent->last == node)
39111 2 0 if (element)
39129 0 3 if (element->content == NULL)
39148 6 16 if (element->last != NULL)
39167 0 0 if (node->parent->content == element)
39170 0 0 if (node->parent->last == element)
39176 0 0 if (node->prev)
39182 0 0 if (node->next)
39197 0 3 if (node->prev)
39200 3 0 if (parent->content == element)
39213 0 0 if (parent != NULL && parent->last == element)
0 0 if (parent != NULL && parent->last == element)
39219 0 0 if (node->next != NULL)
39229 0 18 if ( !cfgBool(doc, TidyDropEmptyElems) )
39232 1 17 if ( TY_(nodeIsText)(element) )
39235 13 4 if ( element->content )
39238 0 4 if ( element->tag == NULL )
39241 1 3 if ( element->tag->model & CM_BLOCK && element->attributes != NULL )
0 1 if ( element->tag->model & CM_BLOCK && element->attributes != NULL )
39244 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 )
39247 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) )
39250 0 4 if ( element->tag->model & CM_ROW )
39253 1 3 if ( element->tag->model & CM_EMPTY )
39256 3 0 if ( nodeIsAPPLET(element) )
3 0 if ( nodeIsAPPLET(element) )
0 3 if ( nodeIsAPPLET(element) )
39259 3 0 if ( nodeIsOBJECT(element) )
3 0 if ( nodeIsOBJECT(element) )
0 3 if ( nodeIsOBJECT(element) )
39262 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) )
39265 3 0 if ( nodeIsTITLE(element) )
3 0 if ( nodeIsTITLE(element) )
2 1 if ( nodeIsTITLE(element) )
39269 1 0 if ( nodeIsIFRAME(element) )
1 0 if ( nodeIsIFRAME(element) )
0 1 if ( nodeIsIFRAME(element) )
39273 1 0 if (nodeIsTEXTAREA(element))
1 0 if (nodeIsTEXTAREA(element))
0 1 if (nodeIsTEXTAREA(element))
39277 1 0 if (nodeIsCANVAS(element))
1 0 if (nodeIsCANVAS(element))
0 1 if (nodeIsCANVAS(element))
39280 1 0 if (nodeIsPROGRESS(element))
1 0 if (nodeIsPROGRESS(element))
0 1 if (nodeIsPROGRESS(element))
39283 1 0 if ( attrGetID(element) || attrGetNAME(element) )
0 1 if ( attrGetID(element) || attrGetNAME(element) )
39288 0 1 if (attrGetDATAFLD(element))
39292 0 1 if (element->tag->id == TidyTag_UNKNOWN)
39295 1 0 if (nodeIsBODY(element))
1 0 if (nodeIsBODY(element))
0 1 if (nodeIsBODY(element))
39298 1 0 if (nodeIsCOLGROUP(element))
1 0 if (nodeIsCOLGROUP(element))
0 1 if (nodeIsCOLGROUP(element))
39302 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 )
39306 1 0 if (nodeIsDD(element))
1 0 if (nodeIsDD(element))
0 1 if (nodeIsDD(element))
39315 2 16 if ( CanPrune(doc, element) )
39317 1 1 if (element->type != TextNode)
39332 25 19 while (node)
39336 16 9 if (node->content)
39340 4 1 !(TY_(nodeIsText)(node) && !(node->start < node->end)))
39380 2 0 if (TY_(nodeIsText)(last))
39382 2 0 if (last->end > last->start)
39386 1 1 if ( c == ' ' )
39389 0 1 if ( (element->tag->model & CM_INLINE) &&
0 0 if ( (element->tag->model & CM_INLINE) &&
39401 0 0 if ( isBlank )
39402 0 0 isBlank = ( node->end == node->start || /* Zero length */
0 0 isBlank = ( node->end == node->start || /* Zero length */
39404 0 0 && lexer->lexbuf[node->start] == ' ' ) );
39423 3 0 if ( TY_(nodeIsText)(text) &&
0 3 if ( TY_(nodeIsText)(text) &&
39424 0 0 lexer->lexbuf[text->start] == ' ' &&
39427 0 0 if ( (element->tag->model & CM_INLINE) &&
0 0 if ( (element->tag->model & CM_INLINE) &&
39432 0 0 if (TY_(nodeIsText)(prev))
39434 0 0 if (prev->end == 0 || lexer->lexbuf[prev->end - 1] != ' ')
0 0 if (prev->end == 0 || lexer->lexbuf[prev->end - 1] != ' ')
39460 38 10 while (parent)
39462 28 10 if (parent->tag && parent->tag->parser == TY_(ParsePre))
2 26 if (parent->tag && parent->tag->parser == TY_(ParsePre))
39475 0 4 if (!TY_(nodeIsText)(node))
39478 0 4 if (node->parent->type == DocTypeTag)
39481 1 3 if (IsPreDescendant(node))
39484 3 0 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
0 3 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
39490 3 0 if (!next && !TY_(nodeHasCM)(node->parent, CM_INLINE))
3 0 if (!next && !TY_(nodeHasCM)(node->parent, CM_INLINE))
39494 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))
39497 0 0 if (!next)
39500 0 0 if (nodeIsBR(next))
0 0 if (nodeIsBR(next))
0 0 if (nodeIsBR(next))
39503 0 0 if (TY_(nodeHasCM)(next, CM_INLINE))
39507 0 0 if (next->type == StartTag)
39511 0 0 if (next->type == StartEndTag)
39515 0 0 if (TY_(nodeIsText)(next) && next->start < next->end
0 0 if (TY_(nodeIsText)(next) && next->start < next->end
39516 0 0 && TY_(IsWhite)(doc->lexer->lexbuf[next->start]))
39524 0 4 if (!TY_(nodeIsText)(node))
39527 0 4 if (node->parent->type == DocTypeTag)
39530 1 3 if (IsPreDescendant(node))
39533 3 0 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
0 3 if (node->parent->tag && node->parent->tag->parser == TY_(ParseScript))
39537 0 3 if (nodeIsBR(node->prev))
0 0 if (nodeIsBR(node->prev))
0 0 if (nodeIsBR(node->prev))
39541 3 0 if (node->prev == NULL && !TY_(nodeHasCM)(node->parent, CM_INLINE))
3 0 if (node->prev == NULL && !TY_(nodeHasCM)(node->parent, CM_INLINE))
39545 0 0 if (node->prev && !TY_(nodeHasCM)(node->prev, CM_INLINE) &&
39550 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))
39560 23 19 while (node)
39564 4 19 if (TY_(nodeIsText)(node) && CleanLeadingWhitespace(doc, node))
3 1 if (TY_(nodeIsText)(node) && CleanLeadingWhitespace(doc, node))
39565 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]))
39568 4 19 if (TY_(nodeIsText)(node) && CleanTrailingWhitespace(doc, node))
3 1 if (TY_(nodeIsText)(node) && CleanTrailingWhitespace(doc, node))
39569 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]))
39572 4 19 if (TY_(nodeIsText)(node) && !(node->start < node->end))
0 4 if (TY_(nodeIsText)(node) && !(node->start < node->end))
39581 16 7 if (node->content)
39604 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))
39607 2 2 if (TY_(nodeIsText)(text))
39612 2 2 if (TY_(nodeIsText)(text))
39619 0 0 for ( parent = element->parent;
39623 0 0 if ( TagIsId(parent, tid) )
0 0 if ( TagIsId(parent, tid) )
0 0 if ( TagIsId(parent, tid) )
39631 20 0 if (node->type == CommentTag ||
20 0 if (node->type == CommentTag ||
39632 20 0 node->type == ProcInsTag ||
39633 20 0 node->type == CDATATag ||
39634 20 0 node->type == SectionTag ||
39635 20 0 node->type == AspTag ||
39636 0 20 node->type == JsteTag ||
39643 0 20 if ( node->type == XmlDecl )
39646 0 0 while ( root && root->parent )
0 0 while ( root && root->parent )
39648 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))
39660 5 13 TY_(nodeIsElement)(node) &&
39661 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 &&
39676 0 9 if (node->tag == NULL) /* [i_a]2 prevent crash for active content (php, asp) docs */
39683 1 8 if (node->tag->model & CM_EMPTY)
39686 0 1 if (node->tag->parser == NULL)
39689 8 0 else if (!(node->tag->model & CM_INLINE))
39692 0 9 if (node->tag->parser == NULL)
39695 1 8 if (node->type == StartEndTag)
39710 0 0 if ( existing )
39718 0 0 while ( !nodeIsHTML(element) )
0 0 while ( !nodeIsHTML(element) )
0 0 while ( !nodeIsHTML(element) )
39734 0 0 if ( TY_(nodeIsElement)(node) )
39739 0 0 assert(head != NULL);
39743 0 0 if ( node->tag->parser )
39757 0 0 if ( body )
39769 0 0 if ( !cfgBool(doc, TidyDecorateInferredUL) )
39771 0 0 if ( cfgBool(doc, TidyMakeClean) )
39799 0 0 if ( element->tag->model & CM_EMPTY ) {
39807 0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
39819 0 0 if (element->tag->model & CM_OBJECT)
39825 0 0 if (!(element->tag->model & CM_MIXED))
39834 0 0 if ( !(element->tag->model & CM_INLINE) ||
0 0 if ( !(element->tag->model & CM_INLINE) ||
39839 0 0 else if (mode == IgnoreWhitespace)
39847 0 0 while ((node = TY_(GetToken)(doc, mode /*MixedContent*/)) != NULL)
39850 0 0 if (node->type == EndTag && node->tag &&
0 0 if (node->type == EndTag && node->tag &&
0 0 if (node->type == EndTag && node->tag &&
39851 0 0 (node->tag == element->tag || element->was == node->tag))
39855 0 0 if (element->tag->model & CM_OBJECT)
39858 0 0 while (lexer->istacksize > lexer->istackbase)
39872 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) )
39874 0 0 if ( TY_(nodeIsElement)(node) )
39881 0 0 if (node->type == EndTag)
39883 0 0 if (node->tag == NULL)
39889 0 0 else if ( nodeIsBR(node) )
0 0 else if ( nodeIsBR(node) )
0 0 else if ( nodeIsBR(node) )
39891 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
39902 0 0 else if (DescendantOf( element, node->tag->id ))
39914 0 0 if ( lexer->exiled
39915 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)) )
39929 0 0 if (TY_(nodeIsText)(node))
39931 0 0 if ( checkstack )
39934 0 0 if (!(element->tag->model & CM_MIXED))
39936 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
39952 0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
0 0 if ( nodeIsBODY(element) ||
39953 0 0 nodeIsMAP(element) ||
0 0 nodeIsMAP(element) ||
0 0 nodeIsMAP(element) ||
39954 0 0 nodeIsBLOCKQUOTE(element) ||
0 0 nodeIsBLOCKQUOTE(element) ||
0 0 nodeIsBLOCKQUOTE(element) ||
39955 0 0 nodeIsFORM(element) ||
0 0 nodeIsFORM(element) ||
0 0 nodeIsFORM(element) ||
39956 0 0 nodeIsNOSCRIPT(element) )
0 0 nodeIsNOSCRIPT(element) )
39961 0 0 if ( InsertMisc(element, node) )
39965 0 0 if ( nodeIsPARAM(node) )
0 0 if ( nodeIsPARAM(node) )
0 0 if ( nodeIsPARAM(node) )
39967 0 0 if ( TY_(nodeHasCM)(element, CM_PARAM) && TY_(nodeIsElement)(node) )
0 0 if ( TY_(nodeHasCM)(element, CM_PARAM) && TY_(nodeIsElement)(node) )
39980 0 0 if ( nodeIsAREA(node) )
0 0 if ( nodeIsAREA(node) )
0 0 if ( nodeIsAREA(node) )
39982 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) )
39995 0 0 if ( node->tag == NULL )
40013 0 0 if ( !TY_(nodeHasCM)(node, CM_INLINE) )
40015 0 0 if ( !TY_(nodeIsElement)(node) )
40017 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
40041 0 0 if ( nodeIsLI(element) )
0 0 if ( nodeIsLI(element) )
0 0 if ( nodeIsLI(element) )
40043 0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
0 0 if ( nodeIsFRAME(node) ||
40044 0 0 nodeIsFRAMESET(node) ||
0 0 nodeIsFRAMESET(node) ||
0 0 nodeIsFRAMESET(node) ||
40045 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
40046 0 0 nodeIsOPTION(node) )
0 0 nodeIsOPTION(node) )
40054 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) )
40058 0 0 if ( TY_(nodeHasCM)(node, CM_HEAD) )
40064 0 0 if ( TY_(nodeHasCM)(node, CM_LIST) )
40071 0 0 else if ( TY_(nodeHasCM)(node, CM_DEFLIST) )
40079 0 0 if ( !TY_(nodeHasCM)(node, CM_BLOCK) )
40090 0 0 else if ( TY_(nodeHasCM)(node, CM_BLOCK) )
40092 0 0 if ( lexer->excludeBlocks )
40094 0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) )
40099 0 0 if ( TY_(nodeHasCM)(element, CM_OBJECT) )
40112 0 0 if (node->tag->model & CM_HEAD)
40123 0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
0 0 if ( nodeIsFORM(element) &&
40124 0 0 nodeIsTD(element->parent) &&
0 0 nodeIsTD(element->parent) &&
0 0 nodeIsTD(element->parent) &&
40127 0 0 if ( nodeIsTD(node) )
0 0 if ( nodeIsTD(node) )
0 0 if ( nodeIsTD(node) )
40134 0 0 if ( nodeIsTH(node) )
0 0 if ( nodeIsTH(node) )
0 0 if ( nodeIsTH(node) )
40146 0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) && !element->implicit )
0 0 if ( !TY_(nodeHasCM)(element, CM_OPT) && !element->implicit )
40150 0 0 if ( cfgBool( doc, TidyOmitOptionalTags ) == no && TY_(nodeHasCM)(element, CM_OPT) )
0 0 if ( cfgBool( doc, TidyOmitOptionalTags ) == no && TY_(nodeHasCM)(element, CM_OPT) )
40156 0 0 if ( TY_(nodeHasCM)(node, CM_LIST) )
40158 0 0 if ( element->parent && element->parent->tag &&
0 0 if ( element->parent && element->parent->tag &&
0 0 if ( element->parent && element->parent->tag &&
40172 0 0 else if ( TY_(nodeHasCM)(node, CM_DEFLIST) )
40174 0 0 if ( nodeIsDL(element->parent) )
0 0 if ( nodeIsDL(element->parent) )
0 0 if ( nodeIsDL(element->parent) )
40186 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) )
40191 0 0 if (lexer->exiled) {
40200 0 0 else if ( TY_(nodeHasCM)(element, CM_OBJECT) )
40203 0 0 while ( lexer->istacksize > lexer->istackbase )
40233 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 &&
40234 0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
40236 0 0 if (node->type != EndTag && node->attributes == NULL
0 0 if (node->type != EndTag && node->attributes == NULL
40237 0 0 && cfgBool(doc, TidyCoerceEndTags) )
40245 0 0 if (nodeIsA(element))
0 0 if (nodeIsA(element))
0 0 if (nodeIsA(element))
40258 0 0 if (!(mode & Preformatted))
40269 0 0 if (TY_(nodeIsElement)(node))
40271 0 0 if (node->tag->model & CM_INLINE)
40273 0 0 if (checkstack && !node->implicit)
0 0 if (checkstack && !node->implicit)
40277 0 0 if (!(element->tag->model & CM_MIXED)) /* #431731 - fix by Randy Waki 25 Dec 00 */
40279 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
40293 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
40298 0 0 if (node->implicit)
40309 0 0 if (node->type == EndTag)
40317 0 0 if (!(element->tag->model & CM_OPT))
40320 0 0 if (element->tag->model & CM_OBJECT)
40323 0 0 while ( lexer->istacksize > lexer->istackbase )
40352 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)
40355 0 0 if (cb_data->matching_tagId != TidyTag_UNKNOWN ||
0 0 if (cb_data->matching_tagId != TidyTag_UNKNOWN ||
40356 0 0 (node->element != NULL &&
40357 0 0 cb_data->node_to_find != NULL &&
40358 0 0 cb_data->node_to_find->element != NULL &&
40366 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)
40385 0 0 cb_data.matching_tagId = TagId(node);
0 0 cb_data.matching_tagId = TagId(node);
40389 0 0 assert(node);
40391 0 0 if (is_parent_of_marker)
40417 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
40428 0 0 if (node->type == EndTag)
40439 0 0 if (mp != NULL)
40448 0 0 for (n = parent;
40449 0 0 n != NULL && n != basenode->parent && n != mp;
0 0 n != NULL && n != basenode->parent && n != mp;
40464 0 0 if (outside == no)
40482 0 0 if (node == basenode)
40485 0 0 assert(basenode->closed == yes);
40494 0 0 assert(parent);
40499 0 0 else if (node->type == StartTag)
40503 0 0 for ( av = node->attributes; av; av = av->next )
40515 0 0 for ( av = node->attributes; av; av = av->next )
40539 0 2 if (element->tag->model & CM_EMPTY) {
40563 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)) &&
40566 0 0 else if (TY_(nodeHasCM)(element, CM_INLINE))
40569 2 0 if ( nodeIsNOBR(element) )
2 0 if ( nodeIsNOBR(element) )
0 2 if ( nodeIsNOBR(element) )
40571 2 0 else if ( nodeIsFONT(element) )
2 0 else if ( nodeIsFONT(element) )
0 2 else if ( nodeIsFONT(element) )
40575 2 0 if (mode != Preformatted)
40578 3 1 while ((node = TY_(GetToken)(doc, mode)) != NULL)
40581 0 3 if (node->tag == element->tag && node->type == EndTag)
0 0 if (node->tag == element->tag && node->type == EndTag)
40583 0 0 if (element->tag->model & CM_INLINE)
40588 0 0 if (!(mode & Preformatted))
40596 0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
0 0 if ( nodeIsFONT(element) &&
40597 0 0 element->content && element->content == element->last )
40601 0 0 if ( nodeIsA(child) )
0 0 if ( nodeIsA(child) )
0 0 if ( nodeIsA(child) )
40633 1 2 if ( node->type == StartTag
40634 0 1 && node->tag == element->tag
40635 0 0 && TY_(IsPushed)( doc, node )
40636 0 0 && !node->implicit
40637 0 0 && !element->implicit
40638 0 0 && node->tag && (node->tag->model & CM_INLINE)
0 0 && node->tag && (node->tag->model & CM_INLINE)
40639 0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
40640 0 0 && !nodeIsFONT(node)
0 0 && !nodeIsFONT(node)
0 0 && !nodeIsFONT(node)
40641 0 0 && !nodeIsBIG(node)
0 0 && !nodeIsBIG(node)
0 0 && !nodeIsBIG(node)
40642 0 0 && !nodeIsSMALL(node)
0 0 && !nodeIsSMALL(node)
0 0 && !nodeIsSMALL(node)
40643 0 0 && !nodeIsSUB(node)
0 0 && !nodeIsSUB(node)
0 0 && !nodeIsSUB(node)
40644 0 0 && !nodeIsSUP(node)
0 0 && !nodeIsSUP(node)
0 0 && !nodeIsSUP(node)
40645 0 0 && !nodeIsQ(node)
0 0 && !nodeIsQ(node)
0 0 && !nodeIsQ(node)
40646 0 0 && !nodeIsSPAN(node)
0 0 && !nodeIsSPAN(node)
0 0 && !nodeIsSPAN(node)
40647 0 0 && cfgBool(doc, TidyCoerceEndTags)
40652 0 0 if (element->content != NULL && node->attributes == NULL
0 0 if (element->content != NULL && node->attributes == NULL
40653 0 0 && TY_(nodeIsText)(element->last)
40654 0 0 && !TY_(TextNodeEndWithSpace)(doc->lexer, element->last) )
40662 0 0 if (node->attributes == NULL || element->attributes == NULL)
0 0 if (node->attributes == NULL || element->attributes == NULL)
40665 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 &&
40666 0 0 nodeIsQ(node) )
0 0 nodeIsQ(node) )
40672 0 0 if (TY_(HTMLVersion)(doc) != HT50)
40678 2 1 if ( TY_(nodeIsText)(node) )
40681 2 0 if ( element->content == NULL && !(mode & Preformatted) )
2 0 if ( element->content == NULL && !(mode & Preformatted) )
40684 0 2 if ( node->start >= node->end )
40695 0 1 if (InsertMisc(element, node))
40699 1 0 if ( nodeIsHTML(node) )
1 0 if ( nodeIsHTML(node) )
0 1 if ( nodeIsHTML(node) )
40701 0 0 if ( TY_(nodeIsElement)(node) )
40711 0 0 if (!(mode & Preformatted))
40721 1 0 if ( nodeIsP(node) &&
1 0 if ( nodeIsP(node) &&
0 1 if ( nodeIsP(node) &&
0 0 if ( nodeIsP(node) &&
40722 0 0 node->type == StartTag &&
40723 0 0 ( (mode & Preformatted) ||
40724 0 0 nodeIsDT(element) ||
40738 1 0 if ( nodeIsP(node) &&
1 0 if ( nodeIsP(node) &&
0 1 if ( nodeIsP(node) &&
0 0 if ( nodeIsP(node) &&
40739 0 0 node->type == StartTag &&
40740 0 0 nodeIsADDRESS(element) )
0 0 nodeIsADDRESS(element) )
40749 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) )
40756 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 )
40759 0 1 if ( node->type == EndTag )
40762 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
40764 0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
0 0 else if ( nodeIsP(node) )
40767 0 0 if ( !DescendantOf(element, TidyTag_P) )
40777 0 0 else if ( TY_(nodeHasCM)(node, CM_INLINE)
40778 0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
0 0 && !nodeIsA(node)
40779 0 0 && !TY_(nodeHasCM)(node, CM_OBJECT)
40780 0 0 && TY_(nodeHasCM)(element, CM_INLINE) )
40789 0 0 if ( !nodeIsA(element)
0 0 if ( !nodeIsA(element)
0 0 if ( !nodeIsA(element)
40790 0 0 && (node->tag != element->tag)
40791 0 0 && TY_(IsPushed)( doc, node )
40792 0 0 && TY_(IsPushed)( doc, element ) )
40796 0 0 if ( TY_(SwitchInline)( doc, element, node ) )
40801 0 0 if (!(mode & Preformatted))
40812 0 0 if ( !nodeIsA(element) )
0 0 if ( !nodeIsA(element) )
0 0 if ( !nodeIsA(element) )
40814 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 )
40825 0 0 if (!(mode & Preformatted))
40839 0 0 else if ( lexer->exiled
40840 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)) )
40853 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) )
40856 0 0 if ( node->tag == element->tag )
40867 0 0 if (!(mode & Preformatted))
40883 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 &&
40884 0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
0 0 (nodeIsA(element) || DescendantOf(element, TidyTag_A)) )
40890 0 0 if (node->type != EndTag && node->attributes == NULL
0 0 if (node->type != EndTag && node->attributes == NULL
40891 0 0 && cfgBool(doc, TidyCoerceEndTags) )
40904 0 0 if (!(mode & Preformatted))
40914 0 1 if (element->tag->model & CM_HEADING)
40916 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) )
40918 0 0 if (!TY_(nodeIsElement)(node))
40928 0 0 if (element->content == NULL)
40937 0 0 if (!(mode & Preformatted))
40945 0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
40947 0 0 if ( !TY_(nodeIsElement)(node) )
40957 0 0 if (element->content == NULL)
40966 0 0 if (!(mode & Preformatted))
40975 1 0 if ( nodeIsDT(element) )
1 0 if ( nodeIsDT(element) )
0 1 if ( nodeIsDT(element) )
40977 0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
0 0 if ( nodeIsHR(node) )
40980 0 0 if ( !TY_(nodeIsElement)(node) )
40991 0 0 if (element->content == NULL)
41002 0 0 if (!(mode & Preformatted))
41016 0 1 if (node->type == EndTag)
41018 0 0 for (parent = element->parent;
41021 0 0 if (node->tag == parent->tag)
41023 0 0 if (!(element->tag->model & CM_OPT) && !element->implicit)
0 0 if (!(element->tag->model & CM_OPT) && !element->implicit)
41026 0 0 if( TY_(IsPushedLast)( doc, element, node ) )
41030 0 0 if (!(mode & Preformatted))
41050 1 0 if (!(node->tag->model & CM_INLINE) &&
1 0 if (!(node->tag->model & CM_INLINE) &&
41051 1 0 !(element->tag->model & CM_MIXED) &&
41052 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)) )
41054 0 1 if ( !TY_(nodeIsElement)(node) )
41061 1 0 if (nodeIsDATALIST(element)) {
1 0 if (nodeIsDATALIST(element)) {
0 1 if (nodeIsDATALIST(element)) {
41064 0 1 if (!(element->tag->model & CM_OPT))
41067 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))
41077 1 0 if ( nodeIsA(element) )
1 0 if ( nodeIsA(element) )
0 1 if ( nodeIsA(element) )
41079 0 0 if (node->tag && !(node->tag->model & CM_HEADING))
0 0 if (node->tag && !(node->tag->model & CM_HEADING))
41081 0 0 else if (!(element->content))
41095 1 0 if (!(mode & Preformatted))
41106 0 0 if (TY_(nodeIsElement)(node))
41108 0 0 if (node->implicit)
41112 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
41126 0 1 if (!(element->tag->model & CM_OPT))
41138 0 1 if ( lexer->isvoyager )
41141 0 0 if ( node )
41143 0 0 if ( !(node->type == EndTag && node->tag == element->tag) )
0 0 if ( !(node->type == EndTag && node->tag == element->tag) )
41161 0 0 if (list->tag->model & CM_EMPTY)
41166 0 0 while ((node = TY_(GetToken)( doc, IgnoreWhitespace)) != NULL)
41168 0 0 if (node->tag == list->tag && node->type == EndTag)
0 0 if (node->tag == list->tag && node->type == EndTag)
41176 0 0 if (InsertMisc(list, node))
41179 0 0 if (TY_(nodeIsText)(node))
41186 0 0 if (node->tag == NULL)
41197 0 0 if (node->type == EndTag)
41200 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41208 0 0 for (parent = list->parent;
41214 0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
41219 0 0 if (node->tag == parent->tag)
41227 0 0 if (discardIt)
41236 0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
0 0 if ( nodeIsCENTER(node) )
41238 0 0 if (list->content)
41263 0 0 if (parent->last == node)
41271 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)) )
41275 0 0 if (!(node->tag->model & (CM_BLOCK | CM_INLINE)))
41282 0 0 if (!(node->tag->model & CM_INLINE) && lexer->excludeBlocks)
0 0 if (!(node->tag->model & CM_INLINE) && lexer->excludeBlocks)
41289 0 0 if (node->type == EndTag)
41309 0 0 for ( node = list->content; node ; node = node->next )
41310 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 )
41323 0 0 Bool nodeisOL = nodeIsOL(list);
0 0 Bool nodeisOL = nodeIsOL(list);
0 0 Bool nodeisOL = nodeIsOL(list);
41329 0 0 if (list->tag->model & CM_EMPTY)
41339 0 0 while ((node = TY_(GetToken)( doc, IgnoreWhitespace)) != NULL)
41342 0 0 if (node->tag == list->tag && node->type == EndTag)
0 0 if (node->tag == list->tag && node->type == EndTag)
41354 0 0 if (InsertMisc(list, node))
41357 0 0 if (node->type != TextNode && node->tag == NULL)
0 0 if (node->type != TextNode && node->tag == NULL)
41363 0 0 if (lexer && (node->type == TextNode))
0 0 if (lexer && (node->type == TextNode))
41367 0 0 while (ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while (ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
41368 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'))
41370 0 0 if (ix >= node->end)
41383 0 0 if (node->type == EndTag)
41385 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41393 0 0 if (TY_(nodeHasCM)(node,CM_INLINE))
41401 0 0 for ( parent = list->parent;
41407 0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
0 0 if (nodeIsBODY(parent))
41409 0 0 if (node->tag == parent->tag)
41426 0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
0 0 if ( !nodeIsLI(node) && nodeisOL )
41432 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) )
41443 0 0 if (TY_(nodeHasCM)(node,CM_BLOCK) && lexer->excludeBlocks)
0 0 if (TY_(nodeHasCM)(node,CM_BLOCK) && lexer->excludeBlocks)
41454 0 0 else if ( lexer->exiled
41455 0 0 && (TY_(nodeHasCM)(node, CM_TABLE|CM_ROWGRP|CM_ROW)
41456 0 0 || nodeIsTABLE(node)) )
0 0 || nodeIsTABLE(node)) )
0 0 || nodeIsTABLE(node)) )
41468 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) )
41483 0 0 TY_(AddStyleProperty)( doc, node,
41514 0 0 for (table = row->parent; table; table = table->parent)
41516 0 0 if ( nodeIsTABLE(table) )
0 0 if ( nodeIsTABLE(table) )
0 0 if ( nodeIsTABLE(table) )
41535 0 0 if (row->content == NULL)
41549 0 0 if (row->tag->model & CM_EMPTY)
41552 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41554 0 0 if (node->tag == row->tag)
41556 0 0 if (node->type == EndTag)
41574 0 0 if ( node->type == EndTag )
41576 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))
41577 0 0 && DescendantOf(row, TagId(node)) )
0 0 && DescendantOf(row, TagId(node)) )
0 0 && DescendantOf(row, TagId(node)) )
41583 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) )
41585 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41593 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) )
41602 0 0 if (InsertMisc(row, node))
41606 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41614 0 0 if ( nodeIsTABLE(node) )
0 0 if ( nodeIsTABLE(node) )
0 0 if ( nodeIsTABLE(node) )
41622 0 0 if ( TY_(nodeHasCM)(node, CM_ROWGRP) )
41628 0 0 if (node->type == EndTag)
41640 0 0 if (node->type != EndTag)
41642 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41648 0 0 else if ( TY_(nodeIsText)(node)
41649 0 0 || TY_(nodeHasCM)(node, CM_BLOCK | CM_INLINE) )
41657 0 0 if (node->type != TextNode)
41664 0 0 else if (node->tag->model & CM_HEAD)
41672 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)) )
41688 0 0 while ( lexer->istacksize > lexer->istackbase )
41699 0 0 if (rowgroup->tag->model & CM_EMPTY)
41702 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41704 0 0 if (node->tag == rowgroup->tag)
41706 0 0 if (node->type == EndTag)
41718 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 )
41725 0 0 if (InsertMisc(rowgroup, node))
41729 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41742 0 0 if (node->type != EndTag)
41744 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) )
41750 0 0 else if ( TY_(nodeIsText)(node)
41751 0 0 || TY_(nodeHasCM)(node, CM_BLOCK|CM_INLINE) )
41757 0 0 if (node->type != TextNode)
41763 0 0 else if (node->tag->model & CM_HEAD)
41775 0 0 if (node->type == EndTag)
41777 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) )
41779 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41787 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) )
41794 0 0 for ( parent = rowgroup->parent;
41798 0 0 if (node->tag == parent->tag)
41810 0 0 if (node->tag->model & CM_ROWGRP)
41812 0 0 if (node->type != EndTag)
41819 0 0 if (node->type == EndTag)
41826 0 0 if ( !nodeIsTR(node) )
0 0 if ( !nodeIsTR(node) )
0 0 if ( !nodeIsTR(node) )
41844 0 0 if (colgroup->tag->model & CM_EMPTY)
41847 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41849 0 0 if (node->tag == colgroup->tag && node->type == EndTag)
0 0 if (node->tag == colgroup->tag && node->type == EndTag)
41860 0 0 if (node->type == EndTag)
41862 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
41870 0 0 for ( parent = colgroup->parent;
41874 0 0 if (node->tag == parent->tag)
41882 0 0 if (TY_(nodeIsText)(node))
41889 0 0 if (InsertMisc(colgroup, node))
41893 0 0 if (node->tag == NULL)
41900 0 0 if ( !nodeIsCOL(node) )
0 0 if ( !nodeIsCOL(node) )
0 0 if ( !nodeIsCOL(node) )
41906 0 0 if (node->type == EndTag)
41936 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
41938 0 0 if (node->tag == table->tag )
41940 0 0 if (node->type == EndTag)
41964 0 0 if (InsertMisc(table, node))
41968 0 0 if (node->tag == NULL && node->type != TextNode)
0 0 if (node->tag == NULL && node->type != TextNode)
41977 0 0 if (node->type != EndTag)
41979 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) )
41985 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) )
41991 0 0 if (node->type != TextNode)
41997 0 0 else if (node->tag->model & CM_HEAD)
42008 0 0 if (node->type == EndTag)
42010 0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
0 0 if ( nodeIsFORM(node) )
42027 0 0 for ( parent = table->parent;
42031 0 0 if (node->tag == parent->tag)
42045 0 0 if (!(node->tag->model & CM_TABLE))
42057 0 0 if (TY_(nodeIsElement)(node))
42081 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) )
42084 0 0 if ( node->tag == NULL ||
0 0 if ( node->tag == NULL ||
42085 0 0 nodeIsPARAM(node) ||
42096 0 1 if (pre->tag->model & CM_EMPTY)
42101 2 0 while ((node = TY_(GetToken)(doc, Preformatted)) != NULL)
42103 1 1 if ( node->type == EndTag &&
0 1 if ( node->type == EndTag &&
42104 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))) )
42106 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))
42112 1 0 if (node->tag == pre->tag)
42126 1 0 if (TY_(nodeIsText)(node))
42133 0 0 if (InsertMisc(pre, node))
42136 0 0 if (node->tag == NULL)
42144 0 0 if ( !PreContent(doc, node) )
42149 0 0 if (node->type == EndTag)
42152 0 0 if ( doc->lexer->exiled
42153 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)) )
42165 0 0 else if (TY_(nodeHasCM)(node, CM_TABLE|CM_ROW)
42166 0 0 || nodeIsTABLE(node) )
0 0 || nodeIsTABLE(node) )
0 0 || nodeIsTABLE(node) )
42168 0 0 if (!doc->lexer->exiled)
42225 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
42227 0 0 if (node->type == StartTag)
42247 0 0 if ( TY_(nodeIsElement)(node) )
42250 0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
0 0 if ( nodeIsBR(node) )
42273 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42275 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42284 0 0 if (InsertMisc(field, node))
42287 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42288 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)) )
42290 0 0 if ( nodeIsOPTGROUP(node) )
0 0 if ( nodeIsOPTGROUP(node) )
0 0 if ( nodeIsOPTGROUP(node) )
42319 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42321 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42334 0 0 if (InsertMisc(field, node))
42337 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42338 0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
42339 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
42340 0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
42341 0 0 nodeIsSCRIPT(node))
0 0 nodeIsSCRIPT(node))
42376 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42378 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42391 0 0 if (InsertMisc(field, node))
42394 0 0 if ( node->type == StartTag &&
0 0 if ( node->type == StartTag &&
42395 0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
0 0 ( nodeIsOPTION(node) ||
42396 0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
0 0 nodeIsOPTGROUP(node) ||
42397 0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
0 0 nodeIsDATALIST(node) ||
42398 0 0 nodeIsSCRIPT(node))
0 0 nodeIsSCRIPT(node))
42428 0 0 if ( nodeIsTEXTAREA(field) )
0 0 if ( nodeIsTEXTAREA(field) )
0 0 if ( nodeIsTEXTAREA(field) )
42433 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
42435 0 0 if (node->tag == field->tag && node->type == EndTag)
0 0 if (node->tag == field->tag && node->type == EndTag)
42444 0 0 if (InsertMisc(field, node))
42447 0 0 if (TY_(nodeIsText)(node))
42450 0 0 if (field->content == NULL && !(mode & Preformatted))
0 0 if (field->content == NULL && !(mode & Preformatted))
42453 0 0 if (node->start >= node->end)
42466 0 0 if ( node->tag
42467 0 0 && node->tag->model & CM_INLINE
42468 0 0 && !(node->tag->model & CM_FIELD)) /* #487283 - fix by Lee Passey 25 Jan 02 */
42476 0 0 if (!(field->tag->model & CM_OPT))
42484 0 0 if (!(field->tag->model & CM_OPT))
42492 2 0 while ((node = TY_(GetToken)(doc, MixedContent)) != NULL)
42494 1 1 if (node->tag == title->tag && node->type == StartTag
0 1 if (node->tag == title->tag && node->type == StartTag
42495 0 0 && cfgBool(doc, TidyCoerceEndTags) )
42502 1 1 else if (node->tag == title->tag && node->type == EndTag)
1 0 else if (node->tag == title->tag && node->type == EndTag)
42510 1 0 if (TY_(nodeIsText)(node))
42513 1 0 if (title->content == NULL)
42516 0 1 if (node->start >= node->end)
42527 0 0 if (InsertMisc(title, node))
42531 0 0 if (node->tag == NULL)
42563 0 0 if (node)
42576 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 &&
42581 0 0 if (node)
42595 0 0 if (node->attributes == NULL)
42598 0 0 for (attr = node->attributes; attr; attr = attr->next)
42600 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))
42601 0 0 && AttrContains(attr, "javascript") )
0 0 && AttrContains(attr, "javascript") )
0 0 && AttrContains(attr, "javascript") )
42619 4 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
42621 0 4 if (node->tag == head->tag && node->type == EndTag)
0 0 if (node->tag == head->tag && node->type == EndTag)
42630 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)
42637 0 4 if (TY_(nodeIsText)(node))
42643 0 0 if (!cfgBool( doc, TidyOmitOptionalTags ) &&
0 0 if (!cfgBool( doc, TidyOmitOptionalTags ) &&
42652 0 4 if (node->type == ProcInsTag && node->element &&
42661 0 4 if (InsertMisc(head, node))
42664 0 4 if (node->type == DocTypeTag)
42671 0 4 if (node->tag == NULL)
42683 3 1 if (!(node->tag->model & CM_HEAD))
42686 0 3 if ( lexer->isvoyager )
42692 1 0 if (TY_(nodeIsElement)(node))
42694 1 0 if ( nodeIsTITLE(node) )
1 0 if ( nodeIsTITLE(node) )
1 0 if ( nodeIsTITLE(node) )
42698 0 1 if (HasTitle > 1)
42699 0 0 TY_(Report)(doc, head, node,
42703 0 0 else if ( nodeIsBASE(node) )
0 0 else if ( nodeIsBASE(node) )
0 0 else if ( nodeIsBASE(node) )
42707 0 0 if (HasBase > 1)
42708 0 0 TY_(Report)(doc, head, node,
42732 0 0 while (node)
42734 0 0 if (TagIsId(node,tid))
0 0 if (TagIsId(node,tid))
0 0 if (TagIsId(node,tid))
42744 0 0 if (content)
42746 0 0 if (TY_(FindNodeWithId)(content,tid))
42761 0 0 Node *node = (doc ? doc->root.content : NULL);
42778 6 3 while ((node = TY_(GetToken)(doc, mode)) != NULL)
42781 0 6 if (node->tag == body->tag && node->type == StartTag)
0 0 if (node->tag == body->tag && node->type == StartTag)
42789 6 0 if ( nodeIsHTML(node) )
5 1 if ( nodeIsHTML(node) )
0 5 if ( nodeIsHTML(node) )
42791 0 0 if (TY_(nodeIsElement)(node) || lexer->seenEndHtml)
0 0 if (TY_(nodeIsElement)(node) || lexer->seenEndHtml)
42800 0 6 if ( lexer->seenEndBody &&
0 0 if ( lexer->seenEndBody &&
42801 0 0 ( node->type == StartTag ||
42802 0 0 node->type == EndTag ||
42808 0 6 if ( node->tag == body->tag && node->type == EndTag )
0 0 if ( node->tag == body->tag && node->type == EndTag )
42816 0 0 if ( nodeIsNOFRAMES(body->parent) )
0 0 if ( nodeIsNOFRAMES(body->parent) )
0 0 if ( nodeIsNOFRAMES(body->parent) )
42822 6 0 if ( nodeIsNOFRAMES(node) )
5 1 if ( nodeIsNOFRAMES(node) )
0 5 if ( nodeIsNOFRAMES(node) )
42824 0 0 if (node->type == StartTag)
42831 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) )
42839 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))
42840 0 0 && nodeIsNOFRAMES(body->parent) )
0 0 && nodeIsNOFRAMES(body->parent) )
0 0 && nodeIsNOFRAMES(body->parent) )
42849 1 5 if ( TY_(nodeIsText)(node) &&
1 0 if ( TY_(nodeIsText)(node) &&
42850 1 0 node->end <= node->start + 1 &&
42855 0 6 if (InsertMisc(body, node))
42859 1 5 if (TY_(nodeIsText)(node))
42861 1 0 if (iswhitenode && mode == IgnoreWhitespace)
0 1 if (iswhitenode && mode == IgnoreWhitespace)
42870 0 1 if (checkstack)
42874 0 0 if ( TY_(InlineDup)(doc, node) > 0 )
42883 0 5 if (node->type == DocTypeTag)
42889 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) )
42904 5 0 if (( nodeIsINPUT(node) ||
5 0 if (( nodeIsINPUT(node) ||
42905 0 1 (!TY_(nodeHasCM)(node, CM_BLOCK) && !TY_(nodeHasCM)(node, CM_INLINE))
42906 0 0 ) && !TY_(IsHTML5Mode)(doc) )
42909 0 0 if (!(node->tag->model & CM_HEAD))
42912 0 0 if (node->tag->model & CM_HTML)
42915 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
42916 0 0 && body->attributes == NULL )
42926 0 0 if (node->tag->model & CM_HEAD)
42932 0 0 if (node->tag->model & CM_LIST)
42939 0 0 else if (node->tag->model & CM_DEFLIST)
42945 0 0 else if (node->tag->model & (CM_TABLE | CM_ROWGRP | CM_ROW))
42948 0 0 if (node->type != EndTag) {
42954 0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
0 0 else if ( nodeIsINPUT(node) )
42962 0 0 if ( !TY_(nodeHasCM)(node, CM_ROW | CM_FIELD) )
42974 1 4 if (node->type == EndTag)
42976 1 0 if ( nodeIsBR(node) )
1 0 if ( nodeIsBR(node) )
0 1 if ( nodeIsBR(node) )
42978 1 0 else if ( nodeIsP(node) )
1 0 else if ( nodeIsP(node) )
1 0 else if ( nodeIsP(node) )
42983 0 0 else if ( TY_(nodeHasCM)(node, CM_INLINE) )
42987 5 0 if (TY_(nodeIsElement)(node))
42989 5 0 if (nodeIsMAIN(node)) {
5 0 if (nodeIsMAIN(node)) {
0 5 if (nodeIsMAIN(node)) {
42993 0 0 if ( TY_(FindNodeById)(doc, TidyTag_MAIN) )
43004 1 4 if ( TY_(nodeHasCM)(node, CM_INLINE) )
43008 1 0 if ( nodeIsIMG(node) )
1 0 if ( nodeIsIMG(node) )
1 0 if ( nodeIsIMG(node) )
43013 1 0 if (checkstack && !node->implicit)
1 0 if (checkstack && !node->implicit)
43017 0 1 if ( TY_(InlineDup)(doc, node) > 0 )
43029 1 4 if (node->implicit)
43049 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43055 0 0 while ( (node = TY_(GetToken)(doc, mode)) != NULL )
43057 0 0 if ( node->tag == noframes->tag && node->type == EndTag )
0 0 if ( node->tag == noframes->tag && node->type == EndTag )
43065 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) )
43068 0 0 if (node->type == EndTag)
43081 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
43083 0 0 if (TY_(nodeIsElement)(node))
43091 0 0 if (InsertMisc(noframes, node))
43094 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 )
43101 0 0 if (seen_body && TY_(FindBody)(doc) != node)
0 0 if (seen_body && TY_(FindBody)(doc) != node)
43110 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))
43113 0 0 if ( body || lexer->seenEndBody )
0 0 if ( body || lexer->seenEndBody )
43115 0 0 if ( body == NULL )
43121 0 0 if ( TY_(nodeIsText)(node) )
43133 0 0 if ( cfgBool(doc, TidyXmlOut) )
43155 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43160 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43162 0 0 if (node->tag == frameset->tag && node->type == EndTag)
0 0 if (node->tag == frameset->tag && node->type == EndTag)
43171 0 0 if (InsertMisc(frameset, node))
43174 0 0 if (node->tag == NULL)
43181 0 0 if (TY_(nodeIsElement)(node))
43183 0 0 if (node->tag && node->tag->model & CM_HEAD)
0 0 if (node->tag && node->tag->model & CM_HEAD)
43190 0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
0 0 if ( nodeIsBODY(node) )
43197 0 0 if (node->type == StartTag && (node->tag->model & CM_FRAMES))
0 0 if (node->type == StartTag && (node->tag->model & CM_FRAMES))
43204 0 0 else if (node->type == StartEndTag && (node->tag->model & CM_FRAMES))
0 0 else if (node->type == StartEndTag && (node->tag->model & CM_FRAMES))
43212 0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
0 0 if ( nodeIsA(node) )
43235 0 3 if (node == NULL)
43241 3 0 if ( nodeIsHEAD(node) )
3 0 if ( nodeIsHEAD(node) )
0 3 if ( nodeIsHEAD(node) )
43244 0 3 if (node->tag == html->tag && node->type == EndTag)
0 0 if (node->tag == html->tag && node->type == EndTag)
43252 0 3 if (node->tag == html->tag && node->type == StartTag)
0 0 if (node->tag == html->tag && node->type == StartTag)
43260 0 3 if (InsertMisc(html, node))
43276 0 3 if (node == NULL)
43278 0 0 if (frameset == NULL) /* implied body */
43290 0 3 if (node->tag == html->tag)
43292 0 0 if (node->type != StartTag && frameset == NULL)
0 0 if (node->type != StartTag && frameset == NULL)
43300 0 3 if (InsertMisc(html, node))
43304 3 0 if ( nodeIsBODY(node) )
3 0 if ( nodeIsBODY(node) )
0 3 if ( nodeIsBODY(node) )
43306 0 0 if (node->type != StartTag)
43313 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
43315 0 0 if (frameset != NULL)
43319 0 0 if (noframes == NULL)
43327 0 0 if (noframes->type == StartEndTag)
43341 3 0 if ( nodeIsFRAMESET(node) )
3 0 if ( nodeIsFRAMESET(node) )
0 3 if ( nodeIsFRAMESET(node) )
43343 0 0 if (node->type != StartTag)
43350 0 0 if (frameset != NULL)
43363 0 0 for (node = frameset->content; node; node = node->next)
43365 0 0 if ( nodeIsNOFRAMES(node) )
0 0 if ( nodeIsNOFRAMES(node) )
0 0 if ( nodeIsNOFRAMES(node) )
43372 3 0 if ( nodeIsNOFRAMES(node) )
3 0 if ( nodeIsNOFRAMES(node) )
0 3 if ( nodeIsNOFRAMES(node) )
43374 0 0 if (node->type != StartTag)
43381 0 0 if (frameset == NULL)
43389 0 0 if (noframes == NULL)
43401 3 0 if (TY_(nodeIsElement)(node))
43403 3 0 if (node->tag && node->tag->model & CM_HEAD)
0 3 if (node->tag && node->tag->model & CM_HEAD)
43410 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) )
43422 0 3 if (frameset)
43424 0 0 if (noframes == NULL)
43432 0 0 if (noframes->type == StartEndTag)
43444 1 2 if (!showingBodyOnly(doc))
43459 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 );
43467 0 0 if (!body)
43472 0 0 while (node)
43474 0 0 if ((TY_(nodeIsText)(node) && !TY_(IsBlank)(doc->lexer, node)) ||
43475 0 0 (TY_(nodeIsElement)(node) && nodeCMIsOnlyInline(node)))
43479 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)))
43501 0 0 while (node)
43505 0 0 if (node->content)
43508 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) ||
43509 0 0 nodeIsBLOCKQUOTE(node))
0 0 nodeIsBLOCKQUOTE(node))
43510 0 0 || !node->content)
43518 0 0 if ((TY_(nodeIsText)(block) && !TY_(IsBlank)(doc->lexer, block)) ||
43519 0 0 (TY_(nodeIsElement)(block) && nodeCMIsOnlyInline(block)))
43524 0 0 (!TY_(nodeIsElement)(block) || nodeCMIsOnlyInline(block)))
43543 25 19 while (node)
43549 25 0 if (nodeIsDIR(node))
17 8 if (nodeIsDIR(node))
0 17 if (nodeIsDIR(node))
43552 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) ||
43553 0 17 (node->tag && node->tag->id == TidyTag_PLAINTEXT))
43556 16 9 if (node->content)
43567 25 19 while (node)
43571 17 8 if (TY_(nodeIsElement)(node))
43573 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 */
43579 16 9 if (node->content)
43582 0 25 assert( next != node ); /* http://tidy.sf.net/issue/1603538 */
43594 3 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43596 0 3 if (node->type == XmlDecl)
43600 0 0 if (TY_(FindXmlDecl)(doc) && doc->root.content)
0 0 if (TY_(FindXmlDecl)(doc) && doc->root.content)
43606 0 0 if (node->line > 1 || node->column != 1)
0 0 if (node->line > 1 || node->column != 1)
43613 0 3 if (InsertMisc( &doc->root, node ))
43616 0 3 if (node->type == DocTypeTag)
43618 0 0 if (doctype == NULL)
43631 0 3 if (node->type == EndTag)
43638 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))
43644 0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
0 0 if (AttrValueIs(xmlns, XHTML_NAMESPACE))
43652 0 0 if ( !htmlOut )
43660 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) )
43673 3 0 if (!TY_(FindDocType)(doc))
43676 3 0 if ((dtmode != TidyDoctypeOmit) && !showingBodyOnly(doc))
1 2 if ((dtmode != TidyDoctypeOmit) && !showingBodyOnly(doc))
43678 0 3 if ((dtmode != TidyDoctypeAuto) && (dtmode != TidyDoctypeHtml5))
0 0 if ((dtmode != TidyDoctypeAuto) && (dtmode != TidyDoctypeHtml5))
43693 0 3 if ( cfg( doc, TidyAccessibilityCheckLevel ) > 0 )
43696 0 3 if (!TY_(FindHTML)(doc))
43705 2 1 if (!node)
43709 0 2 if (!showingBodyOnly(doc))
43715 0 1 else if (!node->content && !showingBodyOnly(doc))
0 0 else if (!node->content && !showingBodyOnly(doc))
43718 0 0 if (TY_(IsHTML5Mode)(doc))
43729 0 3 if (cfgBool(doc, TidyEncloseBodyText))
43731 0 3 if (cfgBool(doc, TidyEncloseBlockText))
43740 0 0 for (attribute = element->attributes; attribute; attribute = attribute->next)
43742 0 0 if (attrIsXML_SPACE(attribute))
0 0 if (attrIsXML_SPACE(attribute))
0 0 if (attrIsXML_SPACE(attribute))
43744 0 0 if (AttrValueIs(attribute, "preserve"))
0 0 if (AttrValueIs(attribute, "preserve"))
0 0 if (AttrValueIs(attribute, "preserve"))
43751 0 0 if (element->element == NULL)
43755 0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
0 0 if (nodeIsPRE(element) ||
43756 0 0 nodeIsSCRIPT(element) ||
0 0 nodeIsSCRIPT(element) ||
0 0 nodeIsSCRIPT(element) ||
43757 0 0 nodeIsSTYLE(element) ||
43762 0 0 if ( TY_(tmbstrcasecmp)(element->element, "xsl:text") == 0 )
43778 0 0 if ( TY_(XMLPreserveWhiteSpace)(doc, element) )
43781 0 0 while ((node = TY_(GetToken)(doc, mode)) != NULL)
43783 0 0 if (node->type == EndTag &&
0 0 if (node->type == EndTag &&
43793 0 0 if (node->type == EndTag)
43795 0 0 if (element)
43805 0 0 if (node->type == StartTag)
43818 0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
43820 0 0 if ( lexer->lexbuf[node->start] == ' ' )
43824 0 0 if (node->start >= node->end)
43836 0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
0 0 if (TY_(nodeIsText)(node) && mode != Preformatted)
43838 0 0 if ( lexer->lexbuf[node->end - 1] == ' ' )
43842 0 0 if (node->start >= node->end)
43856 0 0 while ((node = TY_(GetToken)(doc, IgnoreWhitespace)) != NULL)
43859 0 0 if (node->type == EndTag)
43867 0 0 if (InsertMisc( &doc->root, node))
43870 0 0 if (node->type == DocTypeTag)
43872 0 0 if (doctype == NULL)
43885 0 0 if (node->type == StartEndTag)
43892 0 0 if (node->type == StartTag)
43904 0 0 if ( cfgBool(doc, TidyXmlDecl) )
44143 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)
44144 0 0 if (unicode4cat[i].code == c)
44147 0 0 if (unicode4cat[i].category == UCPS ||
0 0 if (unicode4cat[i].category == UCPS ||
44160 0 0 if ((c & 0xFF00) == 0xA100)
44163 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 )
44198 3 0 if ( buflen == 0 )
44200 0 3 while ( len >= buflen )
44204 3 0 if ( ip )
44227 0 0 return ind->attrStringStart = ( inString ? -1 : (int) pprint->linelen );
44232 0 15 return ( ind->attrStringStart >= 0 &&
0 0 return ( ind->attrStringStart >= 0 &&
44239 1 0 return ( ind->attrStringStart == 0 ||
0 1 return ( ind->attrStringStart == 0 ||
44240 0 0 (ind->attrStringStart > 0 && ind->attrStringStart < wrap) );
44247 0 0 if (!element)
44250 0 0 for (node = element->content; node; node = node->next)
44251 0 0 if ( TY_(nodeIsText)(node) )
44271 1 0 return ( ind->attrValStart == 0 ||
0 1 return ( ind->attrValStart == 0 ||
44272 0 0 (ind->attrValStart > 0 && ind->attrValStart < wrap) );
44279 0 16 if ( wantIt )
44282 0 0 wantIt = ( ( !IsWrapInAttrVal(pprint) || indentAttrs ) &&
44303 0 0 if ( onoff )
44311 2 204 if ( string_index + 1 >= pprint->lbufsize )
44325 1 8 if ( string_index + len >= pprint->lbufsize )
44328 28 9 for ( ix=0; ix
44346 9 0 if ( wrap )
44348 2 7 if ( pprint->indent[0].spaces < 0 )
44352 0 0 else if ( pprint->ixInd == 0 )
44363 0 0 if ( *valFrom > (int) wrapPoint )
44378 0 0 if ( wrap )
44380 0 0 if ( ind[0].spaces < 0 )
44384 0 0 else if ( pprint->ixInd == 0 )
44406 0 16 if ( pprint->ixInd > 0 )
44412 10 6 if ( pprint->wraphere > 0 )
44415 0 10 if ( ind[0].attrStringStart > wrap )
44417 0 10 if ( ind[0].attrValStart > wrap )
44422 0 6 if ( ind[0].attrStringStart > 0 )
44424 0 6 if ( ind[0].attrValStart > 0 )
44435 1 0 if ( pprint->linelen > pprint->wraphere )
44441 1 0 if ( ! IsWrapInAttrVal(pprint) )
44443 1 0 while ( q < end && *q == ' ' )
0 1 while ( q < end && *q == ' ' )
44447 46 1 while ( q < end )
44473 0 0 if (spaces && (indent_char == '\t') && tabsize)
0 0 if (spaces && (indent_char == '\t') && tabsize)
0 0 if (spaces && (indent_char == '\t') && tabsize)
44476 0 0 if (spaces == 0) // with a minimum of one
44479 0 0 for (i = 0; i < spaces; i++)
44493 0 1 if ( pprint->wraphere == 0 )
44496 0 1 if ( WantIndent(doc) )
44499 31 1 for ( i = 0; i < pprint->wraphere; ++i )
44502 0 1 if ( IsWrapInString(pprint) )
44517 0 15 if ( GetSpaces(pprint) + pprint->linelen >= cfg(doc, TidyWrapLen) )
44528 1 36 if ( GetSpaces(pprint) + pprint->linelen >= cfg(doc, TidyWrapLen) )
44531 0 1 if ( pprint->indent[ 0 ].spaces < 0 )
44549 0 0 if ( WantIndent(doc) )
44552 0 0 for ( i = 0; i < pprint->wraphere; ++i )
44555 0 0 if ( IsWrapInString(pprint) )
44573 0 15 if ( WantIndent(doc) )
44576 203 15 for ( i = 0; i < pprint->linelen; ++i )
44579 0 15 if ( IsInString(pprint) )
44589 5 0 if ( pprint->linelen > 0 )
44595 0 5 if (pprint->indent[ 0 ].spaces != (int)indent )
44608 0 0 if ( pprint->linelen > 0 )
44617 0 0 if ( pprint->indent[ 0 ].spaces != (int)indent )
44636 8 0 if ( pprint->linelen > 0 )
44640 8 0 if(TidyAddVS) {
44645 0 8 if ( pprint->indent[ 0 ].spaces != (int)indent )
44658 2 11 if ( pprint->linelen > 0 )
44663 2 0 if(TidyAddVS) {
44674 1 12 if (pprint->indent[ 0 ].spaces != (int)indent)
44691 7 89 if ( c == ' ' && !(mode & (PREFORMATTED | COMMENT | ATTRIBVALUE | CDATA)))
0 7 if ( c == ' ' && !(mode & (PREFORMATTED | COMMENT | ATTRIBVALUE | CDATA)))
44694 0 0 if (mode & NOWRAP)
44698 0 0 if ( cfgBool(doc, TidyNumEntities) || cfgBool(doc, TidyXmlTags) )
0 0 if ( cfgBool(doc, TidyNumEntities) || cfgBool(doc, TidyXmlTags) )
44708 0 96 if ( mode & (COMMENT | CDATA) )
44715 96 0 if ( !(mode & CDATA) )
44717 0 96 if ( c == '<')
44723 0 96 if ( c == '>')
44734 0 96 if ( c == '&' && cfgBool(doc, TidyQuoteAmpersand)
0 0 if ( c == '&' && cfgBool(doc, TidyQuoteAmpersand)
44735 0 0 && !cfgBool(doc, TidyPreserveEntities)
44736 0 0 && ( mode != OtherNamespace) ) /* #130 MathML attr and entity fix! */
44742 0 96 if ( c == '"' && qmark )
0 0 if ( c == '"' && qmark )
44748 0 96 if ( c == '\'' && qmark )
0 0 if ( c == '\'' && qmark )
44754 0 96 if ( c == 160 && outenc != RAW )
0 0 if ( c == 160 && outenc != RAW )
44756 0 0 if ( cfgBool(doc, TidyQuoteNbsp) )
44758 0 0 if ( cfgBool(doc, TidyNumEntities) ||
0 0 if ( cfgBool(doc, TidyNumEntities) ||
44778 11 85 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
0 11 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
44781 0 0 if (wp == WrapBefore)
44783 0 0 else if (wp == WrapAfter)
44792 0 0 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
0 0 if (!(mode & PREFORMATTED) && cfg(doc, TidyPunctWrap))
44795 0 0 if (wp == WrapBefore)
44797 0 0 else if (wp == WrapAfter)
44812 0 96 if ( outenc == LATIN1 )
44814 0 0 if (c > 255) /* multi byte chars */
44817 0 0 if ( !cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
0 0 if ( !cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
44826 0 0 if (c > 126 && c < 160)
0 0 if (c > 126 && c < 160)
44838 96 0 if ( outenc == UTF8 )
44845 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 )
44852 0 0 if ( cfgBool(doc, TidyXmlTags) )
44855 0 0 if ( c > 127 && outenc == ASCII )
0 0 if ( c > 127 && outenc == ASCII )
44868 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')) )
44871 0 0 if (!cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
0 0 if (!cfgBool(doc, TidyNumEntities) && (p = TY_(EntityName)(c, vers)) )
44885 0 6 if ( ixWS > 0 )
44906 0 4 if ( ixNL > 0 )
44910 16 4 for ( ix = start; ix < end; ++ix )
44923 0 16 if ( c > 0x7F )
44926 2 14 if ( c == '\n' )
44932 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) &&
44933 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)))) )
44956 0 4 if ( wrappable )
44960 4 0 if ( value && value[0] == '<' )
0 4 if ( value && value[0] == '<' )
44962 0 0 if ( value[1] == '%' || value[1] == '@'||
44967 0 4 if ( delim == 0 )
44973 0 4 if ( !cfgBool(doc, TidyXmlOut) || cfgBool(doc, TidyXhtmlOut) )
0 0 if ( !cfgBool(doc, TidyXmlOut) || cfgBool(doc, TidyXhtmlOut) )
44985 4 0 if ( value )
44991 82 4 while (*value != '\0')
44995 0 82 if ( wrappable && c == ' ' )
0 0 if ( wrappable && c == ' ' )
44998 0 82 if ( wrappable && pprint->wraphere > 0 &&
45002 0 82 if ( c == delim )
45004 0 0 ctmbstr entity = (c == '"' ? """ : "'");
45009 0 82 else if (c == '"')
45011 0 0 if ( cfgBool(doc, TidyQuoteMarks) )
45016 0 0 if ( delim == '\'' && scriptAttr && scriptlets )
0 0 if ( delim == '\'' && scriptAttr && scriptlets )
0 0 if ( delim == '\'' && scriptAttr && scriptlets )
45022 0 82 else if ( c == '\'' )
45024 0 0 if ( cfgBool(doc, TidyQuoteMarks) )
45029 0 0 if ( delim == '"' && scriptAttr && scriptlets )
0 0 if ( delim == '"' && scriptAttr && scriptlets )
0 0 if ( delim == '"' && scriptAttr && scriptlets )
45037 0 82 if ( c > 0x7F )
45041 0 82 if ( c == '\n' )
45044 0 0 TY_(PFlushLine)( doc, (strStart < 0
45045 0 0 && !cfgBool(doc, TidyLiteralAttribs) ?
45061 0 4 if ( node->element == NULL )
45065 2 0 !ShouldIndent(doc, node->parent ? node->parent: node) )
45068 0 0 if ( NULL != (node = TY_(FindContainer)(node)) )
45099 4 0 if (!indAttrs)
45102 0 4 if ( indAttrs )
45104 0 0 if ( TY_(nodeIsElement)(node) && !first )
0 0 if ( TY_(nodeIsElement)(node) && !first )
45115 4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
4 0 if ( !xmlOut && !xhtmlOut && attr->dict )
45117 0 4 if ( TY_(IsScript)(doc, name) )
45119 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 )
45123 2 2 if ( !first && !SetWrap(doc, indent) )
0 2 if ( !first && !SetWrap(doc, indent) )
45127 4 0 else if ( pprint->linelen > 0 )
45133 17 4 while (*name)
45137 0 17 if (c > 0x7F)
45139 0 17 else if (ucAttrs == TidyUppercaseYes)
45148 0 4 if ( attr->value == NULL )
45153 0 0 if ( xmlOut )
45154 0 0 PPrintAttrValue( doc, indent, isB ? attr->attribute : NULLSTR,
45157 0 0 else if ( !isB && !TY_(IsNewNode)(node) )
0 0 else if ( !isB && !TY_(IsNewNode)(node) )
45173 0 9 if ( cfgBool(doc, TidyXmlOut) && cfgBool(doc, TidyXmlSpace) &&
45174 0 0 !TY_(GetAttrByName)(node, "xml:space") &&
45180 4 9 for ( av = node->attributes; av; av = av->next )
45182 4 0 if ( av->attribute != NULL )
45186 0 0 else if ( av->asp != NULL )
45191 0 0 else if ( av->php != NULL )
45201 0 0 if (TY_(nodeIsText)(node) && node->end > node->start)
0 0 if (TY_(nodeIsText)(node) && node->end > node->start)
45204 0 0 for (i = node->start; i < node->end; ++i)
45207 0 0 if ( c > 0x7F )
45211 0 0 if ( c == ' ' || c == '\n' )
0 0 if ( c == ' ' || c == '\n' )
45235 7 0 if ( !TY_(nodeCMIsInline)(node) )
45239 0 0 if (prev)
45241 0 0 if (TY_(nodeIsText)(prev))
45243 0 0 else if (nodeIsBR(prev))
0 0 else if (nodeIsBR(prev))
0 0 else if (nodeIsBR(prev))
45249 0 0 if ( isEmpty && !TY_(nodeCMIsInline)(node->parent) )
0 0 if ( isEmpty && !TY_(nodeCMIsInline)(node->parent) )
45281 0 0 if ( !node )
45283 0 0 if ( !node->tag )
45286 0 0 if (nodeIsAREA(node))
0 0 if (nodeIsAREA(node))
0 0 if (nodeIsAREA(node))
45288 0 0 if (nodeIsBASE(node))
0 0 if (nodeIsBASE(node))
0 0 if (nodeIsBASE(node))
45290 0 0 if (nodeIsBR(node))
0 0 if (nodeIsBR(node))
0 0 if (nodeIsBR(node))
45292 0 0 if (nodeIsCOL(node))
0 0 if (nodeIsCOL(node))
0 0 if (nodeIsCOL(node))
45295 0 0 if (id == TidyTag_COMMAND)
45297 0 0 if (nodeIsEMBED(node))
0 0 if (nodeIsEMBED(node))
0 0 if (nodeIsEMBED(node))
45299 0 0 if (nodeIsHR(node))
0 0 if (nodeIsHR(node))
0 0 if (nodeIsHR(node))
45301 0 0 if (nodeIsIMG(node))
0 0 if (nodeIsIMG(node))
0 0 if (nodeIsIMG(node))
45303 0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
0 0 if (nodeIsINPUT(node))
45306 0 0 if (id == TidyTag_KEYGEN )
45308 0 0 if (nodeIsLINK(node))
0 0 if (nodeIsLINK(node))
0 0 if (nodeIsLINK(node))
45310 0 0 if (nodeIsMETA(node))
0 0 if (nodeIsMETA(node))
0 0 if (nodeIsMETA(node))
45312 0 0 if (nodeIsPARAM(node))
0 0 if (nodeIsPARAM(node))
0 0 if (nodeIsPARAM(node))
45315 0 0 if (id == TidyTag_SOURCE )
45318 0 0 if (id == TidyTag_TRACK )
45320 0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
0 0 if (nodeIsWBR(node))
45338 0 9 if ( node->type == EndTag )
45341 9 0 if (s)
45343 29 9 while (*s)
45347 0 29 if (c > 0x7F)
45349 0 29 else if (uc)
45359 9 0 if ( (xmlOut || xhtmlOut) &&
0 9 if ( (xmlOut || xhtmlOut) &&
0 0 if ( (xmlOut || xhtmlOut) &&
45360 0 0 (node->type == StartEndTag || TY_(nodeCMIsEmpty)(node)) )
45375 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) )
45380 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) )
45385 9 0 if ( indent + pprint->linelen < wraplen )
45393 8 1 if (!(mode & NOWRAP)
45394 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))
45395 7 0 && AfterSpace(doc->lexer, node))
45403 0 0 else if ( mode & NOWRAP ||
0 0 else if ( mode & NOWRAP ||
45404 0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
0 0 nodeIsBR(node) || AfterSpace(doc->lexer, node))
45419 7 0 if (s)
45421 22 7 while (*s)
45425 0 22 if (c > 0x7F)
45427 0 22 else if (uc)
45449 0 0 if ( node->linebreak && node->next )
0 0 if ( node->linebreak && node->next )
45468 1 0 if (node->element)
45473 1 0 if (fpi && fpi->value)
0 1 if (fpi && fpi->value)
45481 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)
45484 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
45488 0 0 if (pprint->linelen)
45491 0 1 else if (sys && sys->value)
0 0 else if (sys && sys->value)
45496 0 1 if (sys && sys->value)
0 0 if (sys && sys->value)
45503 0 1 if (node->content)
45527 0 0 while (s && *s)
0 0 while (s && *s)
45530 0 0 if (c > 0x7F)
45539 0 0 if (cfgBool(doc, TidyXmlOut) ||
0 0 if (cfgBool(doc, TidyXmlOut) ||
45540 0 0 cfgBool(doc, TidyXhtmlOut) || node->closed)
45564 0 0 if ( NULL != (att = TY_(AttrGetById)(node, TidyAttr_VERSION)) )
45566 0 0 if ( NULL != (att = TY_(AttrGetById)(node, TidyAttr_ENCODING)) )
45568 0 0 if ( NULL != (att = TY_(GetAttrByName)(node, "standalone")) )
45574 0 0 if ( node->end <= 0 || doc->lexer->lexbuf[node->end - 1] != '?' )
0 0 if ( node->end <= 0 || doc->lexer->lexbuf[node->end - 1] != '?' )
45587 0 0 unsigned int saveWrap = WrapOffCond( doc, !wrapAsp || !wrapJste );
0 0 unsigned int saveWrap = WrapOffCond( doc, !wrapAsp || !wrapJste );
45590 0 0 PPrintText( doc, (wrapAsp ? CDATA : COMMENT), indent, node );
45605 0 0 PPrintText( doc, (cfgBool(doc, TidyWrapJste) ? CDATA : COMMENT),
45625 0 0 if (wrapPhp)
45636 0 0 if ( !indentCData )
45657 0 0 PPrintText( doc, (wrapSect ? CDATA : COMMENT),
45679 0 0 if ( nodeIsHEAD(node) )
0 0 if ( nodeIsHEAD(node) )
0 0 if ( nodeIsHEAD(node) )
45682 0 0 if ( node->parent != NULL )
45696 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 )
45703 0 0 while ( ix > node->start && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while ( ix > node->start && (ch = (lexer->lexbuf[ix] & 0xff))
45704 0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
0 0 && ( ch == ' ' || ch == '\t' || ch == '\r' ) )
45707 0 0 if ( lexer->lexbuf[ ix ] == '\n' )
45724 0 0 if ( TY_(nodeIsText)(node) )
45726 0 0 if ( node->type == AspTag )
45728 0 0 if (node->type == PhpTag)
45736 0 6 assert( node != NULL );
45737 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 )
45741 0 0 while ( ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
0 0 while ( ix < node->end && (ch = (lexer->lexbuf[ix] & 0xff))
45742 0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
0 0 && ( ch==' ' || ch=='\t' || ch=='\r' ) )
45745 0 0 if ( ix > start )
45759 0 0 if ( node->type != TextNode )
45777 0 0 if ( InsideHead(doc, node) )
45787 0 0 if ( node->content != NULL )
45790 0 0 if ( xhtmlOut && node->content != NULL )
0 0 if ( xhtmlOut && node->content != NULL )
45794 0 0 if (AttrValueIs(type, "text/javascript"))
0 0 if (AttrValueIs(type, "text/javascript"))
0 0 if (AttrValueIs(type, "text/javascript"))
45799 0 0 else if (AttrValueIs(type, "text/css"))
0 0 else if (AttrValueIs(type, "text/css"))
0 0 else if (AttrValueIs(type, "text/css"))
45804 0 0 else if (AttrValueIs(type, "text/vbscript"))
0 0 else if (AttrValueIs(type, "text/vbscript"))
0 0 else if (AttrValueIs(type, "text/vbscript"))
45812 0 0 if (!hasCData)
45825 0 0 for ( content = node->content;
45837 0 0 if ( content == node->last )
45843 0 0 if ( contentIndent < 0 && node->content != NULL )
0 0 if ( contentIndent < 0 && node->content != NULL )
45849 0 0 if ( xhtmlOut && node->content != NULL )
0 0 if ( xhtmlOut && node->content != NULL )
45851 0 0 if ( ! hasCData )
45864 0 0 if ( node->content && pprint->indent[ 0 ].spaces != (int)indent )
0 0 if ( node->content && pprint->indent[ 0 ].spaces != (int)indent )
45872 0 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState
45874 0 0 !( TY_(nodeHasCM)(node, CM_INLINE) || TY_(nodeIsText)(node) ) )
45883 20 0 if ( indentContent == TidyNoState )
45886 0 0 if ( nodeIsTEXTAREA(node) )
0 0 if ( nodeIsTEXTAREA(node) )
0 0 if ( nodeIsTEXTAREA(node) )
45889 0 0 if ( indentContent == TidyAutoState )
45891 0 0 if ( node->content && TY_(nodeHasCM)(node, CM_NO_INDENT) )
0 0 if ( node->content && TY_(nodeHasCM)(node, CM_NO_INDENT) )
45893 0 0 for ( node = node->content; node; node = node->next )
45894 0 0 if ( TY_(nodeHasCM)(node, CM_BLOCK) )
45899 0 0 if ( TY_(nodeHasCM)(node, CM_HEADING) )
45902 0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
0 0 if ( nodeIsHTML(node) )
45905 0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
0 0 if ( nodeIsP(node) )
45908 0 0 if ( nodeIsTITLE(node) )
0 0 if ( nodeIsTITLE(node) )
0 0 if ( nodeIsTITLE(node) )
45913 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) )
45917 0 0 if ( TY_(nodeHasCM)(node, CM_FIELD | CM_OBJECT) )
45920 0 0 if ( nodeIsMAP(node) )
0 0 if ( nodeIsMAP(node) )
0 0 if ( nodeIsMAP(node) )
45923 0 0 return ( !TY_(nodeHasCM)( node, CM_INLINE ) && node->content );
0 0 return ( !TY_(nodeHasCM)( node, CM_INLINE ) && node->content );
45938 2 0 if ( node )
45940 3 2 for ( node = node->content; node != NULL; node = node->next )
45954 0 0 for ( content = node->content; content; content = content->next )
45966 0 15 if ( node == NULL )
45969 0 15 if (doc->progressCallback)
45978 4 11 if (node->type == TextNode)
45982 0 11 else if ( node->type == CommentTag )
45986 1 10 else if ( node->type == RootNode )
45988 2 1 for ( content = node->content; content; content = content->next )
45991 1 9 else if ( node->type == DocTypeTag )
45993 0 9 else if ( node->type == ProcInsTag)
45995 0 9 else if ( node->type == XmlDecl)
45997 0 9 else if ( node->type == CDATATag)
45999 0 9 else if ( node->type == SectionTag)
46001 0 9 else if ( node->type == AspTag)
46003 0 9 else if ( node->type == JsteTag)
46005 0 9 else if ( node->type == PhpTag)
46007 9 0 else if ( nodeIsMATHML(node) )
9 0 else if ( nodeIsMATHML(node) )
0 9 else if ( nodeIsMATHML(node) )
46009 7 2 else if ( TY_(nodeCMIsEmpty)(node) ||
0 7 else if ( TY_(nodeCMIsEmpty)(node) ||
46010 0 0 (node->type == StartEndTag && !xhtml) )
46016 1 1 if ( ! TY_(nodeHasCM)(node, CM_INLINE) )
46019 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 &&
46020 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)) &&
46024 2 0 if ( nodeIsHR(node) )
2 0 if ( nodeIsHR(node) )
0 2 if ( nodeIsHR(node) )
46028 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)
46036 1 1 if (node->next)
46038 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))
46040 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))
46041 1 0 || nodeIsHR(node))
1 0 || nodeIsHR(node))
0 1 || nodeIsHR(node))
46047 0 7 if ( node->type == StartEndTag )
46050 7 0 if ( node->tag &&
6 1 if ( node->tag &&
46051 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)) )
46059 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)
46070 1 1 for ( content = node->content; content; content = content->next )
46080 1 0 if ( cfgAutoBool(doc, TidyIndentContent) == TidyNoState
46081 0 1 && node->next != NULL )
46084 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) )
46089 0 6 else if ( TY_(nodeCMIsInline)(node) )
46091 0 0 if ( cfgBool(doc, TidyMakeClean) )
46094 0 0 if ( nodeIsNOBR(node) )
0 0 if ( nodeIsNOBR(node) )
0 0 if ( nodeIsNOBR(node) )
46096 0 0 for ( content = node->content;
46108 0 0 if ( ShouldIndent(doc, node) )
46113 0 0 for ( content = node->content;
46124 0 0 for ( content = node->content;
46141 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))
46146 0 6 if ( ShouldIndent(doc, node) )
46162 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) ||
46167 0 6 if ( ShouldIndent(doc, node) )
46171 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)))
46174 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) ||
46175 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)) )
46178 0 0 else if ( ShouldIndent(doc, node) )
46189 8 6 for ( content = node->content; content; content = content->next )
46192 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) &&
46193 0 0 content->tag && !TY_(nodeHasCM)(content, CM_INLINE) )
46204 6 0 if ( ShouldIndent(doc, node) ||
6 0 if ( ShouldIndent(doc, node) ||
46205 3 3 ( !hideend &&
46206 3 0 ( TY_(nodeHasCM)(node, CM_HTML) ||
46207 3 0 nodeIsNOFRAMES(node) ||
46208 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))
46214 0 3 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
46222 0 3 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
0 0 if ( !hideend || !TY_(nodeHasCM)(node, CM_OPT) )
46225 0 3 if ( classic && !HasMixedContent(node) )
0 0 if ( classic && !HasMixedContent(node) )
46229 0 0 else if (hideend)
46233 0 0 if (pprint->indent[ 0 ].spaces != (int)indent)
46243 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)
46245 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*/))
46254 0 0 if (node == NULL)
46257 0 0 if (doc->progressCallback)
46262 0 0 if ( node->type == TextNode)
46266 0 0 else if ( node->type == CommentTag )
46272 0 0 else if ( node->type == RootNode )
46275 0 0 for ( content = node->content;
46280 0 0 else if ( node->type == DocTypeTag )
46282 0 0 else if ( node->type == ProcInsTag )
46284 0 0 else if ( node->type == XmlDecl )
46286 0 0 else if ( node->type == CDATATag )
46288 0 0 else if ( node->type == SectionTag )
46290 0 0 else if ( node->type == AspTag )
46292 0 0 else if ( node->type == JsteTag)
46294 0 0 else if ( node->type == PhpTag)
46296 0 0 else if ( TY_(nodeHasCM)(node, CM_EMPTY) ||
0 0 else if ( TY_(nodeHasCM)(node, CM_EMPTY) ||
46297 0 0 (node->type == StartEndTag && !xhtmlOut) )
46310 0 0 for ( content = node->content; content; content = content->next )
46312 0 0 if ( TY_(nodeIsText)(content) )
46321 0 0 if ( TY_(XMLPreserveWhiteSpace)(doc, node) )
46327 0 0 else if (mixed)
46333 0 0 if ( !mixed && node->content )
0 0 if ( !mixed && node->content )
46336 0 0 for ( content = node->content; content; content = content->next )
46339 0 0 if ( !mixed && node->content )
0 0 if ( !mixed && node->content )
46845 4 0 if ( stderrStreamOut.sink.sinkData == 0 )
46852 7 0 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
3 4 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
3 0 if ( out && out != &stderrStreamOut && out != &stdoutStreamOut )
46854 0 3 if ( out->iotype == FileIO )
46892 0 0 if ( TY_(initFileSource)( doc->allocator, &in->source, fp ) != 0 )
46923 0 3 if (c == EndOfStream)
46927 0 3 if (c1 == EndOfStream)
46938 0 3 if ( bom == UNICODE_BOM_BE )
46941 0 0 if ( in->encoding != UTF16 && in->encoding != UTF16BE )
0 0 if ( in->encoding != UTF16 && in->encoding != UTF16BE )
46946 0 3 else if (bom == UNICODE_BOM_LE)
46949 0 0 if (in->encoding != UTF16 && in->encoding != UTF16LE)
0 0 if (in->encoding != UTF16 && in->encoding != UTF16LE)
46958 0 3 if (c2 == EndOfStream)
46965 0 3 if (((c << 16) + (c1 << 8) + c2) == UNICODE_BOM_UTF8)
46968 0 0 if (in->encoding != UTF8)
46992 0 122 if ( in->curlastpos == in->firstlastpos )
47004 0 16 if ( in->firstlastpos == in->curlastpos )
47009 0 16 if ( in->curlastpos == 0 )
47019 16 106 if ( in->pushed )
47024 0 106 if ( in->tabs > 0 )
47035 7 103 if ( EndOfStream == c )
47038 7 96 if (c == '\n')
47045 0 96 if (c == '\t')
47048 0 0 if (!keeptabs) {
47050 0 0 in->tabs = tabsize > 0 ?
47060 0 96 if (c == '\r')
47063 0 0 if (c != '\n')
47078 0 96 if (c == '\033')
47083 0 96 if ( c == '\015' && !cfgBool(in->doc, TidyXmlTags) )
0 0 if ( c == '\015' && !cfgBool(in->doc, TidyXmlTags) )
47086 4 92 if ( c < 32 )
47092 87 5 if (
47095 87 0 || in->encoding == ISO2022
47097 0 87 || in->encoding == UTF8
47098 0 0 || in->encoding == SHIFTJIS /* #431953 - RJ */
47099 0 0 || in->encoding == BIG5 /* #431953 - RJ */
47107 0 0 if ( in->encoding == UTF16LE ||
0 0 if ( in->encoding == UTF16LE ||
47108 0 0 in->encoding == UTF16 ||
47111 0 0 if ( !TY_(IsValidUTF16FromUCS4)(c) )
47117 0 0 else if ( TY_(IsLowSurrogate)(c) )
47121 0 0 if ( m == EndOfStream )
47125 0 0 if ( TY_(IsHighSurrogate)(m) )
47128 0 0 if ( TY_(IsValidCombinedChar)(n) )
47132 0 0 if ( 0 == c )
47153 0 0 if ( 127 < c && c < 160 )
0 0 if ( 127 < c && c < 160 )
47156 0 0 Bool isVendorChar = ( in->encoding == WIN1252 ||
0 0 Bool isVendorChar = ( in->encoding == WIN1252 ||
47161 0 0 if (in->doc->lexer)
47167 0 0 if ( isMacChar )
47171 0 0 if ( c1 )
47174 0 0 if ( c1 == 0 && isVendorChar )
0 0 if ( c1 == 0 && isVendorChar )
47176 0 0 else if ( ! isVendorChar )
47182 0 0 if ( c == 0 )
47195 16 0 if ( in->pushed )
47197 0 16 assert( in->bufpos > 0 );
47199 11 5 if ( in->bufpos == 0 )
47202 0 16 if ( c == '\n' )
47217 2 16 if (c == EndOfStream)
47225 0 16 if (in->bufpos + 1 >= in->bufsize)
47230 0 16 if (c == '\n')
47277 24 234 if ( '\n' == c )
47279 0 24 if ( out->nl == TidyCRLF )
47281 0 24 else if ( out->nl == TidyCR )
47285 0 258 if (out->encoding == MACROMAN)
47289 0 258 else if (out->encoding == WIN1252)
47293 0 258 else if (out->encoding == IBM858)
47297 0 258 else if (out->encoding == LATIN0)
47302 258 0 else if (out->encoding == UTF8)
47307 0 258 if (count <= 0)
47314 0 0 else if (out->encoding == ISO2022)
47316 0 0 if (c == 0x1b) /* ESC */
47323 0 0 if (c == '$')
47325 0 0 else if (c == '(')
47332 0 0 if (c == '(')
47359 0 0 else if ( out->encoding == UTF16LE ||
0 0 else if ( out->encoding == UTF16LE ||
47360 0 0 out->encoding == UTF16BE ||
47366 0 0 if ( !TY_(IsValidUTF16FromUCS4)(c) )
47372 0 0 else if ( TY_(IsCombinedChar)(c) )
47376 0 0 if ( !TY_(SplitSurrogatePair)(c, &theChars[0], &theChars[1]) )
47388 0 0 for (i = 0; i < numChars; i++)
47392 0 0 if (out->encoding == UTF16LE)
47398 0 0 else if (out->encoding == UTF16BE || out->encoding == UTF16)
0 0 else if (out->encoding == UTF16BE || out->encoding == UTF16)
47405 0 0 else if (out->encoding == BIG5 || out->encoding == SHIFTJIS)
0 0 else if (out->encoding == BIG5 || out->encoding == SHIFTJIS)
47407 0 0 if (c < 128)
47439 0 0 if (127 < c && c < 160)
0 0 if (127 < c && c < 160)
47447 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))
47453 0 0 for (i = 128; i < 160; i++)
47454 0 0 if (Win2Unicode[i - 128] == c)
47503 0 0 if (127 < c && c < 256) /* Is. #891 */
0 0 if (127 < c && c < 256) /* Is. #891 */
47510 0 0 if (c < 128)
47516 0 0 for (i = 128; i < 256; i++)
47518 0 0 if (Mac2Unicode[i - 128] == c)
47553 0 0 if (127 < c && c < 256)
0 0 if (127 < c && c < 256)
47562 0 0 if (c < 128)
47567 0 0 for (i = 128; i < 256; i++)
47569 0 0 if (IBM2Unicode[i - 128] == c)
47582 0 0 if (163 < c && c < 191)
0 0 if (163 < c && c < 191)
47626 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 );
47628 0 0 if ( status )
47643 0 0 Bool status = ( sink && snkData && pbFunc );
0 0 Bool status = ( sink && snkData && pbFunc );
0 0 Bool status = ( sink && snkData && pbFunc );
47644 0 0 if ( status )
47696 7 103 if ( TY_(IsEOF)(in) )
47701 0 103 if (c == EndOfStream)
47724 0 103 if (in->encoding == ISO2022)
47726 0 0 if (c == 0x1b) /* ESC */
47735 0 0 if (c == '$')
47737 0 0 else if (c == '(')
47744 0 0 if (c == '(')
47770 0 103 if ( in->encoding == UTF16LE )
47773 0 0 if ( EndOfStream == c1 )
47779 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 */
47782 0 0 if ( EndOfStream == c1 )
47788 97 6 if ( in->encoding == UTF8 )
47796 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 */
47798 0 97 else if (err)
47818 6 0 if ((in->encoding == BIG5) || (in->encoding == SHIFTJIS))
0 6 if ((in->encoding == BIG5) || (in->encoding == SHIFTJIS))
47820 0 0 if (c < 128)
47822 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 */
47834 0 0 if ( EndOfStream == c1 )
47849 0 0 if ( out->encoding == UTF8
47850 0 0 || out->encoding == UTF16LE
47851 0 0 || out->encoding == UTF16BE
47852 0 0 || out->encoding == UTF16
47891 12 0 for (i = 0; enc2iana[i].name; ++i)
47892 3 9 if (enc2iana[i].id == id)
47902 0 0 for (i = 0; i < sizeof(enc2iana)/sizeof(enc2iana[0]); ++i)
47903 0 0 if (enc2iana[i].id == id)
47913 0 0 for (i = 0; i < sizeof(enc2iana)/sizeof(enc2iana[0]); ++i)
47914 0 0 if (TY_(tmbstrcasecmp)(charenc, enc2iana[i].tidyOptName) == 0 )
48269 35 13 for (hashval = 0; *s != '\0'; s++)
48280 5 0 if (old)
48297 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)
48299 0 0 if (TY_(tmbstrcmp)(s, p->tag->name) == 0)
48302 0 0 if ( prev )
48318 1246 7 for (i = 0; i < ELEMENT_HASH_SIZE; ++i)
48323 5 1246 while(next)
48339 0 8 if (!s)
48347 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)
48348 3 0 if (TY_(tmbstrcmp)(s, p->tag->name) == 0)
48351 341 0 for (np = tag_defs + 1; np < tag_defs + N_TIDY_TAGS; ++np)
48352 5 336 if (TY_(tmbstrcmp)(s, np->name) == 0)
48355 0 0 for (np = tags->declared_tag_list; np; np = np->next)
48356 0 0 if (TY_(tmbstrcmp)(s, np->name) == 0)
48366 0 4 np->name = name ? TY_(tmbstrdup)( doc->allocator, name ) : NULL;
48378 4 0 if ( d )
48387 0 0 if ( name )
48390 0 0 if ( np == NULL )
48398 0 0 if ( np->id == TidyTag_UNKNOWN )
48494 0 8 if ( cfgBool(doc, TidyXmlTags) )
48500 8 0 if ( node->element && (np = tagsLookup(doc, &doc->tags, node->element)) )
8 0 if ( node->element && (np = tagsLookup(doc, &doc->tags, node->element)) )
48508 0 0 if ( TY_(nodeIsAutonomousCustomTag)( doc, node) )
48529 936 0 for (np = tag_defs + 1; np < tag_defs + N_TIDY_TAGS; ++np )
48530 26 910 if (np->id == tid)
48539 0 0 if ( np )
48575 0 0 if ( cm && parser )
0 0 if ( cm && parser )
48589 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 )
48594 0 0 if ( (curr->model & CM_EMPTY) != 0 )
48599 0 0 if ( (curr->model & CM_INLINE) != 0 )
48604 0 0 if ( (curr->model & CM_BLOCK) != 0 &&
0 0 if ( (curr->model & CM_BLOCK) != 0 &&
48610 0 0 if ( (curr->model & CM_BLOCK) != 0 &&
0 0 if ( (curr->model & CM_BLOCK) != 0 &&
48648 0 12 for ( curr=tags->declared_tag_list; curr; curr = next )
48663 0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
48668 0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
0 0 deleteIt = ( (curr->model & CM_BLOCK) != 0 &&
48676 0 0 if ( deleteIt )
48680 0 0 if ( prev )
48703 0 0 if (np)
48715 0 0 if (np)
48726 0 0 if (np)
48737 0 0 if (np)
48763 3 0 if (np)
48769 3 0 if (np)
48775 3 0 if (np)
48784 3 0 if (np)
48811 1 17 while (attval)
48831 1 0 if ( !HasAlt )
48834 1 0 if ( ( cfg(doc, TidyAccessibilityCheckLevel) == 0 ) && ( !alttext ) )
0 1 if ( ( cfg(doc, TidyAccessibilityCheckLevel) == 0 ) && ( !alttext ) )
48840 1 0 if ( alttext ) {
48846 0 1 if ( !HasSrc && !HasDataFld )
0 0 if ( !HasSrc && !HasDataFld )
48849 1 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
48851 0 1 if ( HasIsMap && !HasUseMap )
0 0 if ( HasIsMap && !HasUseMap )
48867 0 0 if (!AttrHasValue(attval))
0 0 if (!AttrHasValue(attval))
48870 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"))
48872 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"))
48891 0 0 if ( !HasAlt )
48893 0 0 if ( cfg(doc, TidyAccessibilityCheckLevel) == 0 )
48900 0 0 if ( !HasHref && !HasNohref )
0 0 if ( !HasHref && !HasNohref )
48909 0 0 Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
0 0 Bool isHTML5 = ((vers == HT50)||(vers == XH50)) ? yes : no;
48916 0 0 if (cfg(doc, TidyAccessibilityCheckLevel) == 0)
48918 0 0 if (HasSummary && isHTML5)
0 0 if (HasSummary && isHTML5)
48923 0 0 else if (!HasSummary && !isHTML5)
0 0 else if (!HasSummary && !isHTML5)
48932 0 0 if ( cfgBool(doc, TidyXmlOut) && (attval = TY_(AttrGetById)(node, TidyAttr_BORDER)) )
0 0 if ( cfgBool(doc, TidyXmlOut) && (attval = TY_(AttrGetById)(node, TidyAttr_BORDER)) )
48934 0 0 if (attval->value == NULL)
48946 0 0 if (!HasHref)
48951 0 0 if (!HasItemprop && !HasRel)
0 0 if (!HasItemprop && !HasRel)
48959 136 4 return ( node && node->type == TextNode );
42 94 return ( node && node->type == TextNode );
48964 0 0 if ( doc && node )
0 0 if ( doc && node )
48968 0 0 for ( ix = node->start; ix < node->end; ++ix )
48971 0 0 if ( !TY_(IsWhite)( lexer->lexbuf[ix] ) )
48980 195 0 return ( node &&
62 133 return ( node &&
48981 5 57 (node->type == StartTag || node->type == StartEndTag) );
48986 0 0 if ( element )
48991 0 0 if ( ptr && (ptr - element > 0) )
0 0 if ( ptr && (ptr - element > 0) )
49002 0 0 if ( node->element )
49011 0 0 && ( cfg( doc, TidyUseCustomTags ) != TidyCustomNo );
0 0 && ( cfg( doc, TidyUseCustomTags ) != TidyCustomNo );
49020 101 0 return ( node && node->tag &&
101 0 return ( node && node->tag &&
28 73 return ( node && node->tag &&
49039 0 0 TidyTagId tid = TagId( node );
0 0 TidyTagId tid = TagId( node );
49040 0 0 return ( tid && (
0 0 return ( tid && (
49041 0 0 tid == TidyTag_H1 ||
49042 0 0 tid == TidyTag_H2 ||
49043 0 0 tid == TidyTag_H3 ||
49044 0 0 tid == TidyTag_H4 ||
49045 0 0 tid == TidyTag_H5 ||
49051 0 0 TidyTagId tid = TagId( node );
0 0 TidyTagId tid = TagId( node );
49077 0 0 while (node)
49081 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))
49237 4 0 if ( TY_(tidyGetLanguageSetByUser)() == no )
49239 4 0 if( ! TY_(tidySetLanguage)( getenv( "LC_MESSAGES" ) ) )
49266 4 0 if ( doc )
49268 0 4 assert( doc->docIn == NULL );
49269 0 4 assert( doc->docOut == NULL );
49278 0 4 if (doc->givenDoctype)
49301 0 0 if ( impl )
49307 0 0 if ( impl )
49337 0 0 if ( impl )
49348 0 0 if ( impl )
49359 0 0 if ( impl )
49372 0 0 if ( impl )
49380 0 0 if ( impl )
49388 0 0 if ( impl )
49391 0 0 if ( enc >= 0 && TY_(AdjustCharEncoding)(impl, enc) )
0 0 if ( enc >= 0 && TY_(AdjustCharEncoding)(impl, enc) )
49402 0 0 if ( impl )
49405 0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyInCharEncoding, enc ) )
0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyInCharEncoding, enc ) )
49416 0 0 if ( impl )
49419 0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyOutCharEncoding, enc ) )
0 0 if ( enc >= 0 && TY_(SetOptionInt)( impl, TidyOutCharEncoding, enc ) )
49430 0 0 if ( option )
49438 0 0 if ( impl )
49447 0 0 if ( impl )
49449 0 0 else if ( pos )
49469 6 0 if ( option )
49476 0 0 if ( option )
49483 6 0 if ( option )
49490 0 0 if ( option )
49497 0 0 if ( option )
49505 0 0 if ( option && option->id == TidyDoctype )
0 0 if ( option && option->id == TidyDoctype )
49510 0 0 if ( option && option->type == TidyString )
0 0 if ( option && option->type == TidyString )
49517 0 0 if ( option && option->type != TidyString )
0 0 if ( option && option->type != TidyString )
49521 0 0 if ( option->id == TidyDoctype )
49532 0 0 if ( option && option->type != TidyString )
0 0 if ( option && option->type != TidyString )
49539 0 0 if ( option )
49548 0 0 if ( option )
49555 0 0 if ( option )
49565 0 0 if ( impl )
49567 0 0 if ( optId == TidyDoctype )
49571 0 0 if ( pick != TidyDoctypeUser )
49587 1 0 if ( impl )
49594 0 0 if ( impl )
49603 0 0 if ( impl )
49606 0 0 if ( optId == TidyDoctype )
49617 2 0 if ( impl )
49620 0 2 if ( optId == TidyDoctype )
49632 0 0 if ( impl )
49635 0 0 if ( option )
49646 3 0 if ( impl )
49668 0 0 if ( impl )
49678 0 0 if ( impl )
49681 0 0 if ( optId == TidyInlineTags )
49683 0 0 else if ( optId == TidyBlockTags )
49685 0 0 else if ( optId == TidyEmptyTags )
49687 0 0 else if ( optId == TidyPreTags )
49689 0 0 if ( tagtyp != tagtype_null )
49698 0 0 if ( impl )
49707 0 0 if ( impl )
49709 0 0 else if ( iter )
49717 0 0 if ( impl )
49726 0 0 if ( impl )
49728 0 0 else if ( iter )
49745 0 0 if (docDesc && docDesc->links)
0 0 if (docDesc && docDesc->links)
49756 0 0 if (*curr == TidyUnknownOption)
49764 0 0 (TidyIterator)NULL:(TidyIterator)curr;
49771 0 0 if ( impl )
49779 0 0 if ( impl )
49787 0 0 if ( impl )
49797 0 0 if ( impl )
49807 0 0 if ( impl )
49818 0 0 if ( impl )
49826 0 0 if ( impl )
49833 0 0 if ( impl )
49842 0 0 if ( docTo && docFrom )
0 0 if ( docTo && docFrom )
49879 0 0 if ( impl )
49895 0 0 if ( impl )
49906 0 0 if ( impl )
50070 0 0 if ( impl )
50073 0 0 if ( errout )
50090 3 0 if ( impl )
50096 3 0 return ( impl->errout ? 0 : -ENOMEM );
50104 0 0 if ( impl )
50110 0 0 return ( impl->errout ? 0 : -ENOMEM );
50120 0 0 if ( impl )
50134 0 0 if ( impl )
50159 0 0 if ( impl )
50167 0 0 if ( impl )
50175 0 0 if ( impl )
50183 0 0 if ( impl )
50194 0 0 if ( impl )
50200 0 0 if ( impl )
50254 0 0 if ( stat(filnam,&sbuf) != 0 )
50259 0 0 if (sbuf.st_mode & M_IS_DIR) /* and /NOT/ if a DIRECTORY */
50284 0 0 if ( fin )
50287 0 0 if ( !in )
50314 0 0 if ( inbuf )
50329 3 0 if ( content )
50385 0 0 if ( doc->errors > 0 &&
0 0 if ( doc->errors > 0 &&
50386 0 0 cfgBool(doc, TidyWriteBack) && !cfgBool(doc, TidyForceOutput) )
50391 0 0 if ( fout )
50411 0 0 if ( status < 0 ) /* Error message! */
50454 0 0 if ( 0 == status )
50485 0 0 if ( outbuf.size > *buflen )
50499 3 0 if ( outbuf )
50523 0 12 if ( doc->errors > 0 )
50525 0 12 if ( doc->warnings > 0 || doc->accessErrors > 0 )
0 0 if ( doc->warnings > 0 || doc->accessErrors > 0 )
50535 3 0 if ( impl )
50543 3 0 if ( impl )
50552 0 0 if ( impl ) {
50577 3 0 assert( doc != NULL && in != NULL );
0 3 assert( doc != NULL && in != NULL );
50578 0 3 assert( doc->docIn == NULL );
50589 0 3 if (doc->givenDoctype)
50607 0 3 if (bomEnc != -1)
50614 0 3 if ( xmlIn )
50617 0 0 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
50624 0 3 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
50639 0 3 if ( doc->errors > 0 && !cfgBool( doc, TidyForceOutput ) )
0 0 if ( doc->errors > 0 && !cfgBool( doc, TidyForceOutput ) )
50701 16 192 if (html5Info[i].tag == 0)
50703 0 192 if (html5Info[i].id == tid)
50727 11 29 for ( av = node->attributes; av != NULL; av = av->next ) {
50728 11 0 if (attrIsALIGN(av))
8 3 if (attrIsALIGN(av))
0 8 if (attrIsALIGN(av))
50754 29 19 while (node)
50756 0 29 if ( nodeHasAlignAttr( node ) ) {
50765 0 0 if ( !already_strict )
50768 3 26 if ( node == body ) {
50774 3 0 if ( !already_strict ) {
50775 18 3 while ( BadBody5Attribs[i] != TidyAttr_UNKNOWN ) {
50777 0 18 if ( attr )
50783 26 0 if ( nodeIsACRONYM(node) ) {
16 10 if ( nodeIsACRONYM(node) ) {
0 16 if ( nodeIsACRONYM(node) ) {
50784 0 0 if (clean) {
50790 0 0 if ( !already_strict )
50794 26 0 if ( nodeIsAPPLET(node) ) {
16 10 if ( nodeIsAPPLET(node) ) {
0 16 if ( nodeIsAPPLET(node) ) {
50795 0 0 if (clean) {
50801 0 0 if ( !already_strict )
50805 26 0 if ( nodeIsBASEFONT(node) ) {
16 10 if ( nodeIsBASEFONT(node) ) {
0 16 if ( nodeIsBASEFONT(node) ) {
50814 0 0 if ( !already_strict )
50817 26 0 if ( nodeIsBIG(node) ) {
16 10 if ( nodeIsBIG(node) ) {
0 16 if ( nodeIsBIG(node) ) {
50832 0 0 if (clean) {
50836 0 0 if ( !already_strict )
50840 26 0 if ( nodeIsCENTER(node) ) {
16 10 if ( nodeIsCENTER(node) ) {
0 16 if ( nodeIsCENTER(node) ) {
50847 0 0 if ( !already_strict )
50850 26 0 if ( nodeIsDIR(node) ) {
16 10 if ( nodeIsDIR(node) ) {
0 16 if ( nodeIsDIR(node) ) {
50855 0 0 if ( !already_strict )
50858 26 0 if ( nodeIsFONT(node) ) {
16 10 if ( nodeIsFONT(node) ) {
0 16 if ( nodeIsFONT(node) ) {
50864 0 0 if ( !already_strict )
50867 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) )) {
50870 0 0 if ( !already_strict )
50873 26 0 if ( nodeIsSTRIKE(node) ) {
16 10 if ( nodeIsSTRIKE(node) ) {
0 16 if ( nodeIsSTRIKE(node) ) {
50877 0 0 if (clean) {
50881 0 0 if ( !already_strict )
50885 26 0 if ( nodeIsTT(node) ) {
16 10 if ( nodeIsTT(node) ) {
0 16 if ( nodeIsTT(node) ) {
50891 0 0 if (clean) {
50895 0 0 if ( !already_strict )
50899 16 10 if (TY_(nodeIsElement)(node)) {
50900 16 0 if (node->tag) {
50901 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)) ) {
50902 0 0 if ( !already_strict )
50908 16 13 if (node->content)
50935 0 19 unsigned int version = versionEmitted == 0 ? declared : versionEmitted;
50936 19 0 int tagReportType = VERS_STRICT & version ? ELEMENT_VERS_MISMATCH_ERROR : ELEMENT_VERS_MISMATCH_WARN;
50937 19 0 int attrReportType = VERS_STRICT & version ? MISMATCHED_ATTRIBUTE_ERROR : MISMATCHED_ATTRIBUTE_WARN;
50945 29 19 while (node)
50948 19 10 if ( TY_(nodeIsElement)(node) && node->tag ) {
19 0 if ( TY_(nodeIsElement)(node) && node->tag ) {
50951 19 0 if ( !cfgBool(doc, TidyXmlTags) )
50954 0 19 if ( check_versions && !(node->tag->versions & version) )
0 0 if ( check_versions && !(node->tag->versions & version) )
50959 0 19 else if ( node->tag->versions & VERS_PROPRIETARY )
50961 0 0 if ( !cfgBool(doc, TidyMakeClean) ||
0 0 if ( !cfgBool(doc, TidyMakeClean) ||
50962 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) ) )
50974 0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
0 0 if ( (htmlIs5 && !tagLooksCustom) || !htmlIs5 )
50979 0 0 if ( nodeIsLAYER(node) )
0 0 if ( nodeIsLAYER(node) )
0 0 if ( nodeIsLAYER(node) )
50981 0 0 else if ( nodeIsSPACER(node) )
0 0 else if ( nodeIsSPACER(node) )
0 0 else if ( nodeIsSPACER(node) )
50983 0 0 else if ( nodeIsNOBR(node) )
0 0 else if ( nodeIsNOBR(node) )
0 0 else if ( nodeIsNOBR(node) )
50991 19 10 if (TY_(nodeIsElement)(node))
50995 8 19 while (attval)
51001 0 8 attrIsMismatched = (check_versions | htmlIs5) ? TY_(AttributeIsMismatched)(node, attval, doc) : no;
51003 0 8 if ( attrIsProprietary )
51005 0 0 if ( cfgBool(doc, TidyWarnPropAttrs) )
51008 0 8 else if ( attrIsMismatched )
51010 0 0 if (htmlIs5)
51013 0 0 TY_(ReportAttrError)(doc, node, attval,
51023 8 0 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
0 8 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
0 0 if ( ( attrIsProprietary || attrIsMismatched ) && cfgBool(doc, TidyDropPropAttrs) )
51030 16 13 if (node->content)
51181 0 3 if (tidyXmlTags)
51191 3 0 if ( mergeEmphasis )
51199 0 3 if ( logical )
51202 0 3 if ( word2K && TY_(IsWord2000)(doc) )
0 0 if ( word2K && TY_(IsWord2000)(doc) )
51213 0 3 if ( clean )
51217 0 3 if ( gdoc )
51223 0 3 if ( !TY_(CheckNodeIntegrity)( &doc->root ) )
51229 0 3 if (node)
51232 0 0 if (AttrHasValue(fpi))
0 0 if (AttrHasValue(fpi))
51234 0 0 if (doc->givenDoctype)
51240 3 0 if ( doc->root.content )
51243 0 3 if ( htmlOut && doc->lexer->isvoyager )
0 0 if ( htmlOut && doc->lexer->isvoyager )
51247 0 0 if (node)
51251 0 3 if (xhtmlOut && !htmlOut)
0 0 if (xhtmlOut && !htmlOut)
51266 3 0 if (tidyMark )
51272 0 3 if ( xmlOut && xmlDecl )
0 0 if ( xmlOut && xmlDecl )
51279 3 0 if (doc->lexer)
51287 3 0 if (doc->lexer->versionEmitted & VERS_HTML5)
51291 3 0 if ( !doc->lexer->isvoyager && doc->xmlDetected )
0 3 if ( !doc->lexer->isvoyager && doc->xmlDetected )
51322 0 0 if (node && node->implicit )
0 0 if (node && node->implicit )
51349 0 3 if (ppWithTabs)
51354 0 3 if (escapeCDATA)
51357 0 3 if (dropComments)
51360 0 3 if (makeClean)
51366 0 3 if ((makeClean && asciiChars) || makeBare)
0 0 if ((makeClean && asciiChars) || makeBare)
0 3 if ((makeClean && asciiChars) || makeBare)
51369 0 3 if (makeBare)
51378 3 0 if ( showMarkup && (doc->errors == 0 || forceOutput) )
0 3 if ( showMarkup && (doc->errors == 0 || forceOutput) )
0 0 if ( showMarkup && (doc->errors == 0 || forceOutput) )
51381 3 0 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
0 3 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
0 0 if ( outputBOM || (doc->inputHadBOM && smartBOM) )
51392 0 3 if ( xmlOut && !xhtmlOut )
0 0 if ( xmlOut && !xhtmlOut )
51394 2 1 else if ( showBodyOnly( doc, bodyOnly ) )
51424 0 0 if ( impl )
51433 0 0 if ( impl )
51442 0 0 if ( impl )
51451 0 0 if ( impl )
51494 0 0 if ( nimp )
51503 0 0 if ( nimp )
51511 0 0 if ( nimp )
51520 0 0 if ( nimp )
51529 0 0 if ( doc )
51539 0 0 if ( doc && nimp && outbuf )
0 0 if ( doc && nimp && outbuf )
0 0 if ( doc && nimp && outbuf )
51548 0 0 if ( xmlOut && !xhtmlOut )
0 0 if ( xmlOut && !xhtmlOut )
51566 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 )
51569 0 0 switch( node->type ) {
51596 0 0 if ( nimp )
51622 0 0 : yes );
0 0 : yes );
51634 0 0 if (nimp && nimp->tag)
0 0 if (nimp && nimp->tag)
51646 0 0 if ( nimp )
51654 0 0 if ( attval )
51663 0 0 if ( attval )
51671 0 0 if ( attval )
51688 0 0 if ( attval && attval->dict )
0 0 if ( attval && attval->dict )
51739 0 0 if ( result )
51842 36 0 if ( str )
51846 295 36 while ( 0 != (*cp++ = *str++) )
51856 10 0 if ( str && len > 0 )
10 0 if ( str && len > 0 )
51859 50 10 while ( len-- > 0 && (*cp++ = *str++) )
50 0 while ( len-- > 0 && (*cp++ = *str++) )
51869 0 0 if ( s1 != NULL && s2 != NULL )
0 0 if ( s1 != NULL && s2 != NULL )
51872 0 0 while ( *s2 && --size ) /* Predecrement: reserve byte */
0 0 while ( *s2 && --size ) /* Predecrement: reserve byte */
51884 0 0 while (0 != (*s1++ = *s2++) )
51894 0 0 while ( *s1 )
51897 0 0 while (0 != (*s1++ = *s2++) )
51906 50 337 while ((c = *s1) == *s2)
51908 9 41 if (c == '\0')
51915 336 1 return (*s1 > *s2 ? 1 : -1);
51922 72 0 if ( str )
51924 499 72 while ( *str++ )
51941 273 1771 while (c = (unsigned int)(*s1), TY_(ToLower)(c) == TY_(ToLower)((unsigned int)(*s2)))
51943 18 255 if (c == '\0')
51950 707 1064 return (*s1 > *s2 ? 1 : -1);
51957 10 0 if (s1 == NULL || s2 == NULL)
0 10 if (s1 == NULL || s2 == NULL)
51959 0 0 if (s1 == s2)
51961 0 0 return (s1 == NULL ? -1 : 1);
51964 0 10 while ((c = (byte)*s1) == (byte)*s2)
51966 0 0 if (c == '\0')
51969 0 0 if (n == 0)
51977 0 10 if (n == 0)
51980 5 5 return (*s1 > *s2 ? 1 : -1);
51987 0 0 while (c = (unsigned int)(*s1), TY_(ToLower)(c) == TY_(ToLower)((unsigned int)(*s2)))
51989 0 0 if (c == '\0')
51992 0 0 if (n == 0)
52000 0 0 if (n == 0)
52003 0 0 return (*s1 > *s2 ? 1 : -1);
52011 0 0 for ( ix = 0; ix <= diff; ++ix )
52013 0 0 if ( TY_(tmbstrncmp)(s1+ix, s2, len2) == 0 )
52024 0 0 for ( ix = 0; ix <= diff; ++ix )
52026 0 0 if ( TY_(tmbstrncasecmp)(s1+ix, s2, len2) == 0 )
52036 0 0 for ( cp=s; *cp; ++cp )
52046 0 0 for (cp = s; *cp; ++cp)
52256 25 97 if ( successorBytes )
52260 0 122 if ( firstByte == EndOfStream )
52270 122 0 if (ch <= 0x7F) /* 0XXX XXXX one byte */
52275 0 0 else if ((ch & 0xE0) == 0xC0) /* 110X XXXX two bytes */
52280 0 0 else if ((ch & 0xF0) == 0xE0) /* 1110 XXXX three bytes */
52285 0 0 else if ((ch & 0xF8) == 0xF0) /* 1111 0XXX four bytes */
52290 0 0 else if ((ch & 0xFC) == 0xF8) /* 1111 10XX five bytes */
52296 0 0 else if ((ch & 0xFE) == 0xFC) /* 1111 110X six bytes */
52315 25 97 if ( successorBytes )
52317 0 25 for ( i=0; i < bytes-1; ++i )
52319 0 0 if ( !buf[i] || (buf[i] & 0xC0) != 0x80 )
0 0 if ( !buf[i] || (buf[i] & 0xC0) != 0x80 )
52328 97 0 else if ( inp )
52330 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 )
52336 0 0 if ( b == EOF || (buf[i] & 0xC0) != 0x80 )
0 0 if ( b == EOF || (buf[i] & 0xC0) != 0x80 )
52340 0 0 if ( b != EOF )
52347 0 0 else if ( bytes > 1 )
52353 122 0 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
122 0 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
0 122 if (!hasError && ((n == kUTF8ByteSwapNotAChar) || (n == kUTF8NotAChar)))
52356 122 0 if (!hasError && (n > kMaxUTF8FromUCS4))
0 122 if (!hasError && (n > kMaxUTF8FromUCS4))
52359 122 0 if (!hasError)
52367 122 0 if ((n < validUTF8[lo].lowChar) || (n > validUTF8[hi].highChar))
0 122 if ((n < validUTF8[lo].lowChar) || (n > validUTF8[hi].highChar))
52373 122 122 for (i = lo; i <= hi; i++)
52378 122 122 for (tempCount = 0; tempCount < bytes; tempCount++)
52380 122 0 if (!tempCount)
52385 122 0 if ( theByte >= validUTF8[i].validBytes[(tempCount * 2)] &&
122 0 if ( theByte >= validUTF8[i].validBytes[(tempCount * 2)] &&
52388 0 122 if (hasError)
52409 0 122 if ( hasError )
52422 94 258 if ( encodebuf )
52425 352 0 if (c <= 0x7F) /* 0XXX XXXX one byte */
52430 0 0 else if (c <= 0x7FF) /* 110X XXXX two bytes */
52436 0 0 else if (c <= 0xFFFF) /* 1110 XXXX three bytes */
52442 0 0 if ( c == kUTF8ByteSwapNotAChar || c == kUTF8NotAChar )
0 0 if ( c == kUTF8ByteSwapNotAChar || c == kUTF8NotAChar )
52445 0 0 else if (c <= 0x1FFFFF) /* 1111 0XXX four bytes */
52452 0 0 if (c > kMaxUTF8FromUCS4)
52455 0 0 else if (c <= 0x3FFFFFF) /* 1111 10XX five bytes */
52465 0 0 else if (c <= 0x7FFFFFFF) /* 1111 110X six bytes */
52480 352 0 if ( !hasError && outp != NULL )
258 94 if ( !hasError && outp != NULL )
52483 258 258 for ( ix=0; ix < bytes; ++ix )
52499 0 352 if (hasError)
52520 0 25 if (err)
52538 0 5 if (err)
52561 0 0 return ( ch >= kUTF16HighSurrogateBegin && ch <= kUTF16HighSurrogateEnd );
0 0 return ( ch >= kUTF16HighSurrogateBegin && ch <= kUTF16HighSurrogateEnd );
52565 0 0 return ( ch >= kUTF16LowSurrogateBegin && ch <= kUTF16LowSurrogateEnd );
0 0 return ( ch >= kUTF16LowSurrogateBegin && ch <= kUTF16LowSurrogateEnd );
52570 0 0 assert( TY_(IsHighSurrogate)(high) && TY_(IsLowSurrogate)(low) );
0 0 assert( TY_(IsHighSurrogate)(high) && TY_(IsLowSurrogate)(low) );
52577 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 );
52578 0 0 if ( status )
52588 0 0 return ( ch >= kUTF16SurrogatesBegin &&
52589 0 0 (ch & 0x0000FFFE) != 0x0000FFFE &&
0 0 (ch & 0x0000FFFE) != 0x0000FFFE &&
52651 306 2 for (i = 0; i < n_html_tags; i++) {
52670 0 4 if (tag_id >= n_html_tags) {
52679 1384 4 for (i = 0; i < n_attributes; i++) {
52682 604 4 for (i = 0; attrvers[i].attribute != TidyAttr_UNKNOWN; i++) {
52683 461 143 if (version & attrvers[i].versions) {
52690 461 0 if (attribute >= n_attributes || attribute < 0) {
0 461 if (attribute >= n_attributes || attribute < 0) {
52700 401 60 if (! yes_no[attribute]) {
52714 346 1 for (i = 0; i < n_attributes; i++) {