Questions tagged [web-standards]

Technologies for creating and interpreting web-based content which are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web.

The World Wide Web Consortium (W3C), along with other groups and standards bodies, has established technologies for creating and interpreting web-based content. These technologies, which we call “web standards,” are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web.

Designing and building with these standards simplifies and lowers the cost of production, while delivering sites that are accessible to more people and more types of Internet devices. Sites developed along these lines will continue to function correctly as traditional desktop browsers evolve, and as new Internet devices come to market.

351 questions
15
votes
3 answers

How long may parameters in a get request be?

I am currently programming an API that gets passed data via get parameters so I was wondering if the total length of the URL or of the parameters value is limited in best practice or by the protocol.
Dominik
  • 4,718
  • 13
  • 44
  • 58
15
votes
1 answer

Why is the "dialog" element disabled by default in Firefox?

According to caniuse.com, Chrome has supported dialog since 2014. It also says that Firefox does support it, but only if you enable dom.dialog_element.enabled in about:config. The MDN page for the dialog element does not list any such notes, nor…
Aaron Franke
  • 3,268
  • 4
  • 31
  • 51
15
votes
2 answers

Standards on behaviour of nested labels

I was wondering what would happen if I'd nest 2
Joeytje50
  • 18,636
  • 15
  • 63
  • 95
15
votes
2 answers

ie9-js - has something else rendered it obsolete?

So, everyone knows ie9.js (from http://code.google.com/p/ie7-js/). It seems to work, but it never left beta since the last release in 2010. Obviously, there are some other things that do something a bit similar (such as modernizr, html5shiv, and…
Marcin
  • 48,559
  • 18
  • 128
  • 201
14
votes
1 answer

Should Javascript files include the BOM or not?

I believe that most people suggest using UTF-8 as the encoding for Javascript files. Is there a standard about whether those files include the Byte-Order Mark, or do not included it? (i.e. Should JS files be served with/without the UTF-8 BOM?) I'd…
Andrew Theken
  • 3,392
  • 1
  • 31
  • 54
13
votes
5 answers

EXI (efficient XML interchange) coming... Are XML APIs ready?

W3's EXI (efficient XML interchange) is going to be standardized. It claims to be "the last binary standard". It is a standard to store XML data optimized for processing and storage, is bundled with XML schema (making the data strongly typed and…
ivan_ivanovich_ivanoff
  • 19,113
  • 27
  • 81
  • 100
13
votes
1 answer

Why are double hyphens invalid in HTML comments?

Standards mode HTML forbids double hyphens in comments. There are three additional restrictions, exemplified by these invalid examples: invalid…
aaaidan
  • 7,093
  • 8
  • 66
  • 102
13
votes
2 answers

content attribute of img elements

While inspecting the Chrome Dev tools, I noticed the following CSS fragment: img { content: url(image-src.png); } which works perfectly in Chrome (see Screenshot below). This allows me to define the src attribute of an tag via CSS.…
Maximilian Hils
  • 6,309
  • 3
  • 27
  • 46
12
votes
1 answer

Hot keys to avoid

I want to add a hot key that can be used while an input has focus and will be used to toggle a search result. I guess this question has been more generalized in that I would like to know which hotkeys to avoid so as to not conflict with anything. I…
Mottie
  • 84,355
  • 30
  • 126
  • 241
12
votes
5 answers

HGROUP element removed from the HTML5 Specification. What alternative technique can be used instead?

As some of you would of heard the hgroup element is being removed from the HTML5 Specification. (For more info, see the W3C HTML Working Group's decision on request to drop hgroup from HTML5 on the W3C's Public Mailing List archives.) Now I'm…
Darren Reay
  • 135
  • 1
  • 2
  • 8
11
votes
2 answers

Does a standard for errors / error codes exist?

I am currently writing an API / some clients for chess games. The developers should access the API via one script (xhrframework.php) and submit the actions via GET. It is possible that they make some errors when they submit the actions (No…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
11
votes
2 answers

Is it valid to use custom name in "target" attribute of tag?

I have code something like this: google gmail Whenever I click one of the links, a new window or tab is created. I wanted the links to just use one. So I…
Sanghyun Lee
  • 21,644
  • 19
  • 100
  • 126
11
votes
2 answers

Event listener for current and future elements Without jQuery

If I remember correctly, I once saw a method to bind event listeners to every single element that matches a certain criteria, a query selector maybe. Looking for it again I cannot find anything other than people highly dependent on jQuery but I…
user1598585
11
votes
3 answers

JavaScript: Is it worth making variables private and defining getters/setters?

I'd like to start by saying that I understand that JavaScript is a Classless language. My background is in Java, C++, and Objective-C which are all classic OOP languages that support Classes. I'm expanding into Web Development and have been…
Iron3eagle
  • 1,077
  • 7
  • 23
10
votes
5 answers