Re: [csswg-drafts] [css-values-5] support HTML syntax such as <html-integer> in typed attr() (#12875)

I mean, HTML presumably would have *wanted* to have a nice, reasonable strict parsing algorithm if it were possible, but we've got too much legacy from before people considered that a nice-to-have feature. Surely nobody is writing `<select size=30px>` today and *expecting* it to work, or if they are, considering it a problem they'll refuse to fix when writing new CSS against it.

I wouldn't be opposed to attr() using the reflection (for built-in attributes with that behavior), I just lean toward it not being particularly necessary for authors. Attributes written like that are buggy; we probably could have branched to prevent them from working at all with the `<!doctype html>` switch if Hixie had valued that, but his style was definitely more towards paving every cowpath.

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


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

Received on Tuesday, 30 September 2025 21:32:16 UTC