Subject inspector - #8
Merged
Merged
Conversation
- New inspector drawer (Ⓟ toolbar toggle) shows the RDFa subject in scope at the caret and all of its triples, read-only. Rides local:update-breadcrumb, so it tracks the caret and refreshes after every mutation (annotate/undo route through local:after-mutation). - Port group-sort-triples.xsl to XSLT 3.0 as a local:group-triples() function (xsl:for-each-group; URI subjects before blank nodes, properties sorted). Extract RDF now serializes grouped output — one rdf:Description per subject — instead of the striped one-triple-per-Description form. - Remove the stale Mockup.png prototype screenshot from the demo; repoint the test fixture and the figure-insert test at inline data: images, and drop it from the Pages deploy copy. - New tests/browser/inspector.mjs suite, registered in run.mjs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The context-menu dispatcher scoped edit-mode detection to elements strictly inside the editable block (intersect descendant::*), so a block carrying its own @Property - like the demo's h1[property=dct:title] - was never detected; with no text selected, create mode's non-collapsed guard also failed, so right-click did nothing. Include the block itself when it carries @Property (structural @about/@typeof-only blocks stay in create mode). Remove now strips the RDFa attributes on a block instead of unwrapping it, which would have dissolved the heading. Covered by a new editor.mjs block-annotation test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
No description provided.