Skip to content

Throws error when styles are corrupted #256

Closed
@dogriffiths

Description

@dogriffiths

Expected Behavior

  • Parse a string with a corrupted style attribute, e.g. ‘<p style="font - size: 1em">X</p>’
  • Return a version that skips the corrupted style ‘<p>X</p>’?

Actual Behavior

Steps to Reproduce

Throws an exception: undefined:1:6: property missing ':'

Reproducible Demo

https://jsfiddle.net/bjwmd5s6/

Environment

  • Version: 1.2.6
  • Platform: Mac
  • Browser: Tested on Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions