Byron Sommardahl
Byron Sommardahl

Reputation: 13012

Why doesn't javascript have better support for cookies and querystrings?

It seems like cookies and querystrings are firmly established in the web world. Nevertheless, javascript makes you do all kinds of splits and parsing to get at the keys and values. Anyone have any insight on why there isn't more intuitive native support for things like cookies and querystrings?

Admittedly, there are plugins and frameworks that make this stuff a little better. I just want to understand why there had to be plugins and frameworks to handle basic stuff like that in the first place.

Upvotes: 5

Views: 144

Answers (1)

Mike Blandford
Mike Blandford

Reputation: 4012

That's not a problem with javascript - it's a problem with the DOM. Unfortunately the DOM API has many problems - Browser makers aren't perfect.

There really should be better support for this though. The W3C including it as a standard in the HTML spec would be a good start.

Upvotes: 4

Related Questions