css
css copied to clipboard
Question marks are not handled correctly in CSS.parse()
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)
}
}