Repository navigation
The canonical form strips active markup in any namespace, and reads URL schemes as the browser does - #36
Open
namedgraph wants to merge 1 commit into
Open
The canonical form strips active markup in any namespace, and reads URL schemes as the browser does#36namedgraph wants to merge 1 commit into
namedgraph wants to merge 1 commit into
Conversation
…RL schemes as the browser does S1 matched script and its kin in the XHTML namespace only, so an svg:script survived; one in no namespace becomes an HTML script once the content is served as HTML. It now matches by local name in any namespace, and takes out frames and SVG's set/animate* too, which can set a link's target. S3 read the scheme after normalize-space(), which turns a tab into a space: "java	script:" became "java script:" and passed, while the browser removes the tab and runs it. It matched @href in no namespace only, so an SVG link's xlink:href passed as well. It now reads the scheme the way the browser does (cm:url-scheme: tabs and line breaks removed, leading spaces trimmed) on href, src, action, formaction, poster and background in any namespace. S2 also strips srcdoc, a frame's inline document. Found by LinkedDataHub's formal model of its XSLT layer (formal/xslt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
S1 matched script and its kin in the XHTML namespace only, so an svg:script
survived; one in no namespace becomes an HTML script once the content is
served as HTML. It now matches by local name in any namespace, and takes out
frames and SVG's set/animate* too, which can set a link's target.
S3 read the scheme after normalize-space(), which turns a tab into a space:
"java script:" became "java script:" and passed, while the browser removes
the tab and runs it. It matched @href in no namespace only, so an SVG link's
xlink:href passed as well. It now reads the scheme the way the browser does
(cm:url-scheme: tabs and line breaks removed, leading spaces trimmed) on
href, src, action, formaction, poster and background in any namespace.
S2 also strips srcdoc, a frame's inline document.
Found by LinkedDataHub's formal model of its XSLT layer (formal/xslt).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com