Open johnfactotum opened 1 year ago
console.log(new CFI('epubcfi(/4[body01]/10[para05;vnd.foo=bar]/3:10[foobar;vnd.foo=bar])').get())
"Implementations MUST ignore all parameters that they do not understand or cannot parse."
[ [ { nodeIndex: 4, nodeID: 'body01' }, { nodeIndex: 10, nodeID: 'para05' }, { nodeIndex: 3, offset: 10, textLocationAssertion: 'foobar' } ] ]
Vendor-specific parameters treated as part of ID/text.
[ [ { nodeIndex: 4, nodeID: 'body01' }, { nodeIndex: 10, nodeID: 'para05;vnd.foo=bar' }, { nodeIndex: 3, offset: 10, textLocationAssertion: 'foobar;vnd.foo=bar' } ] ]
To reproduce
Expected result
"Implementations MUST ignore all parameters that they do not understand or cannot parse."
Actual result
Vendor-specific parameters treated as part of ID/text.