From e9dc4bb20404037cf192c19f00a010ff3bb1a10b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 23 Jun 2025 11:12:58 +0200 Subject: Typed HTML API (#6476) --- crates/typst-utils/src/pico.rs | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'crates/typst-utils') diff --git a/crates/typst-utils/src/pico.rs b/crates/typst-utils/src/pico.rs index 3aa4570f..9f4a2fde 100644 --- a/crates/typst-utils/src/pico.rs +++ b/crates/typst-utils/src/pico.rs @@ -204,18 +204,70 @@ mod exceptions { use std::cmp::Ordering; /// A global list of non-bitcode-encodable compile-time internible strings. + /// + /// Must be sorted. pub const LIST: &[&str] = &[ + "accept-charset", + "allowfullscreen", + "aria-activedescendant", + "aria-autocomplete", + "aria-colcount", + "aria-colindex", + "aria-controls", + "aria-describedby", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-haspopup", + "aria-keyshortcuts", + "aria-labelledby", + "aria-multiline", + "aria-multiselectable", + "aria-orientation", + "aria-placeholder", + "aria-posinset", + "aria-readonly", + "aria-relevant", + "aria-required", + "aria-roledescription", + "aria-rowcount", + "aria-rowindex", + "aria-selected", + "aria-valuemax", + "aria-valuemin", + "aria-valuenow", + "aria-valuetext", + "autocapitalize", "cjk-latin-spacing", + "contenteditable", "discretionary-ligatures", + "fetchpriority", + "formnovalidate", "h5", "h6", "historical-ligatures", "number-clearance", "number-margin", "numbering-scope", + "onbeforeprint", + "onbeforeunload", + "onlanguagechange", + "onmessageerror", + "onrejectionhandled", + "onunhandledrejection", "page-numbering", "par-line-marker", + "popovertarget", + "popovertargetaction", + "referrerpolicy", + "shadowrootclonable", + "shadowrootcustomelementregistry", + "shadowrootdelegatesfocus", + "shadowrootmode", + "shadowrootserializable", "transparentize", + "writingsuggestions", ]; /// Try to find the index of an exception if it exists. -- cgit v1.2.3