←back to thread

197 points OuterVale | 1 comments | | HN request time: 0.558s | source
Show context
yread ◴[] No.46229304[source]
I don't understand the point about comments. Why shouldn't they be allowed? What object model?

>Comments shouldn't have been allowed basically everywhere in CSS (compare to HTML, which basically only allows them where content goes), because it makes them basically unrepresentable in the object model, which in turn makes building editing directly on top of the object model impossible

replies(5): >>46229365 #>>46229381 #>>46229430 #>>46229509 #>>46231920 #
1. wedg_ ◴[] No.46229381[source]
I'm guessing they mean that comments shouldn't be allowed everywhere, not that they shouldn't be allowed at all? i.e. CSS lets you put comments in many more places than HTML, in such a way that it's hard to practically impossible to represent in an AST? At least that's how I read it