File tree Expand file tree Collapse file tree 5 files changed +2
-220
lines changed
Expand file tree Collapse file tree 5 files changed +2
-220
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,6 @@ impl ToTokens for HtmlElement {
370370 tokens. extend ( match & name {
371371 TagName :: Lit ( dashedname) => {
372372 let name_span = dashedname. span ( ) ;
373- // Always preserve casing from the user's code
374373 let name = dashedname. to_string ( ) ;
375374 let lowercase_name = dashedname. to_ascii_lowercase_string ( ) ;
376375 if !is_normalised_element_name ( & dashedname. to_string ( ) ) {
Original file line number Diff line number Diff line change @@ -92,28 +92,7 @@ trybuild = "1"
9292
9393[dev-dependencies .web-sys ]
9494version = " 0.3"
95- features = [
96- " ShadowRootInit" ,
97- " ShadowRootMode" ,
98- " HtmlButtonElement" ,
99- " HtmlCanvasElement" ,
100- " CanvasRenderingContext2d" ,
101- " HtmlVideoElement" ,
102- " MediaStream" ,
103- " MediaStreamTrack" ,
104- " MediaDevices" ,
105- " Navigator" ,
106- " DisplayMediaStreamConstraints" ,
107- " MediaTrackSettings" ,
108- " DomRect" ,
109- " ImageData" ,
110- " Blob" ,
111- " BlobPropertyBag" ,
112- " Url" ,
113- " HtmlImageElement" ,
114- " CssStyleDeclaration" ,
115- " Element" ,
116- ]
95+ features = [" ShadowRootInit" , " ShadowRootMode" , " HtmlButtonElement" ]
11796
11897[features ]
11998ssr = [" dep:html-escape" , " dep:base64ct" , " dep:bincode" ]
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ impl VTag {
164164 "input" => VTagInner :: Input ( Default :: default ( ) ) ,
165165 "textarea" => VTagInner :: Textarea ( Default :: default ( ) ) ,
166166 _ => VTagInner :: Other {
167- tag, // Preserve the original casing
167+ tag,
168168 children : Default :: default ( ) ,
169169 } ,
170170 } ,
@@ -538,7 +538,6 @@ mod feat_ssr {
538538 let _ = w. write_str ( "</textarea>" ) ;
539539 }
540540 VTagInner :: Other { tag, children } => {
541- // Check if it's a void element using case-insensitive comparison
542541 let lowercase_tag = tag. to_ascii_lowercase ( ) ;
543542 if !VOID_ELEMENTS . contains ( & lowercase_tag. as_ref ( ) ) {
544543 children
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments