Opened 3 days ago
Last modified 3 hours ago
#65582 assigned task (blessed)
HTML API: Update processing instruction parsing
| Reported by: | jonsurrell | Owned by: | jonsurrell |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | HTML API | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
Processing instruction parsing has been updated in the HTML standard. <?processing instructions ?> were transformed into comments, but are now preserved.
See the processing instruction states in the standard.
See #65581 (adds updated tests).
Change History (2)
This ticket was mentioned in PR #12424 on WordPress/wordpress-develop by @jonsurrell.
5 hours ago
#1
- Keywords has-patch has-unit-tests added
@jonsurrell commented on PR #12424:
3 hours ago
#2
This adds PI handling to all the relevant insertion modes. PI handling is notably missing from two places:
This change currently follows the spec for _in head noscript_ but inserts the token _in template_.
It's unclear whether these are an oversight or not. I've asked and will follow-up.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See #12423 (merged here) for the test addition..
Trac ticket: https://core.trac.wordpress.org/ticket/65582
## Use of AI Tools
AI assistance: Yes
Tool(s): Claude
Model(s): Fable 5
Used for: Initial implementation.