Skip to content

Document the optimistic runtime parser behavior in tests #301

@stasm

Description

@stasm

There's a test in fluent/test/primitives_test.js which uses invalid syntax:

selector-attr = { baz.attr ->
    [FooBarBazAttribute] FooBarBaz
   *[other] Other
}

The spec forbids AttributeExpressions as selectors. This test passes, however, because it's a FluentBundle test, and FluentBundle uses the optimistic runtime parser (#289). The optimistic parser focuses on well-formed-ness and doesn't reject this syntax as invalid.

We should fix this test to use a term attribute (-baz.attr). We should also review other tests and we should document other parsing differences like this one by writing more tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy