xmltv/grab/fi/fi common.pm,2.06,2.07
Stefan Becker via xmltv-commit <[email protected]> Wed, 12 Jul 2017 19:33:04 +0000
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/fi/fi
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27680/grab/fi/fi
Modified Files:
common.pm
Log Message:
- foxtv: fix programme start time parsing
- common: work around meta-in-body bug in HTML::TreeBuilder
- yle: updated for site changes - NOTE: IDs for yle.fi have changed!
Index: common.pm
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/fi/fi/common.pm,v
retrieving revision 2.06
retrieving revision 2.07
diff -C2 -d -r2.06 -r2.07
*** common.pm 24 Feb 2015 18:41:32 -0000 2.06
--- common.pm 12 Jul 2017 19:33:02 -0000 2.07
***************
*** 32,35 ****
--- 32,70 ----
use XMLTV::Get_nice;
+ #
+ # Work around <meta>-in-body bug in HTML::TreeBuilder, See
+ #
+ # https://rt.cpan.org/Public/Bug/Display.html?id=76051
+ #
+ # Example:
+ #
+ # <html>
+ # <head>
+ # </head>
+ # <body>
+ # <div>
+ # <div>
+ # <meta itemprop="test" content="test">
+ # <div>
+ # </div>
+ # </div>
+ # </div>
+ # </body>
+ # </html>
+ #
+ # is incorrectly parsed as ($tree->dump() output):
+ #
+ # html
+ # head
+ # meta
+ # body
+ # div
+ # div
+ # div <--- incorrect level for innermost <div>
+ #
+ # Enable <meta> as valid body element
+ $HTML::Tagset::isBodyElement{meta}++;
+ $HTML::Tagset::isHeadOrBodyElement{meta}++;
+
# Normal message, disabled with --quiet
{
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot