]> sjero.net Git - wget/commitdiff
Add HTML5 media tags to list of known tags and attributes
authorCiprian Vieru <ciprian.vieru@webflow.ro>
Tue, 25 Jun 2013 07:21:09 +0000 (10:21 +0300)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 25 Jun 2013 21:49:03 +0000 (23:49 +0200)
src/ChangeLog
src/html-url.c

index bd191763409d33e9dbb8b21cab40f82e30fc76b4..a7cd78e7113030b4a0e5f9023fc9d604061576fd 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-19 Ciprian Vieru <devel.php@gmail.com> (tiny change)
+
+        * html-url.c: Define TAG_TD, TAG_TH, TAG_VIDEO, TAG_AUDIO, TAG_SOURCE.
+       (tag_url_attributes, known_tags): Likewise.
+
 2013-06-22  Ángel González <keisial@gmail.com>
 
        * init.c (cmd_string_uppercase): Rewrite function.
 2013-06-22  Ángel González <keisial@gmail.com>
 
        * init.c (cmd_string_uppercase): Rewrite function.
index f02982173cec0302e0295e68aaecac5abad5942d..bb2b20e316b3db9896bee39ee1c4df84830a5435 100644 (file)
@@ -79,7 +79,10 @@ enum {
   TAG_SCRIPT,
   TAG_TABLE,
   TAG_TD,
   TAG_SCRIPT,
   TAG_TABLE,
   TAG_TD,
-  TAG_TH
+  TAG_TH,
+  TAG_VIDEO,
+  TAG_AUDIO,
+  TAG_SOURCE
 };
 
 /* The list of known tags and functions used for handling them.  Most
 };
 
 /* The list of known tags and functions used for handling them.  Most
@@ -110,7 +113,10 @@ static struct known_tag {
   { TAG_SCRIPT,  "script",      tag_find_urls },
   { TAG_TABLE,   "table",       tag_find_urls },
   { TAG_TD,      "td",          tag_find_urls },
   { TAG_SCRIPT,  "script",      tag_find_urls },
   { TAG_TABLE,   "table",       tag_find_urls },
   { TAG_TD,      "td",          tag_find_urls },
-  { TAG_TH,      "th",          tag_find_urls }
+  { TAG_TH,      "th",          tag_find_urls },
+  { TAG_VIDEO,   "video",       tag_find_urls },
+  { TAG_AUDIO,   "audio",       tag_find_urls },
+  { TAG_SOURCE,  "source",      tag_find_urls }
 };
 
 /* tag_url_attributes documents which attributes of which tags contain
 };
 
 /* tag_url_attributes documents which attributes of which tags contain
@@ -157,7 +163,12 @@ static struct {
   { TAG_SCRIPT,         "src",          ATTR_INLINE },
   { TAG_TABLE,          "background",   ATTR_INLINE },
   { TAG_TD,             "background",   ATTR_INLINE },
   { TAG_SCRIPT,         "src",          ATTR_INLINE },
   { TAG_TABLE,          "background",   ATTR_INLINE },
   { TAG_TD,             "background",   ATTR_INLINE },
-  { TAG_TH,             "background",   ATTR_INLINE }
+  { TAG_TH,             "background",   ATTR_INLINE },
+  { TAG_VIDEO,          "src",          ATTR_INLINE },
+  { TAG_VIDEO,          "poster",       ATTR_INLINE },
+  { TAG_AUDIO,          "src",          ATTR_INLINE },
+  { TAG_AUDIO,          "poster",       ATTR_INLINE },
+  { TAG_SOURCE,         "src",          ATTR_INLINE }
 };
 
 /* The lists of interesting tags and attributes are built dynamically,
 };
 
 /* The lists of interesting tags and attributes are built dynamically,