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

getAttributeType and getPropertyType should default to HTML namespace, not ""

Open smaug---- opened this issue 1 year ago • 4 comments
trafficstars

Currently the algorithms oddly change empty string to HTML namespace. That prevents using the methods with elements which are in "" namespace (whether or not that is actual useful). But if the methods just defaulted to HTML namespace, then one could still explicitly pass "".

Even better would be to remove both methods, since it is unclear if they are needed.

smaug---- avatar Dec 04 '23 21:12 smaug----

+1 to removing them, after confirming they see no significant enough usage.

koto avatar Jan 15 '24 09:01 koto

Based on discussion in #384 these potentially aren't going to be removed so it would be good to get clarification on the original question

lukewarlow avatar Jan 25 '24 13:01 lukewarlow