Skip to content

Commit

Permalink
Update HTML attribute list to January 2025.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jan 19, 2025
1 parent 4b3b0f0 commit eac5008
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* [Groovy](tools/lang/Groovy.groovy), up to Groovy 5.0.
* [Haskell](tools/lang/Haskell.hs), up to GHC 9.6.
* [Haxe](tools/lang/Haxe.hx), up to Haxe 4.3.
* [HTML](tools/lang/html.html), up to [WHATWG](https://html.spec.whatwg.org/multipage/) December 2024. [Screenshots](https://github.com/zufuliu/notepad4/wiki/Screenshots#html)
* [HTML](tools/lang/html.html), up to [WHATWG](https://html.spec.whatwg.org/multipage/) January 2025. [Screenshots](https://github.com/zufuliu/notepad4/wiki/Screenshots#html)
* ASP
* ASP.NET
* JSP
Expand Down
24 changes: 13 additions & 11 deletions src/EditLexers/stlHTML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static KEYWORDLIST Keywords_HTML = {{
"abbr accept accept-charset accesskey action align alink allow allowfullscreen allowtransparency alpha alt archive "
"as async autocapitalize autocomplete autocorrect autofocus autoplay axis "
"background behavior bgcolor blocking border bordercolor bottommargin "
"cellpadding cellspacing challenge char charoff charset checked cite class classid clear "
"cellpadding cellspacing challenge char charoff charset checked cite class classid clear closedby "
"code codebase codetype color colorspace cols colspan compact content contenteditable contextmenu controls coords "
"crossorigin "
"data datafld dataformatas datapagesize datasrc datatype datetime declare decoding default defer "
Expand Down Expand Up @@ -81,23 +81,25 @@ static KEYWORDLIST Keywords_HTML = {{
"about allow-downloads allow-forms allow-modals allow-orientation-lock "
"allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts "
"allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols alternate always "
"anonymous application-name application/octet-stream application/x-www-form-urlencoded application/xml author auto "
"anonymous any application-name application/octet-stream application/x-www-form-urlencoded application/xml author auto "
"blob bookmark "
"canonical captions chapters characters checkbox circ circle closed "
"canonical captions chapters characters checkbox circ circle closed closerequest "
"color-scheme content-language content-security-policy content-type "
"date datetime-local decimal default-style description descriptions display-p3 dns-prefetch done "
"eager email en enter expect external false fetch file generator get go hard help hide http https icon image keywords "
"lazy license limited-srgb lower-alpha lower-roman ltr "
"mailto manual metadata module modulepreload month multipart/form-data "
"never next no no-referrer no-referrer-when-downgrade nofollow none noopener noreferrer number numeric "
"off on opener origin origin-when-cross-origin origin-when-crossorigin "
"dark date datetime-local decimal default-style description descriptions device-height device-width display-p3 "
"dns-prefetch done "
"eager email en enter expect external false fetch file generator get go hard help hide hint http https "
"icon image initial-scale interactive-widget keywords lazy license light limited-srgb lower-alpha lower-roman ltr "
"mailto manual maximum-scale metadata minimum-scale module modulepreload month multipart/form-data "
"never next no no-referrer no-referrer-when-downgrade nofollow none noopener noreferrer normal number numeric "
"off on only opener origin origin-when-cross-origin origin-when-crossorigin overlays-content "
"password pingback plaintext-only poly polygon post preconnect prefetch prerender prev previous privacy-policy "
"radio range rect rectangle referrer refresh render reset row rowgroup rtl "
"radio range rect rectangle referrer refresh render reset resizes-content resizes-visual row rowgroup rtl "
"same-origin self send sentences set-cookie show sms soft strict-origin strict-origin-when-cross-origin stylesheet "
"submit subtitles sync "
"tag tel terms-of-service text/css text/ecmascript text/javascript text/jscript text/livescript text/plain text/xml "
"theme-color toggle true "
"unsafe-url until-found upper-alpha upper-roman url use-credentials utf-8 week words x-ua-compatible yes "
"unsafe-url until-found upper-alpha upper-roman url use-credentials user-scalable utf-8 viewport week words "
"x-ua-compatible yes "

, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr
//--Autogenerated -- end of section automatically generated
Expand Down
26 changes: 19 additions & 7 deletions tools/lang/html.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
https://whatwg.org/ 17 December 2024
https://whatwg.org/ 17 January 2025
HTML 4.01 https://www.w3.org/TR/html4/ 27 March 2018
XHTML 2.0 https://www.w3.org/TR/xhtml2/ 16 December 2010
XHTML 1.0 https://www.w3.org/TR/xhtml1/ 27 March 2018
Expand Down Expand Up @@ -31,7 +31,7 @@
lang="en" xml:lang xml:base
xmlns xmlns:xsi xsi:schemaLocation
nonce
popover="auto manual" popovertarget="toggle show hide" popovertargetaction
popover="auto manual hint" popovertarget="toggle show hide" popovertargetaction
spellcheck="true false"
style
tabindex
Expand All @@ -44,7 +44,7 @@
<!-- https://html.spec.whatwg.org/multipage/semantics.html -->
<base href target>
<!-- Link types https://html.spec.whatwg.org/multipage/links.html#linkTypes -->
<!-- Referrer Policy https://www.w3.org/TR/referrer-policy/ -->
<!-- Referrer Policy https://www.w3.org/TR/referrer-policy/ 26 January 2017 -->
<!-- https://fetch.spec.whatwg.org/#concept-request-destination -->
<link href
crossorigin="anonymous use-credentials"
Expand All @@ -58,7 +58,19 @@
<!-- Standard metadata names https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names -->
<meta name="application-name author description generator keywords referrer theme-color color-scheme "
http-equiv="content-language content-type default-style refresh set-cookie x-ua-compatible content-security-policy"
content="never default always origin-when-crossorigin" charset="utf-8" media>
content charset="utf-8" media>
<meta name="referrer" content="never default always origin-when-crossorigin">
<!-- https://www.w3.org/TR/css-color-adjust-1/ 14 June 2022 -->
<meta name="color-scheme" content="normal dark light only" />
<!-- https://www.w3.org/TR/css-viewport-1/ 25 January 2024 -->
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=, minimum-scale=, maximum-scale=, user-scalable=yes, interactive-widget=resizes-visual resizes-content overlays-content">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name -->
<!-- The Open Graph protocol https://ogp.me/ -->
<!--
<meta name="creator publisher">
<meta property="og:title og:type og:image og:url">
-->
<style media blocking="render" type="text/css" title></style>
</head>
<!-- event handler content attributes https://html.spec.whatwg.org/multipage/dom.html#global-attributes -->
Expand Down Expand Up @@ -252,7 +264,7 @@ <h6></h6>
<img alt src srcset sizes crossorigin usemap ismap width height
decoding="sync async auto" loading="lazy eager" referrerpolicy fetchpriority>
<!-- https://html.spec.whatwg.org/multipage/iframe-embed-object.html -->
<!-- https://www.w3.org/TR/permissions-policy/ -->
<!-- https://www.w3.org/TR/permissions-policy/ 13 January 2025 -->
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/Permissions_Policy -->
<iframe src srcdoc name
sandbox="allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
Expand Down Expand Up @@ -328,7 +340,7 @@ <h6></h6>
<!-- Interactive elements https://html.spec.whatwg.org/multipage/interactive-elements.html -->
<details name open></details>
<summary></summary>
<dialog open></dialog>
<dialog closedby="any closerequest none" open></dialog>
<!-- Scripting https://html.spec.whatwg.org/multipage/scripting.html -->
<script src type="text/javascript text/ecmascript text/jscript text/livescript module text/plain text/xml application/octet-stream application/xml"
charset nomodule async defer crossorigin integrity referrerpolicy blocking="render" fetchpriority></script>
Expand Down Expand Up @@ -462,7 +474,7 @@ <h1 align></h1>
<html virtualkeyboardpolicy>
<a attributionsrc target="_unfencedTop"></a>
<audio disableremoteplayback></audio>
<button command commandfor></button>
<button command="show-modal close show-popover hide-popover toggle-popover" commandfor></button>
<fencedframe allow height width></fencedframe>
<iframe allowpaymentrequest credentialless csp></iframe>
<img attributionsrc elementtiming>
Expand Down

0 comments on commit eac5008

Please sign in to comment.