Skip to content

πŸ› Text 'html' in some cases (like after a <br> tag) causes a parser errorΒ #10177

@teear

Description

@teear

Environment information

Details Using the playground

What happened?

Using the playground directly:
playground link

Parser errors on lowercase text 'html', for example after a <br> tag.

/main.html:5:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  βœ– Unexpected value or character.
  
    3 β”‚ html elementti
    4 β”‚ <br>
  > 5 β”‚ html elementti
      β”‚ ^^^^^^^^^^^^^^
  > 6 β”‚ html
      β”‚ ^^^^
    7 β”‚ <br>
    8 β”‚ html
  
  β„Ή Expected one of:
  
  - element
  - text

Expected result

Lowercase text 'html' should not throw an error.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-ParserArea: parserL-HTMLLanguage: HTML and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions