Table Test 5 – Hybrid Block (SSR, DOM, JS)

Row 1 Col 1 Row 1 Col 2 Row 1 Col 3
Row 2 Col 1 Row 2 Col 2

Purpose:

Validate data passing from PHP to DOM to JS

Expected Behavior

  • PHP embeds JSON in ‘data-*” attribute
  • JS reads it and uses it
  • Editor and frontend behave identically

Block Requirements:

  • render.php outputs ‘date -config=’ {“foo”:”bar”}’
  • JS reads ‘dataset.config’
  • JS logs or displays value

Pass/Fail Criteria:

  • Editor shows correct data
  • Frontend shows correct data
  • No hydration mismatch

Results: