trusted-types icon indicating copy to clipboard operation
trusted-types copied to clipboard

Treat a null elementNs in getPropertyType/geAtributeType as the HTML …

Open fred-wang opened this issue 1 year ago • 1 comments

…namespace

This is the behavior that Chromium and WebKit currently implement, see https://phabricator.services.mozilla.com/D226547

Currently, it seems that the "interface for localName and elementNs" would fallback to Element, similarly to what happens with document.createElementNS(null, "div") for example.

Note that a null attrNs is already handled by the spec.

See also https://github.com/w3c/trusted-types/issues/553 for details.


Preview | Diff

fred-wang avatar Oct 23 '24 08:10 fred-wang

cc @lukewarlow @koto

fred-wang avatar Oct 23 '24 08:10 fred-wang