mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
HTML API: Restore mistakenly-removed content in documentation.
In [55718] the Unicode replacement character was mistakenly removed. The purpose of including the character was to communicate what it looks like and why the Tag Processor won't insert it into the document. This changeset brings the character back and adds a small clue to fix the confusion that may lead to its removal. Follow-up to [55718]. Props dmsnell. Fixes #58256 See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@55723 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -229,11 +229,11 @@
|
||||
* The Tag Processor's design incorporates a "garbage-in-garbage-out" philosophy.
|
||||
* HTML5 specifies that certain invalid content be transformed into different forms
|
||||
* for display, such as removing null bytes from an input document and replacing
|
||||
* invalid characters with the Unicode replacement character `U+FFFD`. Where errors
|
||||
* or transformations exist within the HTML5 specification, the Tag Processor leaves
|
||||
* those invalid inputs untouched, passing them through to the final browser to handle.
|
||||
* While this implies that certain operations will be non-spec-compliant, such as
|
||||
* reading the value of an attribute with invalid content, it also preserves a
|
||||
* invalid characters with the Unicode replacement character `U+FFFD` (visually "<22>").
|
||||
* Where errors or transformations exist within the HTML5 specification, the Tag Processor
|
||||
* leaves those invalid inputs untouched, passing them through to the final browser
|
||||
* to handle. While this implies that certain operations will be non-spec-compliant,
|
||||
* such as reading the value of an attribute with invalid content, it also preserves a
|
||||
* simplicity and efficiency for handling those error cases.
|
||||
*
|
||||
* Most operations within the Tag Processor are designed to minimize the difference
|
||||
|
||||
Reference in New Issue
Block a user