HTML API Debugger

HTML API Debugger

Jon Surrell

Add a page to wp-admin for debugging the HTML API.

0.1

  • Initial release.

0.2

  • Remove redundant module.
  • Rearrange debugging panes.
  • Add option to show invisible characters.

0.3

  • Add button to copy instant playground link.

0.4

  • Improve debugger visibility controls.
  • Add handling for real/virtual nodes.

0.5

  • Use regular REST API result response shape.
  • Display text content of “atomic” HTML API nodes like textarea or xmp.

0.6

  • Add better unsupported error messages when possible. (WordPress >= 6.7)

0.7

  • Fix some issues where parsing errors could crash the client.

0.8

  • Show invisible characters in processed HTML spans.
  • Fix null-byte rendering in the initial page render.

0.9

  • Fix a bug where “}” was replaced as an invisible character.
  • Add a quirks mode toggle that allows changing the doctype used.

1.0

  • Prevent flash of “�” replacing null-byte in input on initial render.
  • Support HTML API quirks mode.
  • Support for full HTML processor.
  • Configurable hover information on nodes: depth and breadcrumbs or insertion mode.

1.1

  • Print tag namespaces.

1.2

  • Handle CDATA sections.
  • Use WordPress Script Modules API for all modules.

1.3

  • Replace wp-api-fetch script dependency with native fetch.
  • Improve error messages.
  • Display templates consistently between DOM and HTML API trees.
  • Use “qualified” names. SVG and MathML tags and attributes have some specialized casing.

1.4

  • Show invisible characters in the tree in attribute names, values, and tag names.
  • Handle DOCTYPE nodes.
  • Prevent newlines from automatically being added to the HTML input.
  • Use async event directives if available.
  • Handle doctype tokens and display information about quirks-mode.

1.5

  • Improve initial rendering and reduce layout shift.
  • Allow copying playground links to latest, beta, and nightly versions.
  • Allow copying playground links to specific wordpress-develop PRs.

1.6

  • Replace TABLE based layout with CSS grid.
  • Fix a crash on meta tags with a content attribute.
  • Display namespace on tag closers.
  • Display normalized HTML when supported.

Reviews

0 out of 5 stars

  • Version: 1.6
  • Last updated: 3 weeks ago
  • Active installations: 0
  • WordPress version: 6.5
  • Tested up to: 6.6.2
  • PHP version: false