Skip to content

Question marks are not handled correctly in CSS.parse() #19

@snehilshah

Description

@snehilshah

Question marks needs \\ as we must also escape the backslash itself, using another backslash, like: "\?". See example in JS section

Minimal reproducible example, this should not fail.

package main

import (
    "fmt"

    "github.com/ericchiang/css"
)

func main() {
    s := "link[href*=css\\\\?family]"

    _, err := css.Parse(s)
    if err != nil {
        fmt.Println("Error: ", err)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions