From 23f2fa8536bf27c7e25cb9ad9b68252f6a156d04 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 5 Mar 2026 11:07:26 -0800 Subject: [PATCH] Support attribute API for processing instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add setAttribute/getAttribute/hasAttribute/removeAttribute etc. to ProcessingInstruction. They act similarly to attributes on elements, however they don't produce attribute mutation records. See spec PR: https://github.com/whatwg/dom/pull/1454 Bug: 431374376 Change-Id: I659e772f0fb11a6ffe2fe3876cf61ee0f6ad042a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7607900 Reviewed-by: Philip Jägenstedt Commit-Queue: Noam Rosenthal Cr-Commit-Position: refs/heads/main@{#1594810} --- .../processing-instruction-attributes.html | 319 ++++++++++++++++++ 1 file changed, 319 insertions(+) create mode 100644 html/dom/partial-updates/tentative/processing-instruction-attributes.html diff --git a/html/dom/partial-updates/tentative/processing-instruction-attributes.html b/html/dom/partial-updates/tentative/processing-instruction-attributes.html new file mode 100644 index 00000000000000..f3c82fb99b98b1 --- /dev/null +++ b/html/dom/partial-updates/tentative/processing-instruction-attributes.html @@ -0,0 +1,319 @@ + + +Processing instruction attributes + + + +
+ +