Repository navigation
docs: close the doc.struct() calls in the structParent accessibility example - #1860
Merged
liborm85 merged 1 commit intoNov 3, 2026
Merged
Conversation
The two section.add(doc.struct('P', () => { ... }); lines in the
accessibility guide are missing a closing parenthesis, so the example
throws a SyntaxError when pasted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Docs fix. In
docs/accessibility.md, the "This is equivalent to:" example after thestructParenttext example has an unbalanced parenthesis on both lines:The
doc.struct(...)call is never closed. This PR adds the missing)to both lines.I checked it against current
master(built withrollup -c):structParentversion above it:Sect→P,Pwith MCIDs 0 and 1. So the "equivalent" claim holds once the syntax is correct.docs/*.md. This was the only real syntax error. The other hits were top-levelawaitin the ES-module examples, which is valid, and the cell-style object intable.md, which is shown as data.Checklist:
One note:
node docs/generate_website.jsstops on unmodifiedmastertoo, at aforms.mdexample (Call document.initForm() method before adding form elements to document). It is unrelated to this change, and I didn't touch it here.Disclosure: I build a hosted document-generation API. Nothing of it is linked or relevant here. I found this while running the docs examples, with help from an AI assistant (Claude Code), and I checked the result myself.