Describe the bug
The implementation of the method verifying that a MIME type is text/html is named isHTMLMimeType, whereas its type definition is named isHtmlMimeType. This leads to typechecking errors and IDEs autocompleting the name of a non-existing method.
To Reproduce
Compare
|
function isHtmlMimeType(mimeType: string): mimeType is MIME_TYPE.HTML; |
against
|
exports.isHTMLMimeType = conventions.isHTMLMimeType; |
and
|
function isHTMLMimeType(mimeType) { |
Expected behavior
Type definition and implementation should match.
Runtime & Version:
xmldom version: 0.9.0
runtime version: N/A
other related software and version: N/A
Describe the bug
The implementation of the method verifying that a MIME type is
text/htmlis namedisHTMLMimeType, whereas its type definition is namedisHtmlMimeType. This leads to typechecking errors and IDEs autocompleting the name of a non-existing method.To Reproduce
Compare
xmldom/index.d.ts
Line 23 in 4876807
against
xmldom/lib/index.js
Line 5 in 4876807
and
xmldom/lib/conventions.js
Line 278 in 4876807
Expected behavior
Type definition and implementation should match.
Runtime & Version:
xmldom version: 0.9.0
runtime version: N/A
other related software and version: N/A