8000
Skip to content

Parsing: should drop line:100,invalid setting #336

Description

@zcorpan

http://w3c.github.io/webvtt/#cue-timings-and-settings-parsing

Let cue’s WebVTT cue line be number.

If the last character in linepos is a U+0025 PERCENT SIGN character (%), then let cue’s WebVTT cue snap-to-lines flag be false. Otherwise, let it be true.

I think we should validate linealign before setting the WebVTT cue line. Equivalent for position setting. It is bad for future extensibility to use the line/position with unrecognized alignment.

(Noticed this when looking at @BenjaminSchaaf's revamp of parsing 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

    0