Skip to content

Commit 8f4f27b

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents d58efbc + c2b126a commit 8f4f27b

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,13 +2090,14 @@ private function step_in_head_noscript(): bool {
20902090

20912091
/*
20922092
* > A comment token
2093-
* >
2093+
* > A processing instruction token
20942094
* > A start tag whose tag name is one of: "basefont", "bgsound",
20952095
* > "link", "meta", "noframes", "style"
20962096
*/
20972097
case '#comment':
20982098
case '#funky-comment':
20992099
case '#presumptuous-tag':
2100+
case '#processing-instruction':
21002101
case '+BASEFONT':
21012102
case '+BGSOUND':
21022103
case '+LINK':

tests/phpunit/data/web-platform-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The current tests can be found on GitHub at
77
[`web-platform-tests/wpt/html/syntax/parsing/resources`](https://github.com/web-platform-tests/wpt/tree/master/html/syntax/parsing/resources).
88

99
The version of the WPT files was taken from the git commit with
10-
SHA [`f4c2ec1d071ccbae305f7aea4e883b5bd0f5c0df`](https://github.com/web-platform-tests/wpt/commit/f4c2ec1d071ccbae305f7aea4e883b5bd0f5c0df).
10+
SHA [`e0d8cc13ecda5b72946a8df5428ffcb620540819`](https://github.com/web-platform-tests/wpt/commit/e0d8cc13ecda5b72946a8df5428ffcb620540819).
1111

1212
## Updating
1313

tests/phpunit/data/web-platform-tests/html_syntax_parsing_resources/processing-instructions.dat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,3 +986,23 @@ there=1?>
986986
| <title>
987987
| "<?something>"
988988

989+
#data
990+
<noscript><?pi>
991+
#script-off
992+
#document
993+
| <html>
994+
| <head>
995+
| <noscript>
996+
| <?pi ?>
997+
| <body>
998+
999+
#data
1000+
<template><?pi>
1001+
#document
1002+
| <html>
1003+
| <head>
1004+
| <body>
1005+
| <template>
1006+
| content
1007+
| <?pi ?>
1008+

0 commit comments

Comments
 (0)