@@ -142,31 +142,31 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
142142 }
143143
144144 /**
145- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
146- * @param {LiteElement } node The node to add a text element to
147- * @param {string } text The text for the text node
148- * @return {LiteText } The text element
145+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
146+ * @param {LiteElement } node The node to add a text element to
147+ * @param {string } text The text for the text node
148+ * @return {LiteText } The text element
149149 */
150150 protected addText ( adaptor : LiteAdaptor , node : LiteElement , text : string ) {
151151 text = Entities . translate ( text ) ;
152152 return adaptor . append ( node , adaptor . text ( text ) ) as LiteText ;
153153 }
154154
155155 /**
156- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
157- * @param {LiteElement } node The node to add a comment to
158- * @param {string } comment The text for the comment node
159- * @return {LiteText } The comment element
156+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
157+ * @param {LiteElement } node The node to add a comment to
158+ * @param {string } comment The text for the comment node
159+ * @return {LiteText } The comment element
160160 */
161161 protected addComment ( adaptor : LiteAdaptor , node : LiteElement , comment : string ) {
162162 return adaptor . append ( node , new LiteComment ( comment ) ) as LiteComment ;
163163 }
164164
165165 /**
166- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
167- * @param {LiteElement } node The node to close
168- * @param {string } tag The close tag being processed
169- * @return {LiteElement } The first unclosed parent node
166+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
167+ * @param {LiteElement } node The node to close
168+ * @param {string } tag The close tag being processed
169+ * @return {LiteElement } The first unclosed parent node
170170 */
171171 protected closeTag ( adaptor : LiteAdaptor , node : LiteElement , tag : string ) {
172172 const kind = tag . slice ( 2 , tag . length - 1 ) . toLowerCase ( ) ;
@@ -177,11 +177,11 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
177177 }
178178
179179 /**
180- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
181- * @param {LiteElement } node The parent node for the tag
182- * @param {string } tag The tag being processed
183- * @param {string[] } parts The rest of the text/tag array
184- * @return {LiteElement } The node to which the next tag will be added
180+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
181+ * @param {LiteElement } node The parent node for the tag
182+ * @param {string } tag The tag being processed
183+ * @param {string[] } parts The rest of the text/tag array
184+ * @return {LiteElement } The node to which the next tag will be added
185185 */
186186 protected openTag ( adaptor : LiteAdaptor , node : LiteElement , tag : string , parts : string [ ] ) {
187187 const PCDATA = ( this . constructor as typeof LiteParser ) . PCDATA ;
@@ -223,9 +223,9 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
223223 }
224224
225225 /**
226- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
227- * @param {LiteElement } node The node getting the attributes
228- * @param {string[] } attributes The array of space, name, value1, value2, value3
226+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
227+ * @param {LiteElement } node The node getting the attributes
228+ * @param {string[] } attributes The array of space, name, value1, value2, value3
229229 * as described above.
230230 */
231231 protected addAttributes ( adaptor : LiteAdaptor , node : LiteElement , attributes : string [ ] ) {
@@ -241,10 +241,10 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
241241 }
242242
243243 /**
244- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
245- * @param {LiteElement } node The node whose PCDATA content is being collected
246- * @param {string } kind The tag name being handled
247- * @param {string[] } parts The array of text/tag data for the document
244+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
245+ * @param {LiteElement } node The node whose PCDATA content is being collected
246+ * @param {string } kind The tag name being handled
247+ * @param {string[] } parts The array of text/tag data for the document
248248 */
249249 protected handlePCDATA ( adaptor : LiteAdaptor , node : LiteElement , kind : string , parts : string [ ] ) {
250250 const pcdata = [ ] as string [ ] ;
@@ -271,8 +271,8 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
271271 * tags into the document structure. That way, you can parse fragements or
272272 * full documents and still get a valid document.
273273 *
274- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
275- * @param {LiteDocuemnt } root The document being checked
274+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
275+ * @param {LiteDocuemnt } root The document being checked
276276 */
277277 protected checkDocument ( adaptor : LiteAdaptor , root : LiteDocument ) {
278278 if ( adaptor . childNodes ( adaptor . body ( root ) ) . length !== 1 ) return ;
@@ -316,9 +316,9 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
316316 }
317317
318318 /**
319- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
320- * @param {LiteElement } node The node to serialize
321- * @return {string } The serialized element (like outerHTML)
319+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
320+ * @param {LiteElement } node The node to serialize
321+ * @return {string } The serialized element (like outerHTML)
322322 */
323323 public serialize ( adaptor : LiteAdaptor , node : LiteElement ) {
324324 const SELF_CLOSING = ( this . constructor as typeof LiteParser ) . SELF_CLOSING ;
@@ -334,9 +334,9 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
334334 }
335335
336336 /**
337- * @param {LiteAdaptor } adaptor The adaptor for managing nodes
338- * @param {LiteElement } node The node whose innerHTML is needed
339- * @return {string } The serialized element (like innerHTML)
337+ * @param {LiteAdaptor } adaptor The adaptor for managing nodes
338+ * @param {LiteElement } node The node whose innerHTML is needed
339+ * @return {string } The serialized element (like innerHTML)
340340 */
341341 public serializeInner ( adaptor : LiteAdaptor , node : LiteElement ) {
342342 return adaptor . childNodes ( node ) . map ( x => {
@@ -348,16 +348,16 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
348348 }
349349
350350 /**
351- * @param {string } text The attribute value to be HTML escaped
352- * @return {string } The string with " replaced by entities
351+ * @param {string } text The attribute value to be HTML escaped
352+ * @return {string } The string with " replaced by entities
353353 */
354354 public protectAttribute ( text : string ) {
355355 return text . replace ( / " / , '"' ) ;
356356 }
357357
358358 /**
359- * @param {string } text The text to be HTML escaped
360- * @return {string } The string with &, <, and > replaced by entities
359+ * @param {string } text The text to be HTML escaped
360+ * @return {string } The string with &, <, and > replaced by entities
361361 */
362362 public protectHTML ( text : string ) {
363363 return text . replace ( / & / g, '&' )
0 commit comments