Photon 1.0.0
|
#include "attribute.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "util.h"
Functions | |
GumboAttribute * | gumbo_get_attribute (const GumboVector *attributes, const char *name) |
void | gumbo_destroy_attribute (struct GumboInternalParser *parser, GumboAttribute *attribute) |
void gumbo_destroy_attribute | ( | struct GumboInternalParser * | parser, |
GumboAttribute * | attribute | ||
) |
GumboAttribute * gumbo_get_attribute | ( | const GumboVector * | attrs, |
const char * | name | ||
) |
Given a vector of GumboAttributes, look up the one with the specified name and return it, or NULL if no such attribute exists. This uses a case-insensitive match, as HTML is case-insensitive.