[Webkit-unassigned] [Bug 276501] New: MathML attributes cannot be added in the Web Inspector DOM tree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 11 12:53:56 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=276501

            Bug ID: 276501
           Summary: MathML attributes cannot be added in the Web Inspector
                    DOM tree
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hi at pepelsbey.dev
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 471870

  --> https://bugs.webkit.org/attachment.cgi?id=471870&action=review

Sample MathML document

## Steps to reproduce

1. Open any HTML document containing MathML (see math.html attached)
2. Open Web Inspector, find the `<math>` element
3. Add `display="block"` attribute

## Expected behavior

Attribute should be added.

## Actual behavior

Attribute could not be added.

## Other observations

- Running `document.querySelector('math').setAttribute('display', 'block')` in the console adds the attribute.
- The same applies to the `<annotation>` element: you can’t add the `encoding` attribute.
- If an attribute is present, you can remove it but can’t add it back.
- You can add attributes in Chrome DevTools, but cannot in Firefox DevTools.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240711/17269df9/attachment-0001.htm>


More information about the webkit-unassigned mailing list