newel->size = tag->attrs[attrid].value_raw_size;
/* A URL is relative if the host and protocol are not named, and the
- name does not start with `/'.
- #### This logic might need some rethinking. */
+ name does not start with `/'. */
if (no_proto && *link_uri != '/')
- newel->flags |= (URELATIVE | UNOPROTO);
- else if (no_proto)
- newel->flags |= UNOPROTO;
+ newel->link_relative_p = 1;
+ else if (!no_proto)
+ newel->link_complete_p = 1;
if (closure->tail)
{
if (!newbase)
break;
if (closure->base)
- free (closure->base);
+ xfree (closure->base);
if (closure->parent_base)
closure->base = url_concat (closure->parent_base, newbase);
else
read_file_free (fm);
return closure.head;
}
+
+void
+cleanup_html_url (void)
+{
+ FREE_MAYBE (interesting_tags);
+ FREE_MAYBE (interesting_attributes);
+}