w3c

HTML Templates JavaScript polyfills

99封情书 提交于 2019-11-30 13:44:28
问题 I'm looking for the most standards-compliant / future-proof method for front-end HTML templating. There exists a relatively new W3C draft specification for HTML Templates, e.g.: <template id="mytemplate"> <img src="" alt="great image"> <div class="comment"></div> </template> Does anyone know if any good JavaScript polyfills already exist to make <template> element usable in a cross-browser way? Preferably complying with this standard. Difficulties According the the HTML5Rocks guide these

The Media Capture API - any existing implementations?

十年热恋 提交于 2019-11-30 12:07:59
I have been reading up on the draft Device APIs and am wondering whether there are any implementations of the Media Capture API . Ericsson seem to have some demos up, however haven't released the source. There's also a bug report on Chromium . I don't mind whether implementation takes the form of a: nightly build patch branch browser extension backfill JavaScript ...so long as it allows experimenting against the interface as is thus far suggested in the standard. Android 3.0 implements the HTML Media Capture specification (a draft version). Microsoft recently (June 2011) announced that they

Why WCAG made 3 level “A”, “AA” and “AAA”?

徘徊边缘 提交于 2019-11-30 11:37:50
问题 What is the purpose of making 3 priority level by WCAG? is it like? If client not paying extra or if we don't have much time then go for A If client paying then or if we have time to make site compatible go for at least AA If client paying and needed according to govt. rules then go for AAA If we are making site then which level we should we try to achieve, or we should do only on client request? Although i found these definitions on this site but these are confusing for me • Priority 1: For

What is the most semantic way to display a street address in HTML?

我的梦境 提交于 2019-11-30 11:01:03
问题 I have an address that is going to be displayed on a webpage, but it is not the address for the author of the page. How should this be coded to be semantic given the w3c recommendation of: The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document. 回答1: You could use the hCard Microformat to describe your address. The advantage of Microformats is that you

How can I fully override Chromium disabled input field colours?

梦想的初衷 提交于 2019-11-30 08:28:22
问题 Example: http://jsfiddle.net/wCFBw/25/ input { color: black; } <input type="text" value="This is black" /> <input type="text" disabled="disabled" value="Why this is not black?" /> 回答1: I don't know why that happens, but I suspect WebKit is trying to be smart with respect to letting the user know the <input> is disabled. You can workaround this by also using the -webkit-text-fill-color property: input.black { color: black; -webkit-text-fill-color: black } Please, make sure you're setting the

Should SVG contents be visible outside an embedded <svg> by default? [closed]

最后都变了- 提交于 2019-11-30 08:25:20
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . In the past I answered a question about "who was wrong" in regards to SVG images not being "cropped" ( overflow: hidden ) in IE9, where all other supporting browsers did so. The answer is here. Today, while

HTML Templates JavaScript polyfills

↘锁芯ラ 提交于 2019-11-30 08:24:48
I'm looking for the most standards-compliant / future-proof method for front-end HTML templating. There exists a relatively new W3C draft specification for HTML Templates , e.g.: <template id="mytemplate"> <img src="" alt="great image"> <div class="comment"></div> </template> Does anyone know if any good JavaScript polyfills already exist to make <template> element usable in a cross-browser way? Preferably complying with this standard. Difficulties According the the HTML5Rocks guide these templates have the following properties: "Its content is effectively inert until activated" "Script doesn

Why isn't <textarea> self closing? [duplicate]

喜你入骨 提交于 2019-11-30 08:07:46
问题 This question already has answers here : Why don't self-closing script elements work? (12 answers) Closed 3 years ago . I've been wondering why none of the revisions to the HTML specification have ever made textarea able to be self-closing. Lot's of SO questions have answered why it is a separate tag from input , and it makes sense to me that they'd want to preserve it as a separate tag for compatibility, but why wouldn't they make <textarea /> just as valid as <textarea></textarea> since

Is there a browser-compatibility deprecation table for CSS3 vendor prefixes? [closed]

倖福魔咒の 提交于 2019-11-30 07:27:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Would anyone here post a site that presents a neat summary of which vendor specific CSS3 extensions - e.g. -moz-border-radius - are still required or can be deprecated? From what I have seen by and large all recent versions of Chrome, Safari and Opera (forget IE, I can live

Why does setting XMLHttpRequest responseType before calling open throw?

坚强是说给别人听的谎言 提交于 2019-11-30 06:39:40
Running new XMLHttpRequest().responseType = "json" in the console throws an "InvalidStateError" exception in Firefox 26 and IE11 but not in Chrome 31. Why? The Spec states that setting responseType throws an "InvalidStateError" exception if the state is LOADING or DONE. but in this case the state is UNSENT. What's going on? It's a working draft , so it's normal if there are small differences or bugs in the implementations. I think Firefox still follows the behavior described in the draft of August 2011 , where is specified that the exception is thrown if the state is not OPENED or HEADERS