xslt-processor 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -144,10 +144,12 @@ is not available such as in Node.js or in web workers.
144
144
  XSLT-processor builds on Google's [AJAXSLT](https://github.com/4031651/ajaxslt) which was written before `XSLTProcessor()` became available in browsers, but the
145
145
  code base has been updated to comply with ES2015+ and to make it work outside of browsers.
146
146
 
147
- This implementation of XSLT operates at the DOM level on its input documents. It internally uses a DOM implementation to create the
148
- output document, but usually returns the output document as text stream. The DOM to construct the output document can be supplied by
149
- the application, or else an internal minimal DOM implementation is used. This DOM comes with a minimal XML parser that can be used to
150
- generate a suitable DOM representation of the input documents if they are present as text.
147
+ This implementation of XSLT operates at the DOM level on its input documents.
148
+ It internally uses a DOM implementation to create the output document, but usually
149
+ returns the output document as text stream. The DOM to construct the output document can
150
+ be supplied by the application, or else an internal minimal DOM implementation is used. This
151
+ DOM comes with a minimal XML parser that can be used to generate a suitable DOM
152
+ representation of the input documents if they are present as text.
151
153
 
152
154
  ## Tests and usage examples
153
155
 
@@ -175,8 +177,12 @@ The implementation is all agnostic about namespaces. It just expects XSLT elemen
175
177
 
176
178
  HTML per se is not strict XML. Because of that, starting on version 2.0.0, this library handles HTML differently than XML:
177
179
 
180
+ - For a document to be treated as HTML, it needs to have a `<!DOCTYPE>` tag defined with one of the following valid formats:
181
+ - `<!DOCTYPE html>` (for HTML5);
182
+ - `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` (for HTML4);
183
+ - `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">` (for XHTML 1.1).
178
184
  - Tags like `<hr>`, `<link>` and `<meta>` don't need to be closed. The output for these tags doesn't close them (adding a `/` before the tag closes, or a corresponding close tag);
179
- - This rule doesn't apply for XHTML, which is strict XML.
185
+ - This rule doesn't apply for XHTML, which is strict XML.
180
186
 
181
187
  ## References
182
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xslt-processor",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "A JavaScript XSLT Processor",
5
5
  "main": "index.js",
6
6
  "module": "index.js",