File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -96,3 +96,9 @@ describe("AST format", () => {
96
96
] ) ;
97
97
} ) ;
98
98
} ) ;
99
+
100
+ it ( "Edge cases" , ( ) => {
101
+ expect ( humanizeDom ( parse ( "<html:style></html:style>" ) ) ) . toEqual ( [
102
+ [ html . Element , ":html:style" , 0 ] ,
103
+ ] ) ;
104
+ } ) ;
Original file line number Diff line number Diff line change @@ -902,7 +902,11 @@ class _Tokenizer {
902
902
if ( ! this . _attemptCharCode ( chars . $LT ) ) return false ;
903
903
if ( ! this . _attemptCharCode ( chars . $SLASH ) ) return false ;
904
904
this . _attemptCharCodeUntilFn ( isNotWhitespace ) ;
905
- if ( ! this . _attemptStrCaseInsensitive ( tagName ) ) return false ;
905
+ if ( ! this . _attemptStrCaseInsensitive (
906
+ prefix && openToken . type !== TokenType . COMPONENT_OPEN_START ?
907
+ `${ prefix } :${ tagName } `
908
+ : tagName
909
+ ) ) return false ;
906
910
this . _attemptCharCodeUntilFn ( isNotWhitespace ) ;
907
911
return this . _attemptCharCode ( chars . $GT ) ;
908
912
} ) ;
You can’t perform that action at this time.
0 commit comments