Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Uncombined literals #3

@petervaro

Description

@petervaro

Right now the specification allows the following:

{
  "type"     : "PRTDocument",
  "dialect"  : "pop-draft",
  "version"  : "2.0",
  "elements" :
  [
    "chunk 1 ",
    "chunk 2 ",
    "chunk 3"
  ]
}

which is essentially the same thing as:

{
  "type"     : "PRTDocument",
  "dialect"  : "pop-draft",
  "version"  : "2.0",
  "elements" : "chunk 1 chunk 2 chunk 3"
}

This ambiguity can lead to faulty behaviours in converters/validators. And since these two are equalent, yet one of them is containing some extra data (the split positions), the converters/validators can't reliably produce the same output.

Suggestion: The specification should be strict about this, and should not allow a string literal to be followed by another one, that is, the next one should be an HTML-like element.

Note: This new behaviour should be in either v2.1 or v3.0!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions