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 @@ -177,6 +177,7 @@ FeedParser.prototype.handleOpenTag = function (node){
177
177
this . xhtml [ '#' ] += '>' ;
178
178
} else if ( this . stack . length === 0 &&
179
179
( n [ '#name' ] === 'rss' ||
180
+ ( ! this . meta [ '#type' ] && n [ '#name' ] === 'channel' ) ||
180
181
( n [ '#local' ] === 'rdf' && _ . nslookup ( [ n [ '#uri' ] ] , 'rdf' ) ) ||
181
182
( n [ '#local' ] === 'feed' && _ . nslookup ( [ n [ '#uri' ] ] , 'atom' ) ) ) ) {
182
183
Object . keys ( n [ '@' ] ) . forEach ( function ( name ) {
@@ -191,6 +192,10 @@ FeedParser.prototype.handleOpenTag = function (node){
191
192
this . meta [ '#type' ] = 'rss' ;
192
193
this . meta [ '#version' ] = n [ '@' ] [ 'version' ] ;
193
194
break ;
195
+ case 'channel' :
196
+ this . meta [ '#type' ] = 'rss' ;
197
+ this . meta [ '#version' ] = n [ '@' ] [ 'version' ] ;
198
+ break ;
194
199
case 'rdf' :
195
200
this . meta [ '#type' ] = 'rdf' ;
196
201
this . meta [ '#version' ] = n [ '@' ] [ 'version' ] || '1.0' ;
You can’t perform that action at this time.
0 commit comments