Skip to content

Commit cb56001

Browse files
chore(release): 4.18.0 [skip ci]
# [4.18.0](v4.17.0...v4.18.0) (2024-11-01) ### Bug Fixes * Adjust Core.AllowHostnameUnderscore to consider that "_" is defined as Unreserved Characters in RFC 3986 ([#406](#406)) ([d9fbef8](d9fbef8)) * Avoid a deprecated error when the attribute name is numeric and DirectLex is used ([#412](#412)) ([f0fbf51](f0fbf51)) * checking that node has property name ([#399](#399)) ([9ca5a36](9ca5a36)) * Ignore conditional comments ([#401](#401)) ([4828fdf](4828fdf)) * Support PHP 8.4 ([#396](#396)) ([92da247](92da247)) * undefined array key warning ([#419](#419)) ([01be377](01be377)) ### Features * Add allowfullscreen attr for iframe ([#411](#411)) ([70754a2](70754a2)) * add directive for removing blank nodes ([#404](#404)) ([c9d60c9](c9d60c9)) * Add support for CSS aspect-ratio ([#408](#408)) ([93bee73](93bee73)) * Allow universal CSS values for all properties ([#410](#410)) ([9723267](9723267))
1 parent 01be377 commit cb56001

File tree

8 files changed

+59
-29
lines changed

8 files changed

+59
-29
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PROJECT_NAME = HTMLPurifier
3131
# This could be handy for archiving the generated documentation or
3232
# if some version control system is used.
3333

34-
PROJECT_NUMBER = 4.17.0
34+
PROJECT_NUMBER = 4.18.0
3535

3636
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
3737
# base path where the generated documentation will be put.

NEWS

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# [4.18.0](https://github.com/ezyang/htmlpurifier/compare/v4.17.0...v4.18.0) (2024-11-01)
2+
3+
4+
### Bug Fixes
5+
6+
* Adjust Core.AllowHostnameUnderscore to consider that "_" is defined as Unreserved Characters in RFC 3986 ([#406](https://github.com/ezyang/htmlpurifier/issues/406)) ([d9fbef8](https://github.com/ezyang/htmlpurifier/commit/d9fbef8e27f6a0848a8987a8534351de98eb0fa1))
7+
* Avoid a deprecated error when the attribute name is numeric and DirectLex is used ([#412](https://github.com/ezyang/htmlpurifier/issues/412)) ([f0fbf51](https://github.com/ezyang/htmlpurifier/commit/f0fbf510981b27fc03168efdb17d6bff48f521af))
8+
* checking that node has property name ([#399](https://github.com/ezyang/htmlpurifier/issues/399)) ([9ca5a36](https://github.com/ezyang/htmlpurifier/commit/9ca5a3687bd2e6e42ed9d5199b2cfb1dbd6dbdc2))
9+
* Ignore conditional comments ([#401](https://github.com/ezyang/htmlpurifier/issues/401)) ([4828fdf](https://github.com/ezyang/htmlpurifier/commit/4828fdf45a93eeeacfcbcc855f96f9a7e6b4ed44))
10+
* Support PHP 8.4 ([#396](https://github.com/ezyang/htmlpurifier/issues/396)) ([92da247](https://github.com/ezyang/htmlpurifier/commit/92da2473ffbb3ed5e894560d4166b1ca8032aeb3))
11+
* undefined array key warning ([#419](https://github.com/ezyang/htmlpurifier/issues/419)) ([01be377](https://github.com/ezyang/htmlpurifier/commit/01be377f93654fad4d3fbc8c81779f14316eaecf))
12+
13+
14+
### Features
15+
16+
* Add allowfullscreen attr for iframe ([#411](https://github.com/ezyang/htmlpurifier/issues/411)) ([70754a2](https://github.com/ezyang/htmlpurifier/commit/70754a253342f67a67425cfa81029db3a5c1bd28))
17+
* add directive for removing blank nodes ([#404](https://github.com/ezyang/htmlpurifier/issues/404)) ([c9d60c9](https://github.com/ezyang/htmlpurifier/commit/c9d60c96d799c02bc357c88a49f422034b6914fd))
18+
* Add support for CSS aspect-ratio ([#408](https://github.com/ezyang/htmlpurifier/issues/408)) ([93bee73](https://github.com/ezyang/htmlpurifier/commit/93bee733497a098b65daf5910f1c435d347860a4))
19+
* Allow universal CSS values for all properties ([#410](https://github.com/ezyang/htmlpurifier/issues/410)) ([9723267](https://github.com/ezyang/htmlpurifier/commit/972326785d201b81e1095bc296b99bbcfa8c7fd4))
20+
121
# [4.17.0](https://github.com/ezyang/htmlpurifier/compare/v4.16.0...v4.17.0) (2023-11-17)
222

323

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.17.0
1+
4.18.0

configdoc/usage.xml

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</file>
77
<file name="HTMLPurifier/Lexer.php">
88
<line>90</line>
9-
<line>331</line>
9+
<line>315</line>
1010
</file>
1111
<file name="HTMLPurifier/Lexer/DirectLex.php">
1212
<line>67</line>
@@ -19,37 +19,37 @@
1919
</directive>
2020
<directive id="CSS.MaxImgLength">
2121
<file name="HTMLPurifier/CSSDefinition.php">
22-
<line>256</line>
22+
<line>253</line>
2323
</file>
2424
</directive>
2525
<directive id="CSS.Proprietary">
2626
<file name="HTMLPurifier/CSSDefinition.php">
27-
<line>398</line>
27+
<line>397</line>
2828
</file>
2929
</directive>
3030
<directive id="CSS.AllowTricky">
3131
<file name="HTMLPurifier/CSSDefinition.php">
32-
<line>402</line>
32+
<line>401</line>
3333
</file>
3434
</directive>
3535
<directive id="CSS.Trusted">
3636
<file name="HTMLPurifier/CSSDefinition.php">
37-
<line>406</line>
37+
<line>405</line>
3838
</file>
3939
</directive>
4040
<directive id="CSS.AllowImportant">
4141
<file name="HTMLPurifier/CSSDefinition.php">
42-
<line>410</line>
42+
<line>409</line>
4343
</file>
4444
</directive>
4545
<directive id="CSS.AllowedProperties">
4646
<file name="HTMLPurifier/CSSDefinition.php">
47-
<line>539</line>
47+
<line>538</line>
4848
</file>
4949
</directive>
5050
<directive id="CSS.ForbiddenProperties">
5151
<file name="HTMLPurifier/CSSDefinition.php">
52-
<line>555</line>
52+
<line>554</line>
5353
</file>
5454
</directive>
5555
<directive id="Cache.DefinitionImpl">
@@ -124,7 +124,7 @@
124124
<line>122</line>
125125
</file>
126126
<file name="HTMLPurifier/Lexer.php">
127-
<line>313</line>
127+
<line>299</line>
128128
</file>
129129
</directive>
130130
<directive id="Output.Newline">
@@ -172,12 +172,15 @@
172172
<line>234</line>
173173
</file>
174174
<file name="HTMLPurifier/Lexer.php">
175-
<line>318</line>
176-
<line>358</line>
175+
<line>304</line>
176+
<line>342</line>
177177
</file>
178178
<file name="HTMLPurifier/AttrDef/HTML/ContentEditable.php">
179179
<line>8</line>
180180
</file>
181+
<file name="HTMLPurifier/HTMLModule/Iframe.php">
182+
<line>43</line>
183+
</file>
181184
<file name="HTMLPurifier/HTMLModule/Image.php">
182185
<line>37</line>
183186
</file>
@@ -267,35 +270,35 @@
267270
<directive id="Core.LegacyEntityDecoder">
268271
<file name="HTMLPurifier/Lexer.php">
269272
<line>220</line>
270-
<line>342</line>
273+
<line>326</line>
271274
</file>
272275
</directive>
273276
<directive id="Core.ConvertDocumentToFragment">
274277
<file name="HTMLPurifier/Lexer.php">
275-
<line>329</line>
278+
<line>313</line>
276279
</file>
277280
</directive>
278281
<directive id="Core.RemoveProcessingInstructions">
279282
<file name="HTMLPurifier/Lexer.php">
280-
<line>352</line>
283+
<line>336</line>
281284
</file>
282285
</directive>
283286
<directive id="Core.HiddenElements">
284287
<file name="HTMLPurifier/Lexer.php">
285-
<line>356</line>
288+
<line>340</line>
286289
</file>
287290
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
288291
<line>36</line>
289292
</file>
290293
</directive>
291294
<directive id="Core.AggressivelyRemoveScript">
292295
<file name="HTMLPurifier/Lexer.php">
293-
<line>357</line>
296+
<line>341</line>
294297
</file>
295298
</directive>
296299
<directive id="Core.RemoveScriptContents">
297300
<file name="HTMLPurifier/Lexer.php">
298-
<line>358</line>
301+
<line>342</line>
299302
</file>
300303
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
301304
<line>35</line>
@@ -408,12 +411,12 @@
408411
</directive>
409412
<directive id="Core.AllowHostnameUnderscore">
410413
<file name="HTMLPurifier/AttrDef/URI/Host.php">
411-
<line>77</line>
414+
<line>71</line>
412415
</file>
413416
</directive>
414417
<directive id="Core.EnableIDNA">
415418
<file name="HTMLPurifier/AttrDef/URI/Host.php">
416-
<line>109</line>
419+
<line>103</line>
417420
</file>
418421
</directive>
419422
<directive id="Attr.DefaultTextDir">
@@ -470,17 +473,17 @@
470473
</directive>
471474
<directive id="Filter.ExtractStyleBlocks.TidyImpl">
472475
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
473-
<line>94</line>
476+
<line>106</line>
474477
</file>
475478
</directive>
476479
<directive id="Filter.ExtractStyleBlocks.Scope">
477480
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
478-
<line>125</line>
481+
<line>137</line>
479482
</file>
480483
</directive>
481484
<directive id="Filter.ExtractStyleBlocks.Escaping">
482485
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
483-
<line>334</line>
486+
<line>351</line>
484487
</file>
485488
</directive>
486489
<directive id="HTML.Forms">
@@ -552,6 +555,11 @@
552555
<line>72</line>
553556
</file>
554557
</directive>
558+
<directive id="Core.RemoveBlanks">
559+
<file name="HTMLPurifier/Lexer/DOMLex.php">
560+
<line>75</line>
561+
</file>
562+
</directive>
555563
<directive id="Core.DirectLexLineNumberSyncInterval">
556564
<file name="HTMLPurifier/Lexer/DirectLex.php">
557565
<line>84</line>

library/HTMLPurifier.includes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* primary concern and you are using an opcode cache. PLEASE DO NOT EDIT THIS
88
* FILE, changes will be overwritten the next time the script is run.
99
*
10-
* @version 4.17.0
10+
* @version 4.18.0
1111
*
1212
* @warning
1313
* You must *not* include any other HTML Purifier files before this file,
@@ -101,6 +101,7 @@
101101
require 'HTMLPurifier/AttrDef/CSS/ListStyle.php';
102102
require 'HTMLPurifier/AttrDef/CSS/Multiple.php';
103103
require 'HTMLPurifier/AttrDef/CSS/Percentage.php';
104+
require 'HTMLPurifier/AttrDef/CSS/Ratio.php';
104105
require 'HTMLPurifier/AttrDef/CSS/TextDecoration.php';
105106
require 'HTMLPurifier/AttrDef/CSS/URI.php';
106107
require 'HTMLPurifier/AttrDef/HTML/Bool.php';

library/HTMLPurifier.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
/*
22-
HTML Purifier 4.17.0 - Standards Compliant HTML Filtering
22+
HTML Purifier 4.18.0 - Standards Compliant HTML Filtering
2323
Copyright (C) 2006-2008 Edward Z. Yang
2424
2525
This library is free software; you can redistribute it and/or
@@ -58,12 +58,12 @@ class HTMLPurifier
5858
* Version of HTML Purifier.
5959
* @type string
6060
*/
61-
public $version = '4.17.0';
61+
public $version = '4.18.0';
6262

6363
/**
6464
* Constant with version of HTML Purifier.
6565
*/
66-
const VERSION = '4.17.0';
66+
const VERSION = '4.18.0';
6767

6868
/**
6969
* Global configuration object.

library/HTMLPurifier.safe-includes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/ListStyle.php';
9696
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Multiple.php';
9797
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Percentage.php';
98+
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Ratio.php';
9899
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/TextDecoration.php';
99100
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/URI.php';
100101
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Bool.php';

library/HTMLPurifier/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class HTMLPurifier_Config
2121
* HTML Purifier's version
2222
* @type string
2323
*/
24-
public $version = '4.17.0';
24+
public $version = '4.18.0';
2525

2626
/**
2727
* Whether or not to automatically finalize

0 commit comments

Comments
 (0)