- Timestamp:
- 09/04/2024 04:32:37 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor-state.php
r58867 r58985 301 301 302 302 /** 303 * No-quirks mode document compatability mode.304 *305 * > In no-quirks mode, the behavior is (hopefully) the desired behavior306 * > described by the modern HTML and CSS specifications.307 *308 * @since 6.7.0309 *310 * @var string311 */312 const NO_QUIRKS_MODE = 'no-quirks-mode';313 314 /**315 * Quirks mode document compatability mode.316 *317 * > In quirks mode, layout emulates behavior in Navigator 4 and Internet318 * > Explorer 5. This is essential in order to support websites that were319 * > built before the widespread adoption of web standards.320 *321 * @since 6.7.0322 *323 * @var string324 */325 const QUIRKS_MODE = 'quirks-mode';326 327 /**328 303 * The stack of template insertion modes. 329 304 * … … 381 356 */ 382 357 public $insertion_mode = self::INSERTION_MODE_INITIAL; 383 384 /**385 * Indicates if the document is in quirks mode or no-quirks mode.386 *387 * Impact on HTML parsing:388 *389 * - In `NO_QUIRKS_MODE` CSS class and ID selectors match in a byte-for-byte390 * manner, otherwise for backwards compatability, class selectors are to391 * match in an ASCII case-insensitive manner.392 *393 * - When not in `QUIRKS_MODE`, a TABLE start tag implicitly closes an open P tag394 * if one is in scope and open, otherwise the TABLE becomes a child of the P.395 *396 * `QUIRKS_MODE` impacts many styling-related aspects of an HTML document, but397 * none of the other changes modifies how the HTML is parsed or selected.398 *399 * @see self::QUIRKS_MODE400 * @see self::NO_QUIRKS_MODE401 *402 * @since 6.7.0403 *404 * @var string405 */406 public $document_mode = self::NO_QUIRKS_MODE;407 358 408 359 /**
Note: See TracChangeset
for help on using the changeset viewer.