Skip to content

Commit 0f1e1b7

Browse files
authored
Merge pull request #1136 from progressonderwijs/eamon/Html
Re-generate html DSL syntax
2 parents 9f17008 + cf777a2 commit 0f1e1b7

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

src/ProgressOnderwijsUtils/Html/HtmlSpec.AttributeConstructionMethods.Generated.cs

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ public static THtmlTag _accesskey<THtmlTag>(this THtmlTag htmlTagExpr, string? a
1111
public static THtmlTag _autocapitalize<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
1212
where THtmlTag : struct, IHtmlElement<THtmlTag>
1313
=> htmlTagExpr.Attribute("autocapitalize", attrValue);
14+
public static THtmlTag _autocorrect<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
15+
where THtmlTag : struct, IHtmlElement<THtmlTag>
16+
=> htmlTagExpr.Attribute("autocorrect", attrValue);
1417
public static THtmlTag _autofocus<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
1518
where THtmlTag : struct, IHtmlElement<THtmlTag>
1619
=> htmlTagExpr.Attribute("autofocus", attrValue);
@@ -87,6 +90,9 @@ public static THtmlTag _title<THtmlTag>(this THtmlTag htmlTagExpr, string? attrV
8790
public static THtmlTag _translate<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
8891
where THtmlTag : struct, IHtmlElement<THtmlTag>
8992
=> htmlTagExpr.Attribute("translate", attrValue);
93+
public static THtmlTag _writingsuggestions<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
94+
where THtmlTag : struct, IHtmlElement<THtmlTag>
95+
=> htmlTagExpr.Attribute("writingsuggestions", attrValue);
9096
public static THtmlTag _href<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
9197
where THtmlTag : struct, IHasAttr_href, IHtmlElement<THtmlTag>
9298
=> htmlTagExpr.Attribute("href", attrValue);
@@ -198,6 +204,12 @@ public static THtmlTag _onunhandledrejection<THtmlTag>(this THtmlTag htmlTagExpr
198204
public static THtmlTag _onunload<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
199205
where THtmlTag : struct, IHasAttr_onunload, IHtmlElement<THtmlTag>
200206
=> htmlTagExpr.Attribute("onunload", attrValue);
207+
public static THtmlTag _command<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
208+
where THtmlTag : struct, IHasAttr_command, IHtmlElement<THtmlTag>
209+
=> htmlTagExpr.Attribute("command", attrValue);
210+
public static THtmlTag _commandfor<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
211+
where THtmlTag : struct, IHasAttr_commandfor, IHtmlElement<THtmlTag>
212+
=> htmlTagExpr.Attribute("commandfor", attrValue);
201213
public static THtmlTag _disabled<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
202214
where THtmlTag : struct, IHasAttr_disabled, IHtmlElement<THtmlTag>
203215
=> htmlTagExpr.Attribute("disabled", attrValue);
@@ -264,9 +276,6 @@ public static THtmlTag _method<THtmlTag>(this THtmlTag htmlTagExpr, string? attr
264276
public static THtmlTag _novalidate<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
265277
where THtmlTag : struct, IHasAttr_novalidate, IHtmlElement<THtmlTag>
266278
=> htmlTagExpr.Attribute("novalidate", attrValue);
267-
public static THtmlTag _manifest<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
268-
where THtmlTag : struct, IHasAttr_manifest, IHtmlElement<THtmlTag>
269-
=> htmlTagExpr.Attribute("manifest", attrValue);
270279
public static THtmlTag _srcdoc<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
271280
where THtmlTag : struct, IHasAttr_srcdoc, IHtmlElement<THtmlTag>
272281
=> htmlTagExpr.Attribute("srcdoc", attrValue);
@@ -303,9 +312,15 @@ public static THtmlTag _fetchpriority<THtmlTag>(this THtmlTag htmlTagExpr, strin
303312
public static THtmlTag _accept<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
304313
where THtmlTag : struct, IHasAttr_accept, IHtmlElement<THtmlTag>
305314
=> htmlTagExpr.Attribute("accept", attrValue);
315+
public static THtmlTag _alpha<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
316+
where THtmlTag : struct, IHasAttr_alpha, IHtmlElement<THtmlTag>
317+
=> htmlTagExpr.Attribute("alpha", attrValue);
306318
public static THtmlTag _checked<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
307319
where THtmlTag : struct, IHasAttr_checked, IHtmlElement<THtmlTag>
308320
=> htmlTagExpr.Attribute("checked", attrValue);
321+
public static THtmlTag _colorspace<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
322+
where THtmlTag : struct, IHasAttr_colorspace, IHtmlElement<THtmlTag>
323+
=> htmlTagExpr.Attribute("colorspace", attrValue);
309324
public static THtmlTag _dirname<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
310325
where THtmlTag : struct, IHasAttr_dirname, IHtmlElement<THtmlTag>
311326
=> htmlTagExpr.Attribute("dirname", attrValue);
@@ -420,6 +435,18 @@ public static THtmlTag _rowspan<THtmlTag>(this THtmlTag htmlTagExpr, string? att
420435
public static THtmlTag _headers<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
421436
where THtmlTag : struct, IHasAttr_headers, IHtmlElement<THtmlTag>
422437
=> htmlTagExpr.Attribute("headers", attrValue);
438+
public static THtmlTag _shadowrootmode<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
439+
where THtmlTag : struct, IHasAttr_shadowrootmode, IHtmlElement<THtmlTag>
440+
=> htmlTagExpr.Attribute("shadowrootmode", attrValue);
441+
public static THtmlTag _shadowrootdelegatesfocus<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
442+
where THtmlTag : struct, IHasAttr_shadowrootdelegatesfocus, IHtmlElement<THtmlTag>
443+
=> htmlTagExpr.Attribute("shadowrootdelegatesfocus", attrValue);
444+
public static THtmlTag _shadowrootclonable<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
445+
where THtmlTag : struct, IHasAttr_shadowrootclonable, IHtmlElement<THtmlTag>
446+
=> htmlTagExpr.Attribute("shadowrootclonable", attrValue);
447+
public static THtmlTag _shadowrootserializable<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
448+
where THtmlTag : struct, IHasAttr_shadowrootserializable, IHtmlElement<THtmlTag>
449+
=> htmlTagExpr.Attribute("shadowrootserializable", attrValue);
423450
public static THtmlTag _cols<THtmlTag>(this THtmlTag htmlTagExpr, string? attrValue)
424451
where THtmlTag : struct, IHasAttr_cols, IHtmlElement<THtmlTag>
425452
=> htmlTagExpr.Attribute("cols", attrValue);

src/ProgressOnderwijsUtils/Html/HtmlSpec.AttributeNameInterfaces.Generated.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public interface IHasAttr_onrejectionhandled { }
3838
public interface IHasAttr_onstorage { }
3939
public interface IHasAttr_onunhandledrejection { }
4040
public interface IHasAttr_onunload { }
41+
public interface IHasAttr_command { }
42+
public interface IHasAttr_commandfor { }
4143
public interface IHasAttr_disabled { }
4244
public interface IHasAttr_form { }
4345
public interface IHasAttr_formaction { }
@@ -60,7 +62,6 @@ public interface IHasAttr_autocomplete { }
6062
public interface IHasAttr_enctype { }
6163
public interface IHasAttr_method { }
6264
public interface IHasAttr_novalidate { }
63-
public interface IHasAttr_manifest { }
6465
public interface IHasAttr_srcdoc { }
6566
public interface IHasAttr_sandbox { }
6667
public interface IHasAttr_allow { }
@@ -73,7 +74,9 @@ public interface IHasAttr_ismap { }
7374
public interface IHasAttr_decoding { }
7475
public interface IHasAttr_fetchpriority { }
7576
public interface IHasAttr_accept { }
77+
public interface IHasAttr_alpha { }
7678
public interface IHasAttr_checked { }
79+
public interface IHasAttr_colorspace { }
7780
public interface IHasAttr_dirname { }
7881
public interface IHasAttr_list { }
7982
public interface IHasAttr_max { }
@@ -112,6 +115,10 @@ public interface IHasAttr_defer { }
112115
public interface IHasAttr_colspan { }
113116
public interface IHasAttr_rowspan { }
114117
public interface IHasAttr_headers { }
118+
public interface IHasAttr_shadowrootmode { }
119+
public interface IHasAttr_shadowrootdelegatesfocus { }
120+
public interface IHasAttr_shadowrootclonable { }
121+
public interface IHasAttr_shadowrootserializable { }
115122
public interface IHasAttr_cols { }
116123
public interface IHasAttr_rows { }
117124
public interface IHasAttr_wrap { }

src/ProgressOnderwijsUtils/Html/HtmlSpec.HtmlTagKinds.Generated.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public struct BR : IHtmlElement<BR>
290290
public static HtmlFragment operator +(BR head, HtmlFragment tail) => HtmlFragment.Fragment(HtmlFragment.Element(head), tail);
291291
public static HtmlFragment operator +(string head, BR tail) => HtmlFragment.Fragment(head, HtmlFragment.Element(tail));
292292
}
293-
public struct BUTTON : IHtmlElementAllowingContent<BUTTON>, IHasAttr_disabled, IHasAttr_form, IHasAttr_formaction, IHasAttr_formenctype, IHasAttr_formmethod, IHasAttr_formnovalidate, IHasAttr_formtarget, IHasAttr_name, IHasAttr_popovertarget, IHasAttr_popovertargetaction, IHasAttr_type, IHasAttr_value
293+
public struct BUTTON : IHtmlElementAllowingContent<BUTTON>, IHasAttr_command, IHasAttr_commandfor, IHasAttr_disabled, IHasAttr_form, IHasAttr_formaction, IHasAttr_formenctype, IHasAttr_formmethod, IHasAttr_formnovalidate, IHasAttr_formtarget, IHasAttr_name, IHasAttr_popovertarget, IHasAttr_popovertargetaction, IHasAttr_type, IHasAttr_value
294294
{
295295
public string TagName => "button";
296296
string IHtmlElement.TagStart => "<button";
@@ -995,7 +995,7 @@ public struct HR : IHtmlElement<HR>
995995
public static HtmlFragment operator +(HR head, HtmlFragment tail) => HtmlFragment.Fragment(HtmlFragment.Element(head), tail);
996996
public static HtmlFragment operator +(string head, HR tail) => HtmlFragment.Fragment(head, HtmlFragment.Element(tail));
997997
}
998-
public struct HTML : IHtmlElementAllowingContent<HTML>, IHasAttr_manifest
998+
public struct HTML : IHtmlElementAllowingContent<HTML>
999999
{
10001000
public string TagName => "html";
10011001
string IHtmlElement.TagStart => "<html";
@@ -1076,7 +1076,7 @@ public struct IMG : IHtmlElement<IMG>, IHasAttr_alt, IHasAttr_src, IHasAttr_srcs
10761076
public static HtmlFragment operator +(IMG head, HtmlFragment tail) => HtmlFragment.Fragment(HtmlFragment.Element(head), tail);
10771077
public static HtmlFragment operator +(string head, IMG tail) => HtmlFragment.Fragment(head, HtmlFragment.Element(tail));
10781078
}
1079-
public struct INPUT : IHtmlElement<INPUT>, IHasAttr_accept, IHasAttr_alt, IHasAttr_autocomplete, IHasAttr_checked, IHasAttr_dirname, IHasAttr_disabled, IHasAttr_form, IHasAttr_formaction, IHasAttr_formenctype, IHasAttr_formmethod, IHasAttr_formnovalidate, IHasAttr_formtarget, IHasAttr_height, IHasAttr_list, IHasAttr_max, IHasAttr_maxlength, IHasAttr_min, IHasAttr_minlength, IHasAttr_multiple, IHasAttr_name, IHasAttr_pattern, IHasAttr_placeholder, IHasAttr_popovertarget, IHasAttr_popovertargetaction, IHasAttr_readonly, IHasAttr_required, IHasAttr_size, IHasAttr_src, IHasAttr_step, IHasAttr_type, IHasAttr_value, IHasAttr_width
1079+
public struct INPUT : IHtmlElement<INPUT>, IHasAttr_accept, IHasAttr_alpha, IHasAttr_alt, IHasAttr_autocomplete, IHasAttr_checked, IHasAttr_colorspace, IHasAttr_dirname, IHasAttr_disabled, IHasAttr_form, IHasAttr_formaction, IHasAttr_formenctype, IHasAttr_formmethod, IHasAttr_formnovalidate, IHasAttr_formtarget, IHasAttr_height, IHasAttr_list, IHasAttr_max, IHasAttr_maxlength, IHasAttr_min, IHasAttr_minlength, IHasAttr_multiple, IHasAttr_name, IHasAttr_pattern, IHasAttr_placeholder, IHasAttr_popovertarget, IHasAttr_popovertargetaction, IHasAttr_readonly, IHasAttr_required, IHasAttr_size, IHasAttr_src, IHasAttr_step, IHasAttr_type, IHasAttr_value, IHasAttr_width
10801080
{
10811081
public string TagName => "input";
10821082
string IHtmlElement.TagStart => "<input";
@@ -2030,7 +2030,7 @@ public struct TD : IHtmlElementAllowingContent<TD>, IHasAttr_colspan, IHasAttr_r
20302030
public static HtmlFragment operator +(TD head, HtmlFragment tail) => HtmlFragment.Fragment(HtmlFragment.Element(head), tail);
20312031
public static HtmlFragment operator +(string head, TD tail) => HtmlFragment.Fragment(head, HtmlFragment.Element(tail));
20322032
}
2033-
public struct TEMPLATE : IHtmlElementAllowingContent<TEMPLATE>
2033+
public struct TEMPLATE : IHtmlElementAllowingContent<TEMPLATE>, IHasAttr_shadowrootmode, IHasAttr_shadowrootdelegatesfocus, IHasAttr_shadowrootclonable, IHasAttr_shadowrootserializable
20342034
{
20352035
public string TagName => "template";
20362036
string IHtmlElement.TagStart => "<template";

src/ProgressOnderwijsUtils/ProgressOnderwijsUtils.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\NugetPackagesCommon.props" />
33
<PropertyGroup Label="Configuration">
4-
<Version>105.3.0</Version>
4+
<Version>105.4.0</Version>
55
<PackageReleaseNotes>Allow for clearing of connection pool after killing spids.</PackageReleaseNotes>
66
<Title>ProgressOnderwijsUtils</Title>
77
<Description>Collection of utilities developed by ProgressOnderwijs</Description>

0 commit comments

Comments
 (0)