Skip to content

Parser fails without space between class and ID (Hamlet) #197

@terickson001

Description

@terickson001

Having quickly looked through the parser, it seems to intentionally throw an error if there is no space between the end of a class and the beginning of an ID. For example:

  • <div .foo#bar>: Fails
  • <div #foo.bar>: Succeeds

I would've assumed it was just an oversight in the parser, but it deliberately checks for that exact scenario. Is there a reason a class cannot touch a hash? and why is the opposite
(^ tag 2) valid?

Sorry if i've overlooked some detail explaining this, I just found the inconsistency strange and figured it wasn't intentional.

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