speced / bikeshed

:bike: A preprocessor for anyone writing specifications that converts source files into actual specs.
https://speced.github.io/bikeshed
Creative Commons Zero v1.0 Universal
1.08k stars 199 forks source link

Stringifier attributes vs methods are treated differently #1656

Open tabatkins opened 4 years ago

tabatkins commented 4 years ago

In https://github.com/whatwg/url/pull/288#issuecomment-619570919, Anne said:

@tabatkins so the weird thing is that in stringifier attribute USVString href; href is seen as an attribute but in stringifier USVString toJSON () toJSON() is seen as a stringifier instead of a method. Why is that?

annevk commented 1 year ago

It would be nice to make some progress here although I suppose one solution might be to remove toJSON() for now.