File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ FeedParser.prototype.handleOpenTag = function (node){
175
175
this . xhtml [ '#' ] += '>' ;
176
176
} else if ( this . stack . length === 0 &&
177
177
( n [ '#name' ] === 'rss' ||
178
+ ( ! this . meta [ '#type' ] && n [ '#name' ] === 'channel' ) ||
178
179
( n [ '#local' ] === 'rdf' && utils . nslookup ( [ n [ '#uri' ] ] , 'rdf' ) ) ||
179
180
( n [ '#local' ] === 'feed' && utils . nslookup ( [ n [ '#uri' ] ] , 'atom' ) ) ) ) {
180
181
Object . keys ( n [ '@' ] ) . forEach ( function ( name ) {
@@ -189,6 +190,10 @@ FeedParser.prototype.handleOpenTag = function (node){
189
190
this . meta [ '#type' ] = 'rss' ;
190
191
this . meta [ '#version' ] = n [ '@' ] [ 'version' ] ;
191
192
break ;
193
+ case 'channel' :
194
+ this . meta [ '#type' ] = 'rss' ;
195
+ this . meta [ '#version' ] = n [ '@' ] [ 'version' ] ;
196
+ break ;
192
197
case 'rdf' :
193
198
this . meta [ '#type' ] = 'rdf' ;
194
199
this . meta [ '#version' ] = n [ '@' ] [ 'version' ] || '1.0' ;
You can’t perform that action at this time.
0 commit comments