Skip to content

Commit

Permalink
Update HTML attribute list to January 2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jan 14, 2024
1 parent ac9484c commit e44ac47
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 38 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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/) November 2023. [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#html)
* [HTML](tools/lang/html.html), up to [WHATWG](https://html.spec.whatwg.org/multipage/) January 2024. [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#html)
* ASP
* ASP.NET
* JSP
Expand Down
2 changes: 1 addition & 1 deletion src/EditLexers/stlHTML.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ NULL
"onformchange onforminput onmessage onmessageerror onpopstate onreadystatechange onredo onresize onundo "
"onfocus onformdata onhashchange oninput oninvalid onkeydown onkeypress onkeyup onlanguagechange onload onloadeddata "
"onloadedmetadata onloadend onloadstart onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover "
"onmouseup onmousewheel onwheel onoffline ononline onpagehide onpageshow onpause onplay onplaying onprogress onpaste onratechange onrejectionhandled onremovetrack onreset "
"onmouseup onmousewheel onwheel onoffline ononline onpagehide onpagereveal onpageshow onpause onplay onplaying onprogress onpaste onratechange onrejectionhandled onremovetrack onreset "
"onscroll onscrollend onsecuritypolicyviolation onseeked onseeking onselect onslotchange onshow onstalled onstorage onsubmit onsuspend "
"ontimeupdate ontoggle onvolumechange onunhandledrejection onunload onwaiting "
"onanimationcancel onanimationend onanimationiteration oncontextlost oncontextrestored ongotpointercapture onlostpointercapture "
Expand Down
14 changes: 7 additions & 7 deletions tools/lang/CSS.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2023 https://www.w3.org/TR/CSS/ 14 February 2023
// 2023-11-18 https://drafts.csswg.org/
// 2023 https://www.w3.org/TR/CSS/ 7 December 2023
// 2024-01-14 https://drafts.csswg.org/
// https://github.com/w3c/csswg-drafts/
// https://www.w3.org/Style/CSS/all-properties
// https://www.w3.org/Style/CSS/all-descriptors
Expand Down Expand Up @@ -43,7 +43,7 @@ from to
animation:;
}

// CSS Backgrounds and Borders Module Level 3 https://www.w3.org/TR/css-backgrounds-3/ 14 February 2023
// CSS Backgrounds and Borders Module Level 3 https://www.w3.org/TR/css-backgrounds-3/ 19 December 2023
// Box model https://www.w3.org/TR/CSS22/box.html
{
background-color: transparent;
Expand Down Expand Up @@ -527,7 +527,7 @@ step-start step-end steps()
}

// CSS Images Module Level 4 https://www.w3.org/TR/css-images-4/ 17 February 2023
// CSS Images Module Level 3 https://www.w3.org/TR/css-images-3/ 17 December 2020
// CSS Images Module Level 3 https://www.w3.org/TR/css-images-3/ 18 December 2023
url() image-set() type()
image() ltr rtl
cross-fade() element()
Expand Down Expand Up @@ -1288,7 +1288,7 @@ view()
transition:;
}

// CSS Values and Units Module Level 4 https://www.w3.org/TR/css-values-4/ 27 October 2023
// CSS Values and Units Module Level 4 https://www.w3.org/TR/css-values-4/ 18 December 2023
// CSS Values and Units Module Level 3 https://www.w3.org/TR/css-values-3/ 01 December 2022
mix()
initial nherit unset
Expand Down Expand Up @@ -1396,12 +1396,12 @@ aural speech
speak-header: once | always;
}

// Compatibility https://compat.spec.whatwg.org/ 27 September 2023
// Compatibility https://compat.spec.whatwg.org/ 10 January 2024
{
touch-action: auto | none | pan-x | pan-left | pan-right | pan-y | pan-up | pan-down | pinch-zoom | manipulation;
}

// Scalable Vector Graphics (SVG) 2 https://www.w3.org/TR/SVG2/ 4 October 2018
// Scalable Vector Graphics (SVG) 2 https://www.w3.org/TR/SVG2/ 04 October 2018
{
inline-size:;
shape-inside: auto;
Expand Down
1 change: 1 addition & 0 deletions tools/lang/Go.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Go 1.21 https://golang.org/
// https://go.dev/ref/spec
// https://github.com/golang/go/blob/master/doc/go_spec.html

//! Keywords
Expand Down
52 changes: 23 additions & 29 deletions tools/lang/html.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
https://whatwg.org/ 16 November 2023
https://whatwg.org/ 12 January 2024
HTML 4.01 https://www.w3.org/TR/html4/ 27 March 2018
XHTML 2.0 https://www.w3.org/TR/xhtml2/ 16 December 2010
-->
Expand All @@ -11,11 +11,11 @@
accesskey
autocapitalize="off none on sentences words characters"
autofocus
contenteditable
contenteditable="true false plaintext-only"
dir="ltr rtl auto"
draggable
enterkeyhint="enter done go next previous search send"
hidden
hidden="hidden until-found"
inert
inputmode="none text tel url email numeric decimal search"
is
Expand All @@ -27,8 +27,8 @@
lang="en"
manifest
nonce
popover popovertarget="toggle show hide" popovertargetaction
spellcheck
popover="auto manual" popovertarget="toggle show hide" popovertargetaction
spellcheck="true false"
style
tabindex
title
Expand All @@ -38,26 +38,19 @@
<title>HTML5</title>
<!-- https://html.spec.whatwg.org/multipage/semantics.html -->
<base href target>
<!-- Link types https://html.spec.whatwg.org/multipage/links.html#linkTypes
alternate canonical author bookmark dns-prefetch external help icon
manifest modulepreload license next nofollow noopener noreferrer opener
pingback preconnect prefetch preload prerender prev search stylesheet tag
-->
<!-- Link types https://html.spec.whatwg.org/multipage/links.html#linkTypes -->
<link href
crossorigin="anonymous use-credentials"
rel="alternate author dns-prefetch help icon license modulepreload next pingback preconnect prefetch preload prerender prev search stylesheet"
rel="alternate canonical author bookmark dns-prefetch external help icon manifest modulepreload license next nofollow noopener noreferrer opener pingback preconnect prefetch preload prerender prev privacy-policy search stylesheet tag terms-of-service"
media integrity hreflang type="text/plain text/css"
referrerpolicy="no-referrer no-referrer-when-downgrade unsafe-url origin-when-cross-origin"
referrerpolicy="no-referrer no-referrer-when-downgrade same-origin origin strict-origin origin-when-cross-origin strict-origin-when-cross-origin unsafe-url"
sizes imagesrcset imagesizes as blocking color disabled
fetchpriority="high low auto">
<!-- Standard metadata names https://html.spec.whatwg.org/multipage/semantics.html#document-metadata#standard-metadata-names
application-name author description generator keywords
referrer[never default always origin-when-crossorigin]
theme-color color-scheme
-->
<meta name http-equiv="content-language content-type default-style refresh set-cookie x-ua-compatible content-security-policy"
content charset="utf-8" media>
<style media blocking type="text/css" title></style>
<!-- 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>
<style media blocking="render" type="text/css" title></style>
</head>
<!-- event handler content attributes https://html.spec.whatwg.org/multipage/dom.html#global-attributes -->
<!-- https://html.spec.whatwg.org/multipage/webappapis.html#events -->
Expand Down Expand Up @@ -167,6 +160,7 @@
onoffline
ononline
onpagehide
onpagereveal
onpageshow
onpopstate
onrejectionhandled
Expand Down Expand Up @@ -210,8 +204,7 @@ <h6></h6>
<!-- Text-level semantics https://html.spec.whatwg.org/multipage/text-level-semantics.html -->
<a href="about:, blob:, data:, http:, https:, mailto:, sms:, urn:, tel:"
target="_blank _self _parent _top" download ping
rel="alternate author bookmark external help license next nofollow noopener noreferrer prev search tag"
rev hreflang type referrerpolicy></a>
rel rev hreflang type referrerpolicy></a>
<em></em>
<strong></strong>
<small></small>
Expand Down Expand Up @@ -245,8 +238,9 @@ <h6></h6>
<del cite datetime></del>
<!-- Embedded content https://html.spec.whatwg.org/multipage/embedded-content.html -->
<picture></picture>
<source src type srcset sizes media width height>
<img alt src srcset sizes crossorigin usemap ismap width height referrerpolicy decoding loading fetchpriority>
<source src type srcset sizes="auto" media width height>
<img alt src srcset sizes crossorigin usemap ismap width height
decoding="sync async auto" loading="lazy eager" fetchpriority>
<!-- https://html.spec.whatwg.org/multipage/iframe-embed-object.html -->
<iframe src srcdoc name sandbox allow allowfullscreen allowpaymentrequest width height referrerpolicy loading></iframe>
<embed src type width height>
Expand Down Expand Up @@ -276,15 +270,15 @@ <h6></h6>
<col span>
</colgroup>
<thead>
<tr><th colspan rowspan headers scope abbr></th></tr>
<tr><th colspan rowspan headers scope="row col rowgroup colgroup auto" abbr></th></tr>
</thead>
<tbody>
<tr><td colspan rowspan headers></td></tr>
</tbody>
<tfoot></tfoot>
</table>
<!-- https://html.spec.whatwg.org/multipage/forms.html -->
<form accept-charset action autocomplete
<form accept-charset action autocomplete="on off"
enctype="application/x-www-form-urlencoded multipart/form-data text/plain" method name novalidate target rel>
<label for></label>
<!-- https://html.spec.whatwg.org/multipage/input.html#the-input-element -->
Expand All @@ -301,7 +295,7 @@ <h6></h6>
</optgroup>
</select>
<datalist></datalist>
<textarea autocomplete cols dirname disabled form maxlength minlength name placeholder readonly required rows wrap></textarea>
<textarea autocomplete cols dirname disabled form maxlength minlength name placeholder readonly required rows wrap="soft hard"></textarea>
<output for form name></output>
<progress value max></progress>
<meter value min max low high optimum></meter>
Expand All @@ -315,7 +309,7 @@ <h6></h6>
<dialog 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 fetchpriority></script>
charset nomodule async defer crossorigin integrity referrerpolicy blocking="render" fetchpriority></script>
<noscript></noscript>
<template shadowrootmode="open closed" shadowrootdelegatesfocus></template>
<slot name></slot>
Expand Down Expand Up @@ -414,7 +408,7 @@ <h1 align></h1>
</ul>
</body>
</html>
<!-- RDFa https://www.w3.org/TR/xhtml-rdfa-primer/ -->
<!-- RDFa https://www.w3.org/TR/xhtml-rdfa-primer/ 17 March 2015 -->
<meta property vocab resource typeof content datatype>
</body>
</html>

0 comments on commit e44ac47

Please sign in to comment.