Photon 1.0.0
Loading...
Searching...
No Matches
attribute.c File Reference
#include "attribute.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "util.h"

Functions

GumboAttributegumbo_get_attribute (const GumboVector *attributes, const char *name)
 
void gumbo_destroy_attribute (struct GumboInternalParser *parser, GumboAttribute *attribute)
 

Function Documentation

◆ gumbo_destroy_attribute()

void gumbo_destroy_attribute ( struct GumboInternalParser parser,
GumboAttribute attribute 
)

◆ gumbo_get_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.