Example #1
0
static void GetLinksRecusiv( TidyDocImpl* doc, Node * parent )
{
  for ( Node * content=parent->content; content; content=content->next )
  {
    if( content->element!=NULL
        && ( nodeIsA(content)
             || nodeIsLINK(content)
           )
      )
    {
      for ( AttVal* av=content->attributes; av; av=av->next )
      {
        if( av->value!=NULL && attrIsHREF(av) )
        {
          PrintURL( doc, av->value );
          break;
        }
      }
    }
    if( content->element!=NULL
        && ( nodeIsIMG(content)
             || nodeIsFRAME(content)
             || nodeIsIFRAME(content)
           )
      )
    {
      for ( AttVal* av = content->attributes; av; av = av->next )
      {
        if( av->value!=NULL && attrIsSRC(av) )
        {
          PrintURL( doc, av->value );
          break;
        }
      }
    }
    GetLinksRecusiv( doc, content );
  }
}
Example #2
0
File: attrask.c Project: aosm/tidy
Bool TIDY_CALL tidyAttrIsSRC( TidyAttr tattr )
{
    return attrIsSRC( tidyAttrToImpl(tattr) );
}
Example #3
0
Bool tidyAttrIsSRC( TidyAttr tattr )
{
    return attrIsSRC( tidyAttrToImpl(tattr) );
}