Skip to content

Commit

Permalink
docs: Tweak doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
karfau committed Feb 28, 2022
1 parent 2c3fe05 commit 973a6da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions lib/conventions.js
Expand Up @@ -9,7 +9,7 @@
*
* @template T
* @param {T} object the object to freeze
* @param {Pick<ObjectConstructor, 'freeze'> = Object} oc `Object` by default,
* @param {Pick<ObjectConstructor, 'freeze'>} [oc=Object] `Object` by default,
* allows to inject custom object constructor for tests
* @returns {Readonly<T>}
*
Expand Down Expand Up @@ -72,10 +72,11 @@ var MIME_TYPE = freeze({
* @param {string} [value]
* @returns {boolean}
*
* @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration
* @see https://en.wikipedia.org/wiki/HTML Wikipedia
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
* @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
* @see [IANA MimeType registration](https://www.iana.org/assignments/media-types/text/html)
* @see [Wikipedia](https://en.wikipedia.org/wiki/HTML)
* @see [`DOMParser.parseFromString` @ MDN](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString)
* @see [`DOMParser.parseFromString` @ HTML Specification](https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring)
*/
isHTML: function (value) {
return value === MIME_TYPE.HTML
},
Expand Down
2 changes: 1 addition & 1 deletion lib/dom-parser.js
Expand Up @@ -14,7 +14,7 @@ var ParseError = sax.ParseError;
var XMLReader = sax.XMLReader;

/**
* Normalizes line ending according to https://www.w3.org/TR/xml11/#sec-line-ends:
* Normalizes line ending according to <https://www.w3.org/TR/xml11/#sec-line-ends>:
*
* > XML parsed entities are often stored in computer files which,
* > for editing convenience, are organized into lines.
Expand Down

0 comments on commit 973a6da

Please sign in to comment.