File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ var POSH = (function () {
295295 var href = el . getAttribute ( "href" ) ;
296296
297297 if ( rel && href ) {
298- href = fix_href ( href ) ;
298+ href = encodeURI ( fix_href ( href ) ) ;
299299 var title = el . getAttribute ( "title" ) ;
300300 var type = el . getAttribute ( "type" ) ;
301301 addTriple ( "#this" , encodeURI ( rel ) , href ) ;
@@ -306,7 +306,7 @@ var POSH = (function () {
306306 addTriple ( href + "#this" , "schema:fileFormat" , type ) ;
307307 }
308308 else if ( rev && href ) {
309- href = fix_href ( href ) ;
309+ href = encodeURI ( fix_href ( href ) ) ;
310310 addTriple ( href , encodeURI ( rev ) , "<#this>" )
311311 }
312312 }
Original file line number Diff line number Diff line change @@ -556,12 +556,15 @@ function check_POSH(dData)
556556 var handler = new Handle_Turtle ( ) ;
557557 handler . parse ( [ dData . posh . text ] , dData . docURL ,
558558 function ( error , html_data ) {
559+ gData . posh . ttl_text = dData . posh . text ;
559560 if ( error )
560- dData . posh . error = error ;
561- else {
561+ dData . posh . error . push ( error ) ;
562+
563+ if ( html_data )
562564 dData . posh . expanded = html_data ;
563- gData . posh . ttl_text = dData . posh . text ;
564- }
565+
566+ if ( handler . skipped_error . length > 0 )
567+ dData . posh . error = dData . posh . error . concat ( handler . skipped_error ) ;
565568
566569 check_RDFa ( dData ) ;
567570 } ) ;
@@ -615,7 +618,7 @@ function parse_Data(dData)
615618 dData . j_nano . expanded = null ;
616619 dData . j_nano . error = null ;
617620 dData . posh . expanded = null ;
618- dData . posh . error = null ;
621+ dData . posh . error = [ ] ;
619622 doc_URL = dData . docURL ;
620623
621624 load_restData ( doc_URL ) ;
You can’t perform that action at this time.
0 commit comments