-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: syntax errors in JS example sections (v3) #18307
Changes from 5 commits
6d89fa5
389544f
7cf3df5
578aa3e
b9248c9
420add4
4bcb3aa
15d4576
5f6d171
9012dc3
2af83e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ The [x](https://svgwg.org/svg2-draft/geometry.html#XProperty) property describes | |
|
||
A \<coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the relevant axis (the x-axis for X coordinates, the y-axis for Y coordinates). Its syntax is the same as that for [\<length>](https://www.w3.org/TR/SVG11/types.html#DataTypeLength) | ||
|
||
```js | ||
```go | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This entire code block seems to be taken from svgo: |
||
// Rect draws a rectangle with upper left-hand corner at x,y, with width w, and height h, with optional style | ||
// Standard Reference: http://www.w3.org/TR/SVG11/shapes.html#RectElement | ||
func (svg *SVG) Rect(x float64, y float64, w float64, h float64, s ...string) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ The constant `sanitized` is an object created via a Trusted Types policy. | |
|
||
```js | ||
const sanitized = scriptPolicy.createScriptURL("https://example.com/my-script.js"); | ||
console.log(sanitized;) /* a TrustedScriptURL object */ | ||
console.log(sanitize); /* a TrustedScriptURL object */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't it be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, you're absolutely right. One backspace too much 😅 |
||
``` | ||
|
||
## Specifications | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example taken from https://streams.spec.whatwg.org/#example-simple-queuing-strategy