alchemrest 3.3.0 → 3.4.0

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.
@@ -8,58 +8,58 @@
8
8
  # source://loofah//lib/loofah.rb#5
9
9
  module Loofah
10
10
  class << self
11
- # source://loofah//lib/loofah.rb#76
11
+ # source://loofah//lib/loofah.rb#70
12
12
  def document(*args, &block); end
13
13
 
14
- # source://loofah//lib/loofah.rb#83
14
+ # source://loofah//lib/loofah.rb#77
15
15
  def fragment(*args, &block); end
16
16
 
17
- # source://loofah//lib/loofah.rb#76
17
+ # source://loofah//lib/loofah.rb#70
18
18
  def html4_document(*args, &block); end
19
19
 
20
- # source://loofah//lib/loofah.rb#83
20
+ # source://loofah//lib/loofah.rb#77
21
21
  def html4_fragment(*args, &block); end
22
22
 
23
- # source://loofah//lib/loofah.rb#101
23
+ # source://loofah//lib/loofah.rb#95
24
24
  def html5_document(*args, &block); end
25
25
 
26
- # source://loofah//lib/loofah.rb#108
26
+ # source://loofah//lib/loofah.rb#102
27
27
  def html5_fragment(*args, &block); end
28
28
 
29
29
  # source://loofah//lib/loofah.rb#7
30
30
  def html5_support?; end
31
31
 
32
- # source://loofah//lib/loofah.rb#169
32
+ # source://loofah//lib/loofah.rb#163
33
33
  def remove_extraneous_whitespace(string); end
34
34
 
35
- # source://loofah//lib/loofah.rb#88
35
+ # source://loofah//lib/loofah.rb#82
36
36
  def scrub_document(string_or_io, method); end
37
37
 
38
- # source://loofah//lib/loofah.rb#93
38
+ # source://loofah//lib/loofah.rb#87
39
39
  def scrub_fragment(string_or_io, method); end
40
40
 
41
- # source://loofah//lib/loofah.rb#88
41
+ # source://loofah//lib/loofah.rb#82
42
42
  def scrub_html4_document(string_or_io, method); end
43
43
 
44
- # source://loofah//lib/loofah.rb#93
44
+ # source://loofah//lib/loofah.rb#87
45
45
  def scrub_html4_fragment(string_or_io, method); end
46
46
 
47
- # source://loofah//lib/loofah.rb#113
47
+ # source://loofah//lib/loofah.rb#107
48
48
  def scrub_html5_document(string_or_io, method); end
49
49
 
50
- # source://loofah//lib/loofah.rb#118
50
+ # source://loofah//lib/loofah.rb#112
51
51
  def scrub_html5_fragment(string_or_io, method); end
52
52
 
53
- # source://loofah//lib/loofah.rb#164
53
+ # source://loofah//lib/loofah.rb#158
54
54
  def scrub_xml_document(string_or_io, method); end
55
55
 
56
- # source://loofah//lib/loofah.rb#159
56
+ # source://loofah//lib/loofah.rb#153
57
57
  def scrub_xml_fragment(string_or_io, method); end
58
58
 
59
- # source://loofah//lib/loofah.rb#147
59
+ # source://loofah//lib/loofah.rb#141
60
60
  def xml_document(*args, &block); end
61
61
 
62
- # source://loofah//lib/loofah.rb#154
62
+ # source://loofah//lib/loofah.rb#148
63
63
  def xml_fragment(*args, &block); end
64
64
  end
65
65
  end
@@ -94,7 +94,7 @@ Loofah::Elements::STRICT_BLOCK_LEVEL_HTML4 = T.let(T.unsafe(nil), Set)
94
94
  # source://loofah//lib/loofah/elements.rb#35
95
95
  Loofah::Elements::STRICT_BLOCK_LEVEL_HTML5 = T.let(T.unsafe(nil), Set)
96
96
 
97
- # source://loofah//lib/loofah.rb#70
97
+ # source://loofah//lib/loofah.rb#64
98
98
  Loofah::HTML = Loofah::HTML4
99
99
 
100
100
  # source://loofah//lib/loofah/html4/document.rb#4
@@ -141,58 +141,58 @@ module Loofah::HTML5::SafeList; end
141
141
  # source://loofah//lib/loofah/html5/safelist.rb#232
142
142
  Loofah::HTML5::SafeList::ACCEPTABLE_ATTRIBUTES = T.let(T.unsafe(nil), Set)
143
143
 
144
- # source://loofah//lib/loofah/html5/safelist.rb#743
144
+ # source://loofah//lib/loofah/html5/safelist.rb#744
145
145
  Loofah::HTML5::SafeList::ACCEPTABLE_CSS_COLORS = T.let(T.unsafe(nil), Set)
146
146
 
147
- # source://loofah//lib/loofah/html5/safelist.rb#763
147
+ # source://loofah//lib/loofah/html5/safelist.rb#764
148
148
  Loofah::HTML5::SafeList::ACCEPTABLE_CSS_EXTENDED_COLORS = T.let(T.unsafe(nil), Set)
149
149
 
150
- # source://loofah//lib/loofah/html5/safelist.rb#915
150
+ # source://loofah//lib/loofah/html5/safelist.rb#916
151
151
  Loofah::HTML5::SafeList::ACCEPTABLE_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
152
152
 
153
- # source://loofah//lib/loofah/html5/safelist.rb#704
153
+ # source://loofah//lib/loofah/html5/safelist.rb#705
154
154
  Loofah::HTML5::SafeList::ACCEPTABLE_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
155
155
 
156
- # source://loofah//lib/loofah/html5/safelist.rb#631
156
+ # source://loofah//lib/loofah/html5/safelist.rb#632
157
157
  Loofah::HTML5::SafeList::ACCEPTABLE_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
158
158
 
159
159
  # source://loofah//lib/loofah/html5/safelist.rb#50
160
160
  Loofah::HTML5::SafeList::ACCEPTABLE_ELEMENTS = T.let(T.unsafe(nil), Set)
161
161
 
162
- # source://loofah//lib/loofah/html5/safelist.rb#988
162
+ # source://loofah//lib/loofah/html5/safelist.rb#989
163
163
  Loofah::HTML5::SafeList::ACCEPTABLE_PROTOCOLS = T.let(T.unsafe(nil), Set)
164
164
 
165
- # source://loofah//lib/loofah/html5/safelist.rb#975
165
+ # source://loofah//lib/loofah/html5/safelist.rb#976
166
166
  Loofah::HTML5::SafeList::ACCEPTABLE_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
167
167
 
168
- # source://loofah//lib/loofah/html5/safelist.rb#1018
168
+ # source://loofah//lib/loofah/html5/safelist.rb#1019
169
169
  Loofah::HTML5::SafeList::ACCEPTABLE_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
170
170
 
171
- # source://loofah//lib/loofah/html5/safelist.rb#1028
171
+ # source://loofah//lib/loofah/html5/safelist.rb#1029
172
172
  Loofah::HTML5::SafeList::ALLOWED_ATTRIBUTES = T.let(T.unsafe(nil), Set)
173
173
 
174
- # source://loofah//lib/loofah/html5/safelist.rb#1031
174
+ # source://loofah//lib/loofah/html5/safelist.rb#1032
175
175
  Loofah::HTML5::SafeList::ALLOWED_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
176
176
 
177
- # source://loofah//lib/loofah/html5/safelist.rb#1030
177
+ # source://loofah//lib/loofah/html5/safelist.rb#1031
178
178
  Loofah::HTML5::SafeList::ALLOWED_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
179
179
 
180
- # source://loofah//lib/loofah/html5/safelist.rb#1029
180
+ # source://loofah//lib/loofah/html5/safelist.rb#1030
181
181
  Loofah::HTML5::SafeList::ALLOWED_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
182
182
 
183
- # source://loofah//lib/loofah/html5/safelist.rb#1027
183
+ # source://loofah//lib/loofah/html5/safelist.rb#1028
184
184
  Loofah::HTML5::SafeList::ALLOWED_ELEMENTS = T.let(T.unsafe(nil), Set)
185
185
 
186
- # source://loofah//lib/loofah/html5/safelist.rb#1052
186
+ # source://loofah//lib/loofah/html5/safelist.rb#1053
187
187
  Loofah::HTML5::SafeList::ALLOWED_ELEMENTS_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
188
188
 
189
- # source://loofah//lib/loofah/html5/safelist.rb#1033
189
+ # source://loofah//lib/loofah/html5/safelist.rb#1034
190
190
  Loofah::HTML5::SafeList::ALLOWED_PROTOCOLS = T.let(T.unsafe(nil), Set)
191
191
 
192
- # source://loofah//lib/loofah/html5/safelist.rb#1032
192
+ # source://loofah//lib/loofah/html5/safelist.rb#1033
193
193
  Loofah::HTML5::SafeList::ALLOWED_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
194
194
 
195
- # source://loofah//lib/loofah/html5/safelist.rb#1034
195
+ # source://loofah//lib/loofah/html5/safelist.rb#1035
196
196
  Loofah::HTML5::SafeList::ALLOWED_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
197
197
 
198
198
  # source://loofah//lib/loofah/html5/safelist.rb#526
@@ -207,10 +207,10 @@ Loofah::HTML5::SafeList::MATHML_ATTRIBUTES = T.let(T.unsafe(nil), Set)
207
207
  # source://loofah//lib/loofah/html5/safelist.rb#147
208
208
  Loofah::HTML5::SafeList::MATHML_ELEMENTS = T.let(T.unsafe(nil), Set)
209
209
 
210
- # source://loofah//lib/loofah/html5/safelist.rb#986
210
+ # source://loofah//lib/loofah/html5/safelist.rb#987
211
211
  Loofah::HTML5::SafeList::PROTOCOL_SEPARATOR = T.let(T.unsafe(nil), Regexp)
212
212
 
213
- # source://loofah//lib/loofah/html5/safelist.rb#968
213
+ # source://loofah//lib/loofah/html5/safelist.rb#969
214
214
  Loofah::HTML5::SafeList::SHORTHAND_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
215
215
 
216
216
  # source://loofah//lib/loofah/html5/safelist.rb#613
@@ -228,54 +228,63 @@ Loofah::HTML5::SafeList::SVG_ELEMENTS = T.let(T.unsafe(nil), Set)
228
228
  # source://loofah//lib/loofah/html5/safelist.rb#608
229
229
  Loofah::HTML5::SafeList::SVG_HREF_ATTRIBUTES = T.let(T.unsafe(nil), Set)
230
230
 
231
- # source://loofah//lib/loofah/html5/safelist.rb#1047
231
+ # source://loofah//lib/loofah/html5/safelist.rb#1048
232
232
  Loofah::HTML5::SafeList::TAGS_SAFE_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
233
233
 
234
- # source://loofah//lib/loofah/html5/safelist.rb#1038
234
+ # source://loofah//lib/loofah/html5/safelist.rb#1039
235
235
  Loofah::HTML5::SafeList::VOID_ELEMENTS = T.let(T.unsafe(nil), Set)
236
236
 
237
237
  # source://loofah//lib/loofah/html5/scrub.rb#9
238
238
  module Loofah::HTML5::Scrub
239
239
  class << self
240
- # source://loofah//lib/loofah/html5/scrub.rb#56
240
+ # source://loofah//lib/loofah/html5/scrub.rb#66
241
241
  def allowed_element?(element_name); end
242
242
 
243
- # source://loofah//lib/loofah/html5/scrub.rb#182
243
+ # source://loofah//lib/loofah/html5/scrub.rb#230
244
244
  def allowed_uri?(uri_string); end
245
245
 
246
- # source://loofah//lib/loofah/html5/scrub.rb#266
246
+ # source://loofah//lib/loofah/html5/scrub.rb#325
247
247
  def cdata_escape(node); end
248
248
 
249
- # source://loofah//lib/loofah/html5/scrub.rb#261
249
+ # source://loofah//lib/loofah/html5/scrub.rb#320
250
250
  def cdata_needs_escaping?(node); end
251
251
 
252
- # source://loofah//lib/loofah/html5/scrub.rb#206
252
+ # source://loofah//lib/loofah/html5/scrub.rb#194
253
+ def css_property_unsafe?(node); end
254
+
255
+ # source://loofah//lib/loofah/html5/scrub.rb#265
253
256
  def decode_numeric_character_references(string); end
254
257
 
255
- # source://loofah//lib/loofah/html5/scrub.rb#281
258
+ # source://loofah//lib/loofah/html5/scrub.rb#340
256
259
  def escape_tags(string); end
257
260
 
258
- # source://loofah//lib/loofah/html5/scrub.rb#240
261
+ # source://loofah//lib/loofah/html5/scrub.rb#299
259
262
  def force_correct_attribute_escaping!(node); end
260
263
 
261
- # source://loofah//lib/loofah/html5/scrub.rb#161
264
+ # source://loofah//lib/loofah/html5/scrub.rb#99
265
+ def prefixed_attribute_name(attr_node); end
266
+
267
+ # source://loofah//lib/loofah/html5/scrub.rb#209
262
268
  def scrub_attribute_that_allows_local_ref(attr_node); end
263
269
 
264
- # source://loofah//lib/loofah/html5/scrub.rb#61
270
+ # source://loofah//lib/loofah/html5/scrub.rb#110
271
+ def scrub_attribute_value(node, attr_node, attr_name = T.unsafe(nil)); end
272
+
273
+ # source://loofah//lib/loofah/html5/scrub.rb#71
265
274
  def scrub_attributes(node); end
266
275
 
267
- # source://loofah//lib/loofah/html5/scrub.rb#110
276
+ # source://loofah//lib/loofah/html5/scrub.rb#136
268
277
  def scrub_css(style); end
269
278
 
270
- # source://loofah//lib/loofah/html5/scrub.rb#105
279
+ # source://loofah//lib/loofah/html5/scrub.rb#131
271
280
  def scrub_css_attribute(node); end
272
281
 
273
- # source://loofah//lib/loofah/html5/scrub.rb#226
282
+ # source://loofah//lib/loofah/html5/scrub.rb#285
274
283
  def scrub_uri_attribute(attr_node); end
275
284
 
276
285
  private
277
286
 
278
- # source://loofah//lib/loofah/html5/scrub.rb#307
287
+ # source://loofah//lib/loofah/html5/scrub.rb#366
279
288
  def data_uri_mediatype(uri_string); end
280
289
  end
281
290
  end
@@ -295,25 +304,34 @@ Loofah::HTML5::Scrub::CSS_KEYWORDISH = T.let(T.unsafe(nil), Regexp)
295
304
  # source://loofah//lib/loofah/html5/scrub.rb#15
296
305
  Loofah::HTML5::Scrub::CSS_PROPERTY_STRING_WITHOUT_EMBEDDED_QUOTES = T.let(T.unsafe(nil), Regexp)
297
306
 
307
+ # source://loofah//lib/loofah/html5/scrub.rb#16
308
+ Loofah::HTML5::Scrub::CSS_URLISH_NODES = T.let(T.unsafe(nil), Array)
309
+
298
310
  # source://loofah//lib/loofah/html5/scrub.rb#14
299
311
  Loofah::HTML5::Scrub::CSS_WHITESPACE = T.let(T.unsafe(nil), String)
300
312
 
301
- # source://loofah//lib/loofah/html5/scrub.rb#16
313
+ # source://loofah//lib/loofah/html5/scrub.rb#17
302
314
  Loofah::HTML5::Scrub::DATA_ATTRIBUTE_NAME = T.let(T.unsafe(nil), Regexp)
303
315
 
304
- # source://loofah//lib/loofah/html5/scrub.rb#43
316
+ # source://loofah//lib/loofah/html5/scrub.rb#44
305
317
  Loofah::HTML5::Scrub::DATA_URI_MEDIATYPE = T.let(T.unsafe(nil), Regexp)
306
318
 
307
- # source://loofah//lib/loofah/html5/scrub.rb#20
319
+ # source://loofah//lib/loofah/html5/scrub.rb#63
320
+ Loofah::HTML5::Scrub::DELIMITER_CHARACTER_REFERENCE = T.let(T.unsafe(nil), Regexp)
321
+
322
+ # source://loofah//lib/loofah/html5/scrub.rb#62
323
+ Loofah::HTML5::Scrub::DELIMITER_CHARACTER_REFERENCES = T.let(T.unsafe(nil), Hash)
324
+
325
+ # source://loofah//lib/loofah/html5/scrub.rb#21
308
326
  Loofah::HTML5::Scrub::NUMERIC_CHARACTER_REFERENCE = T.let(T.unsafe(nil), Regexp)
309
327
 
310
- # source://loofah//lib/loofah/html5/scrub.rb#26
328
+ # source://loofah//lib/loofah/html5/scrub.rb#27
311
329
  Loofah::HTML5::Scrub::URI_PROTOCOL_REGEX = T.let(T.unsafe(nil), Regexp)
312
330
 
313
- # source://loofah//lib/loofah/html5/scrub.rb#53
331
+ # source://loofah//lib/loofah/html5/scrub.rb#54
314
332
  Loofah::HTML5::Scrub::WHITESPACE_CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
315
333
 
316
- # source://loofah//lib/loofah/html5/safelist.rb#1055
334
+ # source://loofah//lib/loofah/html5/safelist.rb#1056
317
335
  Loofah::HTML5::WhiteList = Loofah::HTML5::SafeList
318
336
 
319
337
  # source://loofah//lib/loofah/concerns.rb#133
@@ -449,22 +467,22 @@ class Loofah::ScrubberNotFound < ::RuntimeError; end
449
467
  # source://loofah//lib/loofah/scrubbers.rb#104
450
468
  module Loofah::Scrubbers
451
469
  class << self
452
- # source://loofah//lib/loofah/scrubbers.rb#425
470
+ # source://loofah//lib/loofah/scrubbers.rb#426
453
471
  def scrubber_symbols; end
454
472
  end
455
473
  end
456
474
 
457
- # source://loofah//lib/loofah/scrubbers.rb#362
475
+ # source://loofah//lib/loofah/scrubbers.rb#366
458
476
  class Loofah::Scrubbers::DoubleBreakpoint < ::Loofah::Scrubber
459
- # source://loofah//lib/loofah/scrubbers.rb#363
477
+ # source://loofah//lib/loofah/scrubbers.rb#367
460
478
  def initialize; end
461
479
 
462
- # source://loofah//lib/loofah/scrubbers.rb#367
480
+ # source://loofah//lib/loofah/scrubbers.rb#372
463
481
  def scrub(node); end
464
482
 
465
483
  private
466
484
 
467
- # source://loofah//lib/loofah/scrubbers.rb#400
485
+ # source://loofah//lib/loofah/scrubbers.rb#401
468
486
  def remove_blank_text_nodes(node); end
469
487
  end
470
488
 
@@ -477,42 +495,42 @@ class Loofah::Scrubbers::Escape < ::Loofah::Scrubber
477
495
  def scrub(node); end
478
496
  end
479
497
 
480
- # source://loofah//lib/loofah/scrubbers.rb#407
498
+ # source://loofah//lib/loofah/scrubbers.rb#408
481
499
  Loofah::Scrubbers::MAP = T.let(T.unsafe(nil), Hash)
482
500
 
483
- # source://loofah//lib/loofah/scrubbers.rb#307
501
+ # source://loofah//lib/loofah/scrubbers.rb#311
484
502
  class Loofah::Scrubbers::NewlineBlockElements < ::Loofah::Scrubber
485
- # source://loofah//lib/loofah/scrubbers.rb#308
503
+ # source://loofah//lib/loofah/scrubbers.rb#312
486
504
  def initialize; end
487
505
 
488
- # source://loofah//lib/loofah/scrubbers.rb#312
506
+ # source://loofah//lib/loofah/scrubbers.rb#316
489
507
  def scrub(node); end
490
508
  end
491
509
 
492
- # source://loofah//lib/loofah/scrubbers.rb#220
510
+ # source://loofah//lib/loofah/scrubbers.rb#224
493
511
  class Loofah::Scrubbers::NoFollow < ::Loofah::Scrubber
494
- # source://loofah//lib/loofah/scrubbers.rb#221
512
+ # source://loofah//lib/loofah/scrubbers.rb#225
495
513
  def initialize; end
496
514
 
497
- # source://loofah//lib/loofah/scrubbers.rb#225
515
+ # source://loofah//lib/loofah/scrubbers.rb#229
498
516
  def scrub(node); end
499
517
  end
500
518
 
501
- # source://loofah//lib/loofah/scrubbers.rb#271
519
+ # source://loofah//lib/loofah/scrubbers.rb#275
502
520
  class Loofah::Scrubbers::NoOpener < ::Loofah::Scrubber
503
- # source://loofah//lib/loofah/scrubbers.rb#272
521
+ # source://loofah//lib/loofah/scrubbers.rb#276
504
522
  def initialize; end
505
523
 
506
- # source://loofah//lib/loofah/scrubbers.rb#276
524
+ # source://loofah//lib/loofah/scrubbers.rb#280
507
525
  def scrub(node); end
508
526
  end
509
527
 
510
- # source://loofah//lib/loofah/scrubbers.rb#293
528
+ # source://loofah//lib/loofah/scrubbers.rb#297
511
529
  class Loofah::Scrubbers::NoReferrer < ::Loofah::Scrubber
512
- # source://loofah//lib/loofah/scrubbers.rb#294
530
+ # source://loofah//lib/loofah/scrubbers.rb#298
513
531
  def initialize; end
514
532
 
515
- # source://loofah//lib/loofah/scrubbers.rb#298
533
+ # source://loofah//lib/loofah/scrubbers.rb#302
516
534
  def scrub(node); end
517
535
  end
518
536
 
@@ -534,21 +552,21 @@ class Loofah::Scrubbers::Strip < ::Loofah::Scrubber
534
552
  def scrub(node); end
535
553
  end
536
554
 
537
- # source://loofah//lib/loofah/scrubbers.rb#246
555
+ # source://loofah//lib/loofah/scrubbers.rb#250
538
556
  class Loofah::Scrubbers::TargetBlank < ::Loofah::Scrubber
539
- # source://loofah//lib/loofah/scrubbers.rb#247
557
+ # source://loofah//lib/loofah/scrubbers.rb#251
540
558
  def initialize; end
541
559
 
542
- # source://loofah//lib/loofah/scrubbers.rb#251
560
+ # source://loofah//lib/loofah/scrubbers.rb#255
543
561
  def scrub(node); end
544
562
  end
545
563
 
546
- # source://loofah//lib/loofah/scrubbers.rb#340
564
+ # source://loofah//lib/loofah/scrubbers.rb#344
547
565
  class Loofah::Scrubbers::Unprintable < ::Loofah::Scrubber
548
- # source://loofah//lib/loofah/scrubbers.rb#341
566
+ # source://loofah//lib/loofah/scrubbers.rb#345
549
567
  def initialize; end
550
568
 
551
- # source://loofah//lib/loofah/scrubbers.rb#345
569
+ # source://loofah//lib/loofah/scrubbers.rb#349
552
570
  def scrub(node); end
553
571
  end
554
572