@@ -118,11 +118,12 @@ class Listener{
118118 AICode = AICode . split ( / (?< = } ) \| \| / g) . map ( ( x ) => { return x . replace ( / ^ { | } $ / g, '' ) } ) . filter ( ( x ) => { return x !== '' } ) ;
119119 if ( AICode . length > 0 ) {
120120 for ( let i = 0 ; i < AICode . length ; i ++ ) {
121- const action = AICode [ i ] . split ( '_' ) [ 0 ] . toLocaleLowerCase ( ) ,
121+ const action = AICode [ i ] . split ( '_' ) [ 0 ] . toLocaleLowerCase ( ) . replace ( / ^ { / , '' ) ,
122122 value = AICode [ i ] . split ( '_' ) [ 1 ] ;
123123 switch ( action ) {
124124 case 'add' :
125125 switch ( value . toLocaleLowerCase ( ) ) {
126+
126127 case 'abbr' :
127128 this . holder += 1 ;
128129 this . lineCode . push ( { tagName : 'abbr' , styles :{ } , scripts :{ } } ) ;
@@ -330,6 +331,58 @@ class Listener{
330331 this . holder += 1 ;
331332 this . lineCode . push ( { tagName : 'img' , styles :{ } , scripts :{ } } ) ;
332333 break ;
334+ case 'ruby' :
335+ this . holder += 1 ;
336+ this . lineCode . push ( { tagName : 'ruby' , styles :{ } , scripts :{ } } ) ;
337+ break ;
338+ case 'rp' :
339+ this . holder += 1 ;
340+ this . lineCode . push ( { tagName : 'rp' , styles :{ } , scripts :{ } } ) ;
341+ break ;
342+ case 'rt' :
343+ this . holder += 1 ;
344+ this . lineCode . push ( { tagName : 'rt' , styles :{ } , scripts :{ } } ) ;
345+ break ;
346+ case 'samp' :
347+ this . holder += 1 ;
348+ this . lineCode . push ( { tagName : 'samp' , styles :{ } , scripts :{ } } ) ;
349+ break ;
350+ case 'section' :
351+ this . holder += 1 ;
352+ this . lineCode . push ( { tagName : 'section' , styles :{ } , scripts :{ } } ) ;
353+ break ;
354+ case 'span' :
355+ this . holder += 1 ;
356+ this . lineCode . push ( { tagName : 'span' , styles :{ } , scripts :{ } } ) ;
357+ break ;
358+ case 'sub' :
359+ this . holder += 1 ;
360+ this . lineCode . push ( { tagName : 'sub' , styles :{ } , scripts :{ } } ) ;
361+ break ;
362+ case 'sup' :
363+ this . holder += 1 ;
364+ this . lineCode . push ( { tagName : 'sup' , styles :{ } , scripts :{ } } ) ;
365+ break ;
366+ case 'summary' :
367+ this . holder += 1 ;
368+ this . lineCode . push ( { tagName : 'summary' , styles :{ } , scripts :{ } } ) ;
369+ break ;
370+ case 'tblrow' :
371+ this . holder += 1 ;
372+ this . lineCode . push ( { tagName : 'tr' , styles :{ } , scripts :{ } } ) ;
373+ break ;
374+ case 'tblhead' :
375+ this . holder += 1 ;
376+ this . lineCode . push ( { tagName : 'th' , styles :{ } , scripts :{ } } ) ;
377+ break ;
378+ case 'tblcell' :
379+ this . holder += 1 ;
380+ this . lineCode . push ( { tagName : 'td' , styles :{ } , scripts :{ } } ) ;
381+ break ;
382+ case 'table' :
383+ this . holder += 1 ;
384+ this . lineCode . push ( { tagName : 'table' , styles :{ } , scripts :{ } , html :`<thead></thead><tbody></tbody>` } ) ;
385+ break ;
333386 case 'kbd' :
334387 this . holder += 1 ;
335388 this . lineCode . push ( { tagName : 'kbd' , styles :{ } , scripts :{ } } ) ;
@@ -346,6 +399,10 @@ class Listener{
346399 this . holder += 1 ;
347400 this . lineCode . push ( { tagName : 'source' , styles :{ } , scripts :{ } } ) ;
348401 break ;
402+ case 'picture' :
403+ this . holder += 1 ;
404+ this . lineCode . push ( { tagName : 'picture' , styles :{ } , scripts :{ } } ) ;
405+ break ;
349406 case 'nav' :
350407 this . holder += 1 ;
351408 this . lineCode . push ( { tagName : 'nav' , styles :{ } , scripts :{ } } ) ;
@@ -367,6 +424,10 @@ class Listener{
367424 this . holder += 1 ;
368425 this . lineCode . push ( { tagName : 'form' , styles :{ } , scripts :{ } } ) ;
369426 break ;
427+ case 'progress' :
428+ this . holder += 1 ;
429+ this . lineCode . push ( { tagName : 'progress' , styles :{ } , scripts :{ } } ) ;
430+ break ;
370431 case 'labelblock' :
371432 this . holder += 1 ;
372433 this . lineCode . push ( { tagName : 'label' , styles :{ } , scripts :{ } } ) ;
@@ -465,7 +526,11 @@ class Listener{
465526 break ;
466527 case 'selectbox' :
467528 this . holder += 1 ;
468- this . lineCode . push ( { tagName : 'select' , styles :{ } , scripts :{ } , wsaNoSelect :false } ) ;
529+ this . lineCode . push ( { tagName : 'select' , styles :{ } , scripts :{ } } ) ;
530+ break ;
531+ case 'output' :
532+ this . holder += 1 ;
533+ this . lineCode . push ( { tagName : 'output' , styles :{ } , scripts :{ } } ) ;
469534 break ;
470535 }
471536 break ;
@@ -570,9 +635,21 @@ class Listener{
570635 case 'value' :
571636 this . lineCode [ this . holder ] . value = value ;
572637 break ;
638+ case 'contenteditable' :
639+ this . lineCode [ this . holder ] . contenteditable = true ;
640+ break ;
641+ case 'for' :
642+ this . lineCode [ this . holder ] . for = value ;
643+ break ;
573644 case 'src' :
574645 this . lineCode [ this . holder ] . src = value ;
575646 break ;
647+ case 'srcset' :
648+ this . lineCode [ this . holder ] . srcset = value ;
649+ break ;
650+ case 'media' :
651+ this . lineCode [ this . holder ] . media = value ;
652+ break ;
576653 case 'pxs' :
577654 this . lineCode [ this . holder ] . pxs = value ;
578655 break ;
@@ -668,8 +745,11 @@ class Listener{
668745 ( this . lineCode [ i ] . dir ? elem . dir = this . #dirName( this . lineCode [ i ] . dir ) : '' ) ;
669746 ( this . lineCode [ i ] . cite ? elem . cite = this . lineCode [ i ] . cite : '' ) ;
670747 ( this . lineCode [ i ] . value ? elem . value = this . lineCode [ i ] . value : '' ) ;
671- ( this . lineCode [ i ] . wsaNoSelect ? elem . setAttribute ( 'wsa-noselect' , '' ) : '' ) ;
748+ ( this . lineCode [ i ] . for ? elem . setAttribute ( 'for' , this . lineCode [ i ] . for ) : '' ) ;
749+ ( this . lineCode [ i ] . contenteditable ? elem . contentEditable = true : '' ) ;
672750 ( this . lineCode [ i ] . src ? elem . src = this . lineCode [ i ] . src : '' ) ;
751+ ( this . lineCode [ i ] . srcset ? elem . srcset = this . lineCode [ i ] . srcset : '' ) ;
752+ ( this . lineCode [ i ] . media ? elem . media = this . lineCode [ i ] . media : '' ) ;
673753 ( this . lineCode [ i ] . controls ? elem . controls = this . lineCode [ i ] . controls : '' ) ;
674754 ( this . lineCode [ i ] . title ? elem . title = this . lineCode [ i ] . title : '' ) ;
675755 ( this . lineCode [ i ] . label ? elem . label = this . lineCode [ i ] . label : '' ) ;
0 commit comments