w3c

Content-Type with charset only

点点圈 提交于 2019-12-05 22:24:47
I came across this interesting header: Content-Type: charset=utf-8 Set HTTP header to UTF-8 using PHP The answerer says that this syntax is defined by RFC 2616 , but I am not seeing it in the provided link. Is this valid syntax, and if so where specifically is this defined? The production in RFC 2616 for the Content-Type header is this: Content-Type = "Content-Type" ":" media-type And the media-type production is this: media-type = type "/" subtype *( ";" parameter ) type = token subtype = token That says that while the parameter part (e.g., charset=utf-8 is optional, the type "/" subtype part

Web Speech API Custom Words

点点圈 提交于 2019-12-05 21:04:00
问题 I read through the W3C docs on this and I'm thinking that custom words come from custom grammar, but I tried going to this demo and in the console entered the following javascript: recognition.grammars.addFromString('foo'); Which ran fine and recognition.grammars[0].src returns: "data:application/xml,foo" Note : 'foo' is not the word I'm interested in, but the word I'm interested in isn't an english word, using 'foo' for the example. When I speak my custom word normally, it thinks I'm saying

How to write good alt text for images to help screen reader and blind user to understand what is picture about?

最后都变了- 提交于 2019-12-05 20:54:13
问题 How to write good alt text for images to help screen reader and blind user to understand what is picture about ? and if we are using Alt text then what should be in a Title="text" if we are using both in special cases like menu images etc 回答1: You should not make the visually impaired user understand what the image is all about. For the blind, the image effectively doesn't exist , all that there is is the text. The alt text should work as a single sentence/paragraph that can be replaced for

Is XRX the only full stack web application “framework” that's totally W3C?

你离开我真会死。 提交于 2019-12-05 17:52:12
XRX means an application where the front end is written entirely in XML dialects and the back end is written entirely in XML dialects and data is passed between them as XML over REST. Is it correct that this is the only web application stack that is composed solely of technologies maintained by the W3C? I think the best way to answer this is that XRX the only web architecture that I am aware of that incorporates two important web standards: XQuery and XForms, to create portable web applications. REST is not really a W3C standard per say, but an architectural style built around simple key-value

Parse xml without tagname

ⅰ亾dé卋堺 提交于 2019-12-05 14:54:11
I have a xml file <Response> <StatusCode>0</StatusCode> <StatusDetail>OK</StatusDetail> <AccountInfo> <element1>value</element1> <element2>value</element2> <element3>value</element2> <elementN>value</elementN> </AccountInfo> </Response> And I want parse my elements in AccountInfo, but I dont know elements tag names. Now Im using and have this code for tests, but in future I will recieve more elemenets in AccountInfo and I dont know how many or there names String name=""; String balance=""; Node accountInfo = document.getElementsByTagName("AccountInfo").item(0); if (accountInfo.getNodeType() ==

HTML5: Where is the spec for which end tags are forbidden?

安稳与你 提交于 2019-12-05 14:47:35
In HTML 4.01 certain end tags are forbidden , that means it in not valid markup to have them, e.g.: Invalid Valid =================== ================= <BR/> <BR> <BR></BR> <IMG src="..."/> <IMG src="..."> <IMG ...></IMG> <INPUT ... /> <INPUT ...> <INPUT ...></INPUT> In the HTML 4.01 specification the indication of an end tag being optional or forbidden is nicely summarized in the index of elements : Name Start Tag End Tag AREA F BASE F BASEFONT F BODY O O BR F COL F COLGROUP O DD O DT O FRAME F HEAD O O HR F HTML O O IMG F INPUT F ISINDEX F LI O LINK F META F OPTION O P O PARAM F TBODY O O TD

Is it necessary to add cellspacing=“0” cellpadding=“0” in <table>?

こ雲淡風輕ζ 提交于 2019-12-05 09:58:38
问题 Eric meyer reset css is suggesting "tables still need 'cellspacing="0"' in the markup". Is it necessary? and what is the benefit of border-collapse: collapse ; and border-spacing: 0; ? and it's only suggesting to use cellspacing, while table has another property called cellpadding? /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse: collapse; border-spacing: 0; } 回答1: cellpadding is not suggested because the padding css property sufficiently overrides the default

Displaying W3C compliance

左心房为你撑大大i 提交于 2019-12-05 08:45:12
I think most people agree that complying with W3C standards is a worthwhile pursuit. However, do you advertise the fact that your site is compliant? Are there positives or negatives to doing so? If you do display your compliance, how do you do it? I don't, because the average user has no knowledge of what it means for a website to "be valid". If someone who cares about such things is interested, they probably wouldn't take my word for it anyway - they'd run my site through the validator themselves, probably using a tool such as Firebug. guerda It depends on your audience. If it's a tech site,

Is W3C validation important? [duplicate]

爱⌒轻易说出口 提交于 2019-12-05 07:51:33
This question already has answers here : Closed 8 years ago . Possible Duplicate: How important is W3C XHTML/CSS validation when finalizing work? I read about validation from many sources and most will say always validate your web page. It is important that your page validate. I understand the concept. But my site does not "validate", yet it works across every major browsers, does not produce errors in those browsers and looks correct in all browsers. This is an example of an error I get Error Line 38, Column 28: document type does not allow element "h3" here var $jsuccessmessage = "<h3>We

Is anyone using XForms in their web applications?

故事扮演 提交于 2019-12-05 07:15:27
A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms. As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today? I'm not really interested in plugins - this needs to be something server side that emulates XForms. Tambet We use XForms for creating user interfaces for SOAP-based web services. Currently we settled with Chiba XForms engine ( http://chiba.sourceforge.net/ ), but Orbeon ( http://www.orbeon.com/ ) actually seems more mature. Both are server-side engines