Skip to content

Add the selectedcontent element, and release C 2.1.0, C# 2.3.0 and JS 1.3.0 - #7

Merged
oklar merged 2 commits into
mainfrom
pr/selectedcontent
Oct 28, 2026
Merged

oklar merged 2 commits into
mainfrom
pr/selectedcontent

Conversation

@oklar

@oklar oklar commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

selectedcontent is the only element in the HTML standard's element index (last updated 26 October 2026) that html.json didn't have. It goes inside a customizable <select>'s <button> and shows a copy of the chosen <option>. Its content model is nothing, but it isn't a void element, so it goes in tags and renders as <selectedcontent></selectedcontent>.

Everything else already matches the spec. The other 112 elements are all there, nothing in html.json has been removed from the spec, and the 13 void elements match the spec's list exactly.

Changes

  • documentation/html.json: added selectedcontent after select
  • Regenerated from it:
    • C: Selectedcontent(...) / SelectedcontentAttr(...) in htmb.h
    • C#: Selectedcontent / SelectedcontentAttr in Htmb.cs
    • JS: selectedcontent in index.js, index.d.ts, index.mjs (named export) and htmb.umd.js
    • c/tests/cases.inc

Testing

  • C tests pass with gcc, and as C++ with g++; the example builds and runs
  • C# tests: 141 passed
  • JS: npm test and npm run test:types pass
  • Running all four generators a second time changes nothing
  • select(button(selectedcontent()), option("A")) gives <select><button><selectedcontent></selectedcontent></button><option>A</option></select> in C and JS

Release

The second commit bumps each library a minor version for the new tag: c/library.json 2.1.0, HtmbLibrary.csproj 2.3.0, package.json 1.3.0. The readme release table, c/README.md and the PlatformIO example pin the new tags. After merging, the merge commit gets tagged c-v2.1.0, cs-v2.3.0 and js-v1.3.0. cs-v2.3.0 is also the first NuGet release that lists the author as Larsenq.

🤖 Generated with Claude Code

oklar and others added 2 commits October 28, 2026 19:32
selectedcontent is the one element in the HTML standard's element index
that html.json didn't have. It goes inside a customizable select's
button and shows a copy of the chosen option. It has no content but
still needs an end tag, so it's in "tags", not "tagsVoid".

Regenerated from html.json: Selectedcontent in C and C#, and
selectedcontent in JavaScript (index.js, index.d.ts, index.mjs and
htmb.umd.js). The shared tests now check it in all three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each adds the selectedcontent tag, so each is a minor version. The
readme's release table, c/README.md and the PlatformIO example pin the
new tags, and the readme's tagging example moves on to js-v1.4.0 so it
names a version that doesn't exist yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oklar oklar changed the title Add the selectedcontent element to every library Add the selectedcontent element, and release C 2.1.0, C# 2.3.0 and JS 1.3.0 Oct 28, 2026
@oklar
oklar merged commit 708a877 into main Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant