File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -982,6 +982,19 @@ abc`)).rejects.toBeTruthy();
982
982
] ) ;
983
983
} ) ;
984
984
985
+
986
+ it ( 'declaration of the namespace on a typed resource element' , async ( ) => {
987
+ return expect ( await parse ( parser , `<?xml version="1.0"?>
988
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
989
+ <dct:Standard rdf:about="http://example.com" xmlns:dct="http://purl.org/dc/terms/">
990
+ </dct:Standard>
991
+ </rdf:RDF>` ) )
992
+ . toBeRdfIsomorphic ( [
993
+ quad ( 'http://example.com' ,
994
+ 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' , 'http://purl.org/dc/terms/Standard' ) ,
995
+ ] ) ;
996
+ } ) ;
997
+
985
998
it ( 'cdata support' , async ( ) => {
986
999
return expect ( await parse ( parser , `<?xml version="1.0"?>
987
1000
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dct="http://purl.org/dc/terms/" >
You can’t perform that action at this time.
0 commit comments