w3c

What is the difference between a W3C Working Draft and an Editor's Draft?

偶尔善良 提交于 2019-12-02 23:50:23
I'm reading XMLHttpRequest Level 2 specification (W3C Working Draft 07 September 2010) but after I noticed that browsers are implementing features described into a Editor's Draft that has eliminated many things. Which is the difference between a Working Draft and an Editor's Draft ? A Working Draft is a document that has been officially published by the group that is developing it, which means that the members of that group have agreed that it is in a state worth sharing with a wider audience (generally this is for feedback purposes — it certainly does not mean that the participants agree with

Gecko/Firefox support for HTML5 Notifications

落爺英雄遲暮 提交于 2019-12-02 22:32:26
I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ? I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implementation ? Update After searching and reading some W3C HTML5 specs, I'm maybe a little bit off here. I can't find any Notification feature anywhere there. Am I facing wrong facts here? Is that just a "very own webkit implementation"? To start with your second question: no, it's not a WebKit-specific feature. But although a site called ‘html5rocks’ contains

Why is XML used in web services?

你说的曾经没有我的故事 提交于 2019-12-02 15:39:30
问题 I am, for the first time, writing a program in which needs to communicate with other programs, using web services, specifically the SOAP V1.2 and HTTP protocols. My employer keep asking me three things that I can't really answer: Why is XML used as the convention (W3C) for information exchange? Why can't they use plain text or delimited files, for example? Why use a repetitive heavy tag-based language to exchange info? What happened to the good ol' plain text? 回答1: XML has the potential to

How can I make background-size:cover work in IE10 without making attachment fixed?

青春壹個敷衍的年華 提交于 2019-12-02 12:12:44
My code: html { background-image:url('img.png'); background-repeat:no-repeat; background-position:center top; background-size:cover; } This works perfectly on Firefox and Chrome, but on IE the image doesn't get stretched at all. It will work if I set background-attachment to "fixed" but that isn't what I want. Every website I've looked at claims that these proprties are perfectly implement in IE, but they clearly aren't. Troubleshoot CSS Background Size Cover It's a bit hard to troubleshoot without seeing additional code or the website, but here are some things you can try. Try adding

Why is XML used in web services?

风格不统一 提交于 2019-12-02 08:47:54
I am, for the first time, writing a program in which needs to communicate with other programs, using web services, specifically the SOAP V1.2 and HTTP protocols. My employer keep asking me three things that I can't really answer: Why is XML used as the convention (W3C) for information exchange? Why can't they use plain text or delimited files, for example? Why use a repetitive heavy tag-based language to exchange info? What happened to the good ol' plain text? XML has the potential to transfer self-descriptive data, and has a large following. Plain text, or simple delimited files, tell you

Save XML format to a string instead of a file [duplicate]

匆匆过客 提交于 2019-12-02 04:15:52
This question already has an answer here: How to convert org.jdom.Document to String 2 answers How do I convert a org.w3c.dom.Document object to a String? 4 answers I used the DocumentBuilderFactory to create XML file as done here: How to create XML file with specific structure in Java . Instead of saving it to a file, I want to store the result as a java String. How to achieve that. Duplicate: How do I convert a org.w3c.dom.Document object to a String? This example may help you out. import java.io.StringWriter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers

Should HTML “buttons” have the same box-model as everything else?

我的未来我决定 提交于 2019-12-02 03:24:50
Referring to both the button element and the input element with a type of button , I ran across a behavior I think is a bug (in recent releases of both Firefox and Chrome). But given how form elements are often exceptions to what I think are w3 rules, I thought I would ask for verification before assuming I am right. The behavior is this: In standards-mode when I add a border to such an element, the border appears inside the width of the element. If I manually set the box-sizing to content-box (using vendor prefixes), the behavior does what I expect, but when the box-sizing is left as its

TextArea MaxLength - Supported or Not Supported?

守給你的承諾、 提交于 2019-12-01 19:28:43
I was getting ready to add a jQuery plugin to support maxlength on textarea's and noticed that the MaxLength attribute is working natively on Safari, Chrome, and Firefox. Is this thanks to HTML5 or ? Does that means having a maxlength on textareas no longer requires a jQuery type plugin? Thanks Yes, maxlength was added to <textarea> in HTML5 , so that's why you're seeing the behavior in newer browsers. Do you need a plugin? that depends...if you need to support older browsers, then yes. 来源: https://stackoverflow.com/questions/4372413/textarea-maxlength-supported-or-not-supported

Perl CGI with HTTP Status Codes

别来无恙 提交于 2019-12-01 19:24:30
I have the following validation in a CGI script that will check for the GET method and return a 405 HTTP status code if the GET method is not used. Unfortunately it is still returning a 200 Status OK when using POST or PUT. my ($buffer); # Read in text $ENV{'REQUEST_METHOD'} =~ tr/a-z/A-Z/; if ($ENV{'REQUEST_METHOD'} eq "GET") { $buffer = $ENV{'QUERY_STRING'}; } else { $cgi->$header->status('405 Method Not Allowed') print $cgi->header('text/plain'); } I am still new to CGI programming so I figured someone here could toss me a bone about working with CGI and HTTP status returns. If a good CGI

How can block container establish both block and inline formatting contexts at the same time?

∥☆過路亽.° 提交于 2019-12-01 18:08:57
From the CSS Display Module Level 3 specs there is a note about block container that says: Note: A block container box can both establish a block formatting context and an inline formatting context simultaneously. How is this possible conceptually? And how are children boxes laid out then? For example, if we have both inline-level and block-level boxes inside block container, which formatting context is used in that case? Are both formatting contexts used at the same time or one of them "wins" and the other one is put aside? It's entirely possible, and even necessary for certain CSS rules. The