Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • html-validate
  • html-validate
  • Issues
  • #158

Invalid selector generated when id contains / or +

An invalid selector is generated when the id contains / or +

Reduced test-case

<style id="defaultT/2R0">...</style>

<style id="defaultCYd+0">...</style>

Expected result

A valid selector, probably easiest with [id="defaultT/2R0"] but possibly with CSS escapes.

Actual result

SyntaxError: Failed to execute 'querySelector' on 'Document': '#defaultT/2R0' is not a valid selector.

Version

  • html-validate:"7.1.1"
  • cypress: 10.2.0
Assignee
Assign to
Time tracking