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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Best practice for HTTP GET request with parameters?

I'm building a REST API for a personal project, and one of my handlers is meant to retrieve a set of data from a large SQLite table. The frontend is divided into pages, showing limited results, which ...
Josh Silveous's user avatar
8 votes
2 answers
15k views

Can Axios be used in new next.js 13 instead of extended next fetch api version?

Hey guys, can I use axios with next.js 13 and still get the same results of their extended fetch api version with cache and revalidate configs ?? Is axios going to this web-standard thing direction ??...
Danilo-Guedes's user avatar
0 votes
0 answers
14 views

Which Standard Specifies URI/URL/URN Allowable Termination Characters (or, Tokens)?

Mavens of W3C Esoterica, Which Standard (e.g., W3C, or kin (IETF?)) specifies URI/URL/URN allowable termination characters (or, tokens)? Seeking the definitive specification of designated ...
Plane Wryter's user avatar
  • 1,319
2 votes
1 answer
41 views

Is there a standard way to get HTMLSelectElement from HTMLOptionElement?

HTMLSelectElement currently provides HTMLSelectElement.options property to access all its options children regardless of optgroup in the way. But, the reverse is not known. Currently, we need to ...
Abdillah's user avatar
  • 982
0 votes
1 answer
52 views

There’s no standard specification for JavaScript's backend APIs?

I’m writing an article on JavaScript and a question came up. JavaScript has Web APIs as its standard specification for the browser. There’s no standard specification for JavaScript's backend (Node and ...
André Casal's user avatar
  • 1,062
0 votes
1 answer
293 views

RESTful API for filtering by two models simultaneously

Suppose I have two models, Order and Customer. I've implemented an API that lets you filter on both: /orders?status=fulfilled /customers?city=Atlanta But what if I want to search for orders in a ...
Paul Rodgers's user avatar
2 votes
1 answer
215 views

Enqueuing function to run after all events on current form are handled

I have a form with a formdata event handler that updates a field of the FormData if a certain state is found in the DOM. After the form submission, the DOM needs to be changed, but the formdata event ...
Niklas Mohrin's user avatar
1 vote
1 answer
235 views

Detect old Internet explorer Javascript functions ( < ES6)

There is a web online, library or something to detect old IE functions that are not compatible with Chrome/Firefox or just ES6? Like: document.all, event.returnValue, etc JsHint/Jslint are not ...
spunka's user avatar
  • 31
0 votes
1 answer
362 views

What's better UX/accessibility: disabled button or link with .active state? [closed]

I have a news feed page with two display options: "All Content" and "Personalized Content". I need some buttons or links to let users move between these two options, which involves ...
Lime's user avatar
  • 276
1 vote
2 answers
1k views

x509 public key to JWK in web-workers environment

I want to verify "firebase JWT token" on "Cloudflare workers" environment. The problem is firebase-auth doesn't provide the standard /.well-known/jwks.json,rather they provide x806 ...
mehari's user avatar
  • 3,117
1 vote
2 answers
321 views

How to interpret caniuse website information?

I wanted to check what is the support of fetch API in browser so I opened caniuse.com to get this information. Looking at Chrome browser I see this feature is available since version 42 (which ...
mlst's user avatar
  • 2,790
0 votes
1 answer
32 views

Issues Recreating Http Headers from an older application

I am having an issue uploading files to my server on a frontend rewrite I am working on. I am getting an error response 500 "Premature end of script headers:" I have my headers recreated ...
John Bull's user avatar
  • 103
-1 votes
1 answer
996 views

Is returning true/false for a function as indicator for success/failure considered a good standard in JS?

Im trying to understand something regarding JS standards: When writing an async function or any function that returns any kind of promise I need to assume that the user of this function will want to ...
Gilad's user avatar
  • 237
0 votes
2 answers
685 views

Get partial range of ReadableStream

I want to return a specific byte range given a ReadableStream. It sounds easy but I can't find any way to skip through or read a specific amount of bytes from the stream since we can only read chunks. ...
emillime's user avatar
  • 531
0 votes
1 answer
271 views

Best practices for POST/DELETE links on HTML

I don’t want to use GET method for some destructive links (like deleting an item, remove something…) so I use POST or DELETE actions on my links, with a Javascript AJAX request like this: <a class=...
Sylvain's user avatar
  • 2,832
3 votes
0 answers
138 views

Do different browsers offer different set of Web APIs?

As per this link https://developer.mozilla.org/en-US/docs/Web/API, there are a set of Web APIs which are the standard APIs as per w3c definition. However, I could not find information regarding the ...
Ayush Goel's user avatar
3 votes
1 answer
378 views

What difference in cache implementation of firefox and chrome affected twitter?

Twitter released a statement that is worded and advertised in the severity of a data breach, where it blames it on differences in Firefox's implementation of caching. They are also greeting every ...
Peeyush Kushwaha's user avatar
0 votes
2 answers
972 views

Serving Drive-stored images in templated HTML (Google Apps Script)

I've been following the instructions here to have my Gmail signature template display the image stored on Google Drive as a logo. The goal is to have the 'src' attribute of the image tag point to ...
Anton Dementiev's user avatar
1 vote
1 answer
158 views

It seems <html> element is like a pseudo window element or view container element?

If any webpage has 3000px tall of content, I would have expected both document.body.offsetHeight document.documentElement.offsetHeight to be both 3000px. Note that document.documentElement is ...
nonopolarity's user avatar
2 votes
1 answer
1k views

Input is a self closing tag. Or not?

As we know input is a self-closing tag. I thought the same. However, a while ago I read Web Fundamentals about Semantics and accessibility tree and found such an interesting example: <label> ...
Sergey Mell's user avatar
  • 7,810
2 votes
1 answer
216 views

PageSpeed Insights not standards compliant

Google PageSpeed suggests adding Critical CSS in a <style> tag in the head, and deferring external CSS to the end of the HTML. This goes against Web Standards by inlining CSS in HTML (which ...
nick-roberts91's user avatar
0 votes
1 answer
696 views

Why do image and picture elements display images despite http status 404?

The following request returns an HTTP status code of 404, but also content-type: image/jpeg and valid JPEG data in the response body: https://img.youtube.com/vi/lXMskKTw3Bc/maxresdefault.jpg If you ...
Constantin Groß's user avatar
8 votes
1 answer
2k views

Are Google Chrome and Chromium equivalent for web design/development?

This is probably a silly question, however: from a Web Design/Development point of view (I mean support for web standards and web technologies), could Google Chrome and Chromium be considered ...
Sekhemty's user avatar
  • 1,322
15 votes
1 answer
2k views

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 ...
Aaron Franke's user avatar
  • 3,400
1 vote
1 answer
1k views

Why does the browser render the body behind elements with a negative z-index?

I discovered a strange problem, when I render a page with an element that has a negative z-index (z-index: -1) and call document.elementsFromPoint, the result is that visually the element with the ...
Godwin's user avatar
  • 9,789
0 votes
1 answer
264 views

What is the difference between WebSocket `closing` vs `closed` readyState?

WebSocket.readyState can be CONNECTING, OPEN, CLOSING or CLOSED. What is the difference between CLOSING and CLOSED states? Why is it useful to distinguish between these two states? Can I treat a ...
brainkim's user avatar
  • 902
1 vote
2 answers
396 views

How do I create a ReadableStream in Microsoft Edge?

Both MDN, caniuse.com, and Microsoft Edge's own "Platform Status" page state that Microsoft Edge supports ReadableStream since build number 16299+ (released 09/26/2017). However, when I try to create ...
qff's user avatar
  • 5,624
3 votes
1 answer
1k views

What is the risk of global polyfills in an external script breaking the functionality of a website?

The documentation for @babel/polyfill has the following note: If you are looking for something that won't modify globals to be used in a tool/library, checkout the transform-runtime plugin. On the ...
flut1's user avatar
  • 205
19 votes
3 answers
22k views

When should I use HTTP header "X-Content-Type-Options: nosniff"

I've been running some penetration tests using OWASP ZAP and it raises the following alert for all requests: X-Content-Type-Options Header Missing. I understand the header, and why it is recommended. ...
HappyDog's user avatar
  • 1,259
7 votes
2 answers
5k views

How does one create and display HDR images in web browsers?

Are there any image formats for the web with full HDR image support? 10/12-bit channels, DCI-P3/Rec.2020 colour space, etc. It seems like none of the conventional formats support it, and no one is ...
Don Reba's user avatar
  • 13.9k
3 votes
0 answers
249 views

Measuring websocket transfer rate

I am writing a frontend application that needs to know what is the current transfer rate with the server. When using HTTP, this is easy enough thanks to the performance API. You can access many ...
Luke Skywalker's user avatar
2 votes
1 answer
268 views

Is the comma ("multiple selector") a CSS selector combinator?

I'm trying to create a small CSS web course and wanted some clarification before I proceeded with how I define combinators to students watching. I've noticed a difference with W3C and MDN in ...
Jonathan002's user avatar
  • 9,779
2 votes
0 answers
72 views

Why are XHR response types strings and not constants?

Looking at the MDN summary docs and the actual XMLHttpRequest standards docs, it is clear that XHR response types are just strings. One implements them by using something along lines of the following: ...
dudewad's user avatar
  • 13.4k
0 votes
0 answers
181 views

A native cross-browser solution to Animate SVG points

CSS is great for transforming and animating elements in all types of ways. But for fine-tuned path control / animating individual points of a path etc - something like SMIL or the many JS animation ...
basement's user avatar
  • 718
0 votes
1 answer
85 views

legality of div tag immediately under html tag

I was running lynx to test some HTML I had to do, because having accessibility in mind. I guessed that, if looked pretty in Lynx, the whole range of screen readers, crappy phones and other stuff would ...
1737973's user avatar
  • 159
3 votes
1 answer
695 views

How do browsers know when the login is successful, any only prompt to save the password in this case?

I've noticed that on any login form, when I fail to enter the correct username/password combination, the browser (Chrome, at least) does not prompt me to save the password. As soon as I enter the ...
BenMorel's user avatar
  • 34.9k
17 votes
4 answers
7k views

Rem-Based Layouts, Zooming on chrome is inconsistent, PX vs REM

I've been wracking my brain over this one, google searches don't really have much in the way of help or even documentation of this problem but it's greatly affecting my current conversion to a mobile-...
Aren's user avatar
  • 54.9k
-1 votes
1 answer
49 views

Standards compliant code for document.all replacement

We have ancient code that dynamically creates HTML form data from a database, and it was written that references document.all to fetch an array of non-uniquely Id'd check boxes. I need to find the "...
Daniel Bragg's user avatar
  • 1,813
2 votes
0 answers
565 views

Should I load HTML WebComponents from a remote, untrusted URL?

Material on WebComponents and HTML Imports seems to be scarce, so I can't find a definite answer on this. All the examples of importing a WebComponent seem to do so through local URLs. What I'm ...
Snowman's user avatar
  • 31.5k
1 vote
2 answers
290 views

Issue in loading image file in PHP

I am facing some typical issue in loading image files in PHP. Image got successfully loaded but cannot get displayed properly. I have declared a define value, then echoed it in an img tag src ...
Ramya Roy's user avatar
  • 237
1 vote
2 answers
109 views

Are http and https resources equivalent?

Are HTTP and https resources equivalent? That is, does http://example.com/ABC refer to the same resource as https://example.com/ABC? Evidence for: (1) Cookies with matching domain and path without &...
maxpolk's user avatar
  • 2,187
7 votes
0 answers
2k views

WebSQL has increasing browser support. What's its future? [closed]

I've done some looking around, and found that WebSQL seems to have a somewhat rocky future right now. On the one hand, it's apparently widely looked down on as a solution because of the fact that ...
i336_'s user avatar
  • 1,821
2 votes
2 answers
2k views

json-ld: Good way to model custom values

I'm trying to get a good json-ld that combines the schema.org/Product definition with some custom elements. I'm coming from an xsd background and the extensibility in json-ld seems very difficult to ...
CodingEdge's user avatar
5 votes
2 answers
3k views

What do TR and CR stand for in W3C drafts?

I have seen it in urls: https://www.w3.org/TR/MathML3/ I have also seen it on Can I Use What do the abbreviations CR and TR stand for in a W3C context?
Olov's user avatar
  • 1,103
3 votes
2 answers
2k views

Is a <button> acting as a link bad for WCAG?

I've always wondered if using a <button> tag purely to link a page bad for Web Content Accessibility Guidelines (WCAG)? When is it an improper and proper use of the <button> tag? Thanks ...
Andrew C. Duarte's user avatar
1 vote
1 answer
1k views

For Site to be ADA compliant does it need to have H1 tag or the highest tag can be H3?

I have a project to make site Ada compliant however, i can't find details on this specific question. Do i need H1 tag to be compliant.
Muhammad Umer's user avatar
2 votes
3 answers
2k views

Favicon is completely transparent?

There's an indentation indicating that my favicon was loaded, but instead of seeing the favicon, I see a completely blank region where the favicon should be. The image is 38x48, but I also tried ...
Wolfpack'08's user avatar
  • 4,010
6 votes
4 answers
1k views

ReSpec vs Bikeshed: How to document and publish a standard REST API interface to be implemented by a number of vendors?

We want to document a standard REST API interface which will be implemented by a number of vendors. Currently we are using Google Docs to store the specification. Requirements (which must be common to ...
Nick Evans's user avatar
  • 3,299
2 votes
1 answer
563 views

Why do Touch objects lack the offsetX/Y properties present on MouseEvent?

The W3C CSSOM View Module draft defines offsetX and offsetY properties on the MouseEvent interface. These seem very useful to me (and I have a current question related to them), and I want to be able ...
tremby's user avatar
  • 9,631
3 votes
2 answers
158 views

Impossible situation when mixing explicit and implicit sectioning in HTML5?

I found a page about sections and outlines for HTML5. Not 100% sure it's official and the page says most browsers don't follow it, but I think it's a pretty cool idea so I'm trying to create code that ...
Mark's user avatar
  • 19k

1
2 3 4 5
8