Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor extensions aren't ignored #23

Open
johnfactotum opened this issue Sep 30, 2023 · 0 comments
Open

Vendor extensions aren't ignored #23

johnfactotum opened this issue Sep 30, 2023 · 0 comments

Comments

@johnfactotum
Copy link

To reproduce

console.log(new CFI('epubcfi(/4[body01]/10[para05;vnd.foo=bar]/3:10[foobar;vnd.foo=bar])').get())

Expected result

"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' }
  ]
]

Actual result

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'
    }
  ]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant