Skip to content

[PHP] Classify CSS and JSON script text - #560

Closed
adamziel wants to merge 1 commit into
codex/classify-nested-post-contentfrom
codex/classify-css-and-json-script
Closed

[PHP] Classify CSS and JSON script text#560
adamziel wants to merge 1 commit into
codex/classify-nested-post-contentfrom
codex/classify-css-and-json-script

Conversation

@adamziel

Copy link
Copy Markdown
Collaborator

This stacked draft recognizes CSS in style tags and JSON in script tags declared as application/ld+json or application/json. Their raw modifiable text now uses the cautious base replacement, preserving its existing quote and escape spelling.\n\nStyle attributes keep their existing structured CSS path; this change does not broaden CSS escape decoding or arbitrary attribute processing.

@github-actions

Copy link
Copy Markdown
Contributor

Pull pipeline performance — large-directory

Site: large-directory · 2,000+ plus targeted file-transfer scenarios files · 10,000 posts · 25,000 postmeta · PHP 8.5.9

Stage PR trunk Δ Status Details
playground-sqlite-db-pull 9.99 s 9.37 s ⚪ +623 ms (+6.7%) condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
trunk: condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
playground-sqlite-db-apply 3.61 s 3.55 s ⚪ +63 ms (+1.8%) condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
trunk: condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
Total 13.61 s 12.92 s ⚪ +686 ms (+5.3%)

Numbers carry runner noise; treat single-run deltas as directional, not authoritative.

📈 Trunk performance history — commit-by-commit timeline.

@adamziel

Copy link
Copy Markdown
Collaborator Author

Folded this classification change into #558, which now stacks directly on #559.

@adamziel adamziel closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant