Re: [csswg-drafts] [css-values-5][css-namespaces] CSS @namespace rules should probably not allow URLs with request modifiers (#12077)

Yeah, we should probably replace `<url>` with `<url()>` and call it a day. I don't think `src()` is needed.

@svgeesus that's the XML definition. It seems that for CSS that applies as well and user agents cannot eagerly parse the contents of `url()` as a URL and have to retain the original input. https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A%40namespace%20test%20url(%22%2F%22)%3B%0Atest%7Ctest%20%7B%20background%3Alime%20%7D%0A%3C%2Fstyle%3E%0A.%3Cscript%3E%0Atest%20%3D%20document.createElementNS(%22%2F%22%2C%20%22test%22)%3B%0Atest.textContent%20%3D%20%22test%22%3B%0Adocument.body.append(test)%3B%0A%3C%2Fscript%3E

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12077#issuecomment-2804135226 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 April 2025 07:45:59 UTC