File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -791,11 +791,11 @@ mod css_validation {
791
791
type ExtraMatchingData = ( ) ;
792
792
type AttrValue = CssString ;
793
793
type Identifier = CssIdent ;
794
- type LocalName = DummyValue ;
794
+ type LocalName = CssString ;
795
795
type NamespaceUrl = DummyValue ;
796
796
type NamespacePrefix = DummyValue ;
797
797
type BorrowedNamespaceUrl = DummyValue ;
798
- type BorrowedLocalName = DummyValue ;
798
+ type BorrowedLocalName = CssString ;
799
799
type NonTSPseudoClass = NonTSPseudoClass ;
800
800
type PseudoElement = PseudoElement ;
801
801
}
@@ -915,6 +915,11 @@ mod css_validation {
915
915
// opening comment to match it.
916
916
assert ! ( validate_css_selector( r#"input[x="*/{}*{background:url(https://hackvertor.co.uk/images/logo.gif)}"]"# , false ) . is_some( ) ) ;
917
917
}
918
+
919
+ #[ test]
920
+ fn escaped_quote_in_tag_name ( ) {
921
+ assert_eq ! ( validate_css_selector( r#"head\""# , false ) , Some ( r#"head\""# . to_string( ) ) ) ;
922
+ }
918
923
}
919
924
920
925
static RE_PLAIN_SELECTOR : Lazy < Regex > = Lazy :: new ( || Regex :: new ( r"^[#.][\w\\-]+" ) . unwrap ( ) ) ;
You can’t perform that action at this time.
0 commit comments