Skip to content

Commit 7cae174

Browse files
authoredApr 11, 2021
Docs: Make all header levels in warnings.md the same
Most warnings were using level 3 headers but some used header 4 ones. They now all use the level 3 ones. Closes gh-423
1 parent c81c190 commit 7cae174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎warnings.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
241241

242242
**Solution:** Remove any uses of `jQuery.cssProps` in application code.
243243

244-
#### JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray
244+
### JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray
245245

246246
**Cause:** Older versions of JavaScript made it difficult to determine if a particular object was a true Array, so jQuery provided a cross-browser function to do the work. The browsers supported by jQuery 3.0 all provide a standard method for this purpose.
247247

248248
**Solution:** Replace any calls to `jQuery.isArray` with `Array.isArray`.
249249

250-
#### JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim
250+
### JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim
251251

252252
**Cause:** Older versions of IE & Android Browser didn't implement a method to `trim` strings so jQuery provided a cross-browser implementation. The browsers supported by jQuery 3.0 all provide a standard method for this purpose.
253253

@@ -259,7 +259,7 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
259259

260260
**Solution:** Always pass string values to `.css()`, and explicitly add units where required. For example, use `$.css("line-height", "2")` to specify 200% of the current line height or `$.css("line-height", "2px")` to specify pixels. When the numeric value is in a variable, ensure the value is converted to string, e.g. `$.css("line-height", String(height))` and `$.css("line-height", height+"px")`.
261261

262-
#### JQMIGRATE: HTML tags must be properly nested and closed: _(HTML string)_
262+
### JQMIGRATE: HTML tags must be properly nested and closed: _(HTML string)_
263263

264264
**Cause:** jQuery 3.5.0 changed the way it processes HTML strings. Previously, jQuery would attempt to fix self-closed tags like `<i class="test" />` that the HTML5 specification says are not self-closed, turning it into `<i class="test"></i>`. This processing can create a [security problem](https://nvd.nist.gov/vuln/detail/CVE-2020-11022) with malicious strings, so the functionality had to be removed.
265265

0 commit comments

Comments
 (0)
Please sign in to comment.