- Timestamp:
- 01/19/2024 09:40:01 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r57314 r57316 103 103 * - Custom elements: All custom elements are supported. :) 104 104 * - Form elements: BUTTON, DATALIST, FIELDSET, LABEL, LEGEND, METER, PROGRESS, SEARCH. 105 * - Formatting elements: B, BIG, CODE, EM, FONT, I, SMALL, STRIKE, STRONG, TT, U .105 * - Formatting elements: B, BIG, CODE, EM, FONT, I, SMALL, STRIKE, STRONG, TT, U, WBR. 106 106 * - Heading elements: H1, H2, H3, H4, H5, H6, HGROUP. 107 107 * - Links: A. 108 108 * - Lists: DD, DL, DT, LI, OL, LI. 109 * - Media elements: AUDIO, CANVAS, FIGCAPTION, FIGURE, IMG, MAP, PICTURE, VIDEO.110 * - Paragraph: P.111 * - Phrasing elements: A BBR, BDI, BDO, CITE, DATA, DEL, DFN, INS, MARK, OUTPUT, Q, SAMP, SUB, SUP, TIME, VAR.109 * - Media elements: AUDIO, CANVAS, EMBED, FIGCAPTION, FIGURE, IMG, MAP, PICTURE, VIDEO. 110 * - Paragraph: BR, P. 111 * - Phrasing elements: AREA, ABBR, BDI, BDO, CITE, DATA, DEL, DFN, INS, MARK, OUTPUT, Q, SAMP, SUB, SUP, TIME, VAR. 112 112 * - Sectioning elements: ARTICLE, ASIDE, HR, NAV, SECTION. 113 113 * - Templating elements: SLOT. 114 114 * - Text decoration: RUBY. 115 * - Deprecated elements: ACRONYM, BLINK, CENTER, DIR, ISINDEX, MULTICOL, NEXTID, SPACER.115 * - Deprecated elements: ACRONYM, BLINK, CENTER, DIR, ISINDEX, KEYGEN, MULTICOL, NEXTID, SPACER. 116 116 * 117 117 * ### Supported markup … … 936 936 937 937 /* 938 * > An end tag whose tag name is "br" 939 * > Parse error. Drop the attributes from the token, and act as described in the next 940 * > entry; i.e. act as if this was a "br" start tag token with no attributes, rather 941 * > than the end tag token that it actually is. 942 */ 943 case '-BR': 944 $this->last_error = self::ERROR_UNSUPPORTED; 945 throw new WP_HTML_Unsupported_Exception( 'Closing BR tags require unimplemented special handling.' ); 946 947 /* 938 948 * > A start tag whose tag name is one of: "area", "br", "embed", "img", "keygen", "wbr" 939 949 */ 950 case '+AREA': 951 case '+BR': 952 case '+EMBED': 940 953 case '+IMG': 954 case '+KEYGEN': 955 case '+WBR': 941 956 $this->reconstruct_active_formatting_elements(); 942 957 $this->insert_html_element( $this->state->current_token ); 958 $this->state->frameset_ok = false; 943 959 return true; 944 960 … … 978 994 case 'BGSOUND': 979 995 case 'BODY': 980 case 'BR':981 996 case 'CAPTION': 982 997 case 'COL': … … 984 999 case 'DD': 985 1000 case 'DT': 986 case 'EMBED':987 1001 case 'FORM': 988 1002 case 'FRAME': … … 992 1006 case 'IFRAME': 993 1007 case 'INPUT': 994 case 'KEYGEN':995 1008 case 'LI': 996 1009 case 'LINK': … … 1032 1045 case 'TRACK': 1033 1046 case 'UL': 1034 case 'WBR':1035 1047 case 'XMP': 1036 1048 $this->last_error = self::ERROR_UNSUPPORTED; … … 1693 1705 'INPUT' === $tag_name || 1694 1706 'LINK' === $tag_name || 1707 'KEYGEN' === $tag_name || // Obsolete but still treated as void. 1695 1708 'META' === $tag_name || 1696 1709 'SOURCE' === $tag_name ||
Note: See TracChangeset
for help on using the changeset viewer.