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", () => {
9696    ] ) ; 
9797  } ) ; 
9898} ) ; 
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 {
902902      if  ( ! this . _attemptCharCode ( chars . $LT ) )  return  false ; 
903903      if  ( ! this . _attemptCharCode ( chars . $SLASH ) )  return  false ; 
904904      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 ; 
906910      this . _attemptCharCodeUntilFn ( isNotWhitespace ) ; 
907911      return  this . _attemptCharCode ( chars . $GT ) ; 
908912    } ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments