Skip to content

Commit c2bc354

Browse files
pieterocpszepeviktorezyang
authored
fix: non-substantive typos (#434)
Co-authored-by: Viktor Szépe <[email protected]> Co-authored-by: Edward Z. Yang <[email protected]>
1 parent b21a591 commit c2bc354

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+64
-64
lines changed

INSTALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Autoload compatibility
9999

100100
HTML Purifier attempts to be as smart as possible when registering an
101101
autoloader, but there are some cases where you will need to change
102-
your own code to accomodate HTML Purifier. These are those cases:
102+
your own code to accommodate HTML Purifier. These are those cases:
103103

104104
AN __autoload FUNCTION IS DECLARED AFTER OUR AUTOLOADER IS REGISTERED
105105
spl_autoload_register() has the curious behavior of disabling

NEWS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ real release we decided to skip this version number.
482482

483483
3.3.0, released 2009-02-16
484484
! Implement CSS property 'overflow' when %CSS.AllowTricky is true.
485-
! Implement generic property list classess
485+
! Implement generic property list classes
486486
- Fix bug with testEncodingSupportsASCII() algorithm when iconv() implementation
487487
does not do the "right thing" with characters not supported in the output
488488
set.
@@ -522,7 +522,7 @@ real release we decided to skip this version number.
522522
! %Core.AggressivelyFixLt is on by default. This causes more sensible
523523
processing of left angled brackets in smileys and other whatnot.
524524
! Test scripts now have a 'type' parameter, which lets you say 'htmlpurifier',
525-
'phpt', 'vtest', etc. in order to only execute those tests. This supercedes
525+
'phpt', 'vtest', etc. in order to only execute those tests. This supersedes
526526
the --only-phpt parameter, although for backwards-compatibility the flag
527527
will still work.
528528
! AutoParagraph auto-formatter will now preserve double-newlines upon output.
@@ -573,7 +573,7 @@ real release we decided to skip this version number.
573573
. Added --quick option to multitest.php, which tests only the most recent
574574
release for each series.
575575
. Added --distro option to multitest.php, which accepts either 'normal' or
576-
'standalone'. This supercedes --exclude-normal and --exclude-standalone
576+
'standalone'. This supersedes --exclude-normal and --exclude-standalone
577577

578578
3.1.1, released 2008-06-19
579579
# %URI.Munge now, by default, does not munge resources (for example, <img src="">)
@@ -723,7 +723,7 @@ real release we decided to skip this version number.
723723
# HTMLPurifier->addFilter is deprecated; built-in filters can now be
724724
enabled using %Filter.$filter_name or by setting your own filters using
725725
%Filter.Custom
726-
# Directive-level safety properties superceded in favor of module-level
726+
# Directive-level safety properties superseded in favor of module-level
727727
safety. Internal method HTMLModule->addElement() has changed, although
728728
the externally visible HTMLDefinition->addElement has *not* changed.
729729
! Extra utility classes for testing and non-library operations can
@@ -769,7 +769,7 @@ real release we decided to skip this version number.
769769
. A couple of new historical maintenance scripts were added.
770770
. HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php split into two files
771771
. tests/index.php can now be run from any directory.
772-
. HTMLPurifier_Token subclasses split into seperate files
772+
. HTMLPurifier_Token subclasses split into separate files
773773
. HTMLPURIFIER_PREFIX now is defined in Bootstrap.php, NOT HTMLPurifier.php
774774
. HTMLPURIFIER_PREFIX can now be defined outside of HTML Purifier
775775
. New --php=php flag added, allows PHP executable to be specified (command
@@ -835,7 +835,7 @@ real release we decided to skip this version number.
835835
- Fix warning emitted when a non-supported URI scheme is passed to the
836836
MakeAbsolute URIFilter, thanks NykO18 (again)
837837
- Further refine AutoParagraph injector. Behavior inside of elements
838-
allowing paragraph tags clarified: only inline content delimeted by
838+
allowing paragraph tags clarified: only inline content delimited by
839839
double newlines (not block elements) are paragraphed.
840840
- Buggy treatment of end tags of elements that have required attributes
841841
fixed (does not manifest on default tag-set)
@@ -881,7 +881,7 @@ real release we decided to skip this version number.
881881
! CSS property border-spacing implemented
882882
- Fix non-visible parsing error in DirectLex with empty tags that have
883883
slashes inside attribute values.
884-
- Fix typo in CSS definition: border-collapse:seperate; was incorrectly
884+
- Fix typo in CSS definition: border-collapse:separate; was incorrectly
885885
accepted as valid CSS. Usually non-visible, because this styling is the
886886
default for tables in most browsers. Thanks Brett Zamir for pointing
887887
this out.
@@ -932,7 +932,7 @@ real release we decided to skip this version number.
932932
. HTMLPurifier_Config->getSerial() implemented, this is extremely useful
933933
for output cache invalidation
934934
. ConfigForm printer now can retrieve CSS and JS files as strings, in
935-
case HTML Purifier's directory is not publically accessible
935+
case HTML Purifier's directory is not publicly accessible
936936
. Introduce new text/itext configuration directive values: these represent
937937
longer strings that would be more appropriately edited with a textarea
938938
. Allow newlines to act as separators for lists, hashes, lookups and

TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ FUTURE VERSIONS
4141
- Config: Add examples to everything (make built-in which also automatically
4242
gives output)
4343
- Add "register" field to config schemas to eliminate dependence on
44-
naming conventions (try to remember why we ultimately decided on tihs)
44+
naming conventions (try to remember why we ultimately decided on this)
4545

4646
5.0 release [HTML 5]
4747
# Swap out code to use html5lib tokenizer and tree-builder
@@ -112,7 +112,7 @@ Neat feature related
112112
Also, enable disabling of directionality
113113
? Externalize inline CSS to promote clean HTML, proposed by Sander Tekelenburg
114114
? Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
115-
1. Analyzing which tags to remove duplicants
115+
1. Analyzing which tags to remove duplicates
116116
2. Ensure attributes are merged into the parent tag
117117
3. Extend the tag exclusion system to specify whether or not the
118118
contents should be dropped or not (currently, there's code that could do

benchmarks/samples/Lexer/4.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ <h2>External links</h2>
392392
<li><a href="http://www.scheele.org/lee/tcclinks.html" class="external text" title="http://www.scheele.org/lee/tcclinks.html">Lee Scheele's Links to T'ai Chi Ch'uan Web Sites</a></li>
393393
<li><a href="http://news.bbc.co.uk/1/hi/health/3543907.stm" class="external text" title="http://news.bbc.co.uk/1/hi/health/3543907.stm">BBC article</a></li>
394394
<li><a href="http://www.acupuncturetoday.com/archives2004/jul/07taichi.html" class="external text" title="http://www.acupuncturetoday.com/archives2004/jul/07taichi.html">Tai Chi: Good for the Mind, Good for the Body</a></li>
395-
<li><a href="http://www.taichiunion.com/" class="external text" title="http://www.taichiunion.com/">Tai Chi Chuan Union for Great Britian: The largest collective of independent Tai Chi Chuan Instructors in the British Isles</a></li>
395+
<li><a href="http://www.taichiunion.com/" class="external text" title="http://www.taichiunion.com/">Tai Chi Chuan Union for Great Britain: The largest collective of independent Tai Chi Chuan Instructors in the British Isles</a></li>
396396
</ul>
397397

398398

docs/dev-config-naming.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ the properties:
4949
AllowedFrameTargets -> heavily <a> specific, but also used by <area>
5050
and <form>. Transitional DTD %FrameTarget, not present in strict,
5151
HTML5 calls them "browsing contexts"
52-
Default*Image* -> as a default parameter, is almost entirely exlcusive
52+
Default*Image* -> as a default parameter, is almost entirely exclusive
5353
to <img>
5454
EnableID -> global attribute
5555
Name.UseCDATA -> heavily <a> specific, but has heavy other usage by

docs/dev-progress.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h2>CSS</h2>
122122

123123
<tbody>
124124
<tr><th colspan="2">Table</th></tr>
125-
<tr class="impl-yes"><td>border-collapse</td><td>ENUM(collapse, seperate)</td></tr>
125+
<tr class="impl-yes"><td>border-collapse</td><td>ENUM(collapse, separate)</td></tr>
126126
<tr class="impl-yes"><td>border-space</td><td>MULTIPLE</td></tr>
127127
<tr class="impl-yes"><td>caption-side</td><td>ENUM(top, bottom)</td></tr>
128128
<tr class="feature"><td>empty-cells</td><td>ENUM(show, hide), No IE support makes this useless,

docs/enduser-tidy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h2>I like the general idea, but the specifics bug me!</h2>
163163

164164
<p>So you want HTML Purifier to clean up your HTML, but you're not
165165
so happy about the br@clear implementation. That's perfectly fine!
166-
HTML Purifier will make accomodations:</p>
166+
HTML Purifier will make accommodations:</p>
167167

168168
<pre>$config-&gt;set('HTML.Doctype', 'XHTML 1.0 Transitional');
169169
$config-&gt;set('HTML.TidyLevel', 'heavy'); // all changes, minus...

docs/proposal-filter-levels.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ These are special use tags, they should be enabled on a blanket basis.
6060
Lists - dd, dl, dt, li, ol, ul ~ menu, dir
6161
Tables - caption, table, td, th, tr / col, colgroup, tbody, tfoot, thead
6262

63-
Forms - fieldset, form, input, lable, legend, optgroup, option, select, textarea
63+
Forms - fieldset, form, input, label, legend, optgroup, option, select, textarea
6464
XSS - noscript, object, script ~ applet
6565
Meta - base, basefont, body, head, html, link, meta, style, title
6666
Frames - frame, frameset, iframe
@@ -91,7 +91,7 @@ attribute and put URI filtering higher up on the priority list.
9191

9292
== Attribute Risk Analysis ==
9393

94-
We actually have a suprisingly small assortment of allowed attributes (the
94+
We actually have a surprisingly small assortment of allowed attributes (the
9595
rest are deprecated in strict, and thus we opted not to allow them, even
9696
though our output is XHTML Transitional by default.)
9797

docs/proposal-plists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Backfills/Data integrity:
7070
Type systems:
7171
- Flags: ReadOnly, Permanent, DontEnum
7272
- Typed properties isn't that useful [It's also Not-PHP]
73-
- Seperate meta-list of directive properties IS useful
73+
- Separate meta-list of directive properties IS useful
7474
- Duck typing is useful for systems designed fully around properties pattern
7575

7676
Trade-off:

library/HTMLPurifier/AttrDef/CSS/FontFamily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function validate($string, $config, $context)
195195
// transforms don't pose a security risk (as \\ and \"
196196
// might--these escapes are not supported by most browsers).
197197
// We could try to be clever and use single-quote wrapping
198-
// when there is a double quote present, but I have choosen
198+
// when there is a double quote present, but I have chosen
199199
// not to implement that. (NOTE: you can reduce the amount
200200
// of escapes by one depending on what quoting style you use)
201201
// $font = str_replace('\\', '\\5C ', $font);

0 commit comments

Comments
 (0)